cordova plugin add cordova.plugins.unlocksdetector
This Cordova plugin architecture will add a new object called unlocksDetector to your root automatically when you build.
Inspired from Lee Crossley's cordova-plugin-jailbreak-detection plugin (https://github.com/leecrossley/cordova-plugin-jailbreak-detection)
unlocksDetector.isJailbroken(successCallback, failureCallback);- =>
successCallbackis called with true if the device is Jailbroken, otherwise false - =>
failureCallbackis called if there was an error determining if the device is Jailbroken
Inspired from Jimmy Liao's cordova-plugin-device-detection plugin (https://github.com/jimmyliao/cordova-plugin-device-detection)
unlocksDetector.isRooted(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
- iOS
- Android