mirror of
https://github.com/shuto-cn/cordova-plugin-root-detection.git
synced 2026-07-21 00:05:12 +08:00
5227d53592f13e15250102571ef81198ca4b1804
arg0 is never used in the native code, undocumented and breaks the documented usage.
Root Detection Plugin for Apache Cordova
Use this plugin to check if the android device running the app is rooted.
Install
Locally
cordova plugin add https://github.com/trykovyura/cordova-plugin-root-detection.git
Usage
isDeviceRooted
rootdetection.isDeviceRooted(successCallback, failureCallback);
- =>
successCallbackis called with true if the device is rooted, otherwise false - =>
failureCallbackis called if there was an error determining if the device is rooted - returns '1' if device is rooted else '0'
Platform Support
Android only.
License
MIT License
Languages
Java
91.3%
JavaScript
8.7%