voricles-plugin-rooted
v0.0.3
Published
Plugin for detecting root access in Android.
Downloads
3
Readme
Voricles Plugin Rooted
This plugin is used to detect rooted devices on Android platorm. https://www.npmjs.com/package/voricles-plugin-rooted
Add Plugin
cordova plugin add voricles-plugin-rooted
Usage in cordova project
Rooted.isSuperSu(successCallback, failureCallback)
successCallback(result:boolean)
is executed upon successfull root dectection and return true
if the device is rooted or false
if the device is not rooted.
failureCallback(error:string)
is executed whenever an error occurs while trying to dectect if the device is rooted. This callback function returns a value of type string
##Ionic 2/3/4 example usage
You can call this method immediately after platform
is ready
Test
ionic cordova build [ios / android]
Supported platforms
- Android
Reporting issues
Please report an issue to [email protected] with a clear description of your dev environment.
License
Apache version 2.0