@kamarajcalm/react-native-root-detection is a React Native library to check whether a mobile device is rooted (Android) or jailbroken (iOS). Its purpose is to help apps verify that they are running in a secure / unmodified environment, so that sensitive o
npm install @kamarajcalm/react-native-root-detection@kamarajcalm/react-native-root-detection is a React Native library to check whether a mobile device is rooted (Android) or jailbroken (iOS). It helps apps verify that they are running in a secure, unmodified environment, so sensitive operations can be protected.
- Detects root (Android) and jailbreak (iOS)
- Detects developer options (Android & iOS)
- Promise-based API
``sh`
npm install @kamarajcalm/react-native-root-detection
`typescript
import RootDetection from '@kamarajcalm/react-native-root-detection';
// Check if device is rooted/jailbroken
const isRooted = await RootDetection.isDeviceRooted();
// Check if developer options are enabled
const isDevOptions = await RootDetection.isDeveloperOptionsEnabled();
``
Checks if the device is rooted (Android) or jailbroken (iOS).
Checks if developer options are enabled (Android) or if the app is running under a debugger (iOS).
- Development workflow
- Sending a pull request
- Code of conduct
MIT
---
Made with create-react-native-library