@kamarajcalm/react-native-root-detection
v0.1.3
Published
@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
Downloads
689
Readme
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.
Features
- Detects root (Android) and jailbreak (iOS)
- Detects developer options (Android & iOS)
- Promise-based API
Installation
Installation
npm install @kamarajcalm/react-native-root-detectionUsage
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();API
RootDetection.isDeviceRooted(): Promise<boolean>
Checks if the device is rooted (Android) or jailbroken (iOS).
RootDetection.isDeveloperOptionsEnabled(): Promise<boolean>
Checks if developer options are enabled (Android) or if the app is running under a debugger (iOS).
Contributing
License
MIT
Made with create-react-native-library
