Cordova plugin root detection for android devices
Go to file
2015-06-11 22:11:24 +03:00
src/android init commit 2015-06-10 23:55:45 +04:00
www init commit 2015-06-10 23:55:45 +04:00
LICENSE Initial commit 2015-06-10 21:35:55 +03:00
plugin.xml Readme and config update 2015-06-11 21:40:51 +03:00
README.md Readme and config update 2015-06-11 22:11:24 +03:00

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);
  • => successCallback is called with true if the device is rooted, otherwise false
  • => failureCallback is 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