Readme and config update

This commit is contained in:
trykov
2015-06-11 21:40:51 +03:00
committed by imosrentgen
parent 894e50d635
commit 616196b420
2 changed files with 33 additions and 2 deletions

View File

@@ -1,2 +1,32 @@
# cordova-plugin-root-detection
Cordova plugin root detection for android devices
# 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
```js
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](http://ilee.mit-license.org)

View File

@@ -18,6 +18,7 @@
<config-file parent="/*" target="res/xml/config.xml">
<feature name="RootDetection">
<param name="android-package" value="ru.trykov.root.RootDetection"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml"></config-file>