trykovyura / cordova-plugin-root-detection

Cordova plugin root detection for android devices
MIT License
23 stars 19 forks source link

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 cordova-plugin-root-detection

or

cordova plugin add https://github.com/trykovyura/cordova-plugin-root-detection.git

Usage

isDeviceRooted

rootdetection.isDeviceRooted(successCallback, errorCallback);

Example

var successCallback = function (result) {
    var isDevicesRooted = result == 1;
};
var errorCallback = function (error) {
    console.error(error);
};
rootdetection.isDeviceRooted(successCallback, errorCallback);

Platform Support

Android only.

License

MIT License