cordova plugin add https://github.com/jimmyliao/cordova-plugin-device-detection.git
window.plugins.deviceDetection.isRoot(onSuccess, onFail);
- =>
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
window.plugins.deviceDetection.isJailBreak(onSuccess, onFail);
- =>
successCallback
is called with true if the device is Jailbroken, otherwise false - =>
failureCallback
is called if there was an error determining if the device is Jailbroken
Android.
iOS is deriving from https://github.com/leecrossley/cordova-plugin-jailbreak-detection.