mirror of
https://github.com/wanxf-shuto/CordovaReadApplicationSignature.git
synced 2026-04-29 00:00:02 +08:00
Updated readme
This commit is contained in:
@@ -23,17 +23,13 @@ You can read more about it on [Android official website](https://source.android.
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|
||||||
cordova.exec(function success(rootStatus){
|
|
||||||
|
cordova.exec(function success(signature){
|
||||||
if(rootStatus){
|
//Check signature
|
||||||
//Device is rooted, handle the case
|
|
||||||
} else {
|
|
||||||
//Device is not rooted, proceed to the app
|
|
||||||
}
|
|
||||||
|
|
||||||
}, function failure(error){
|
}, function failure(error){
|
||||||
alert("Something went wrong");
|
//alert("Something went wrong");
|
||||||
}, "ReadAppSignature", "getAppSignature", []);
|
}, "ReadAppSignature", "getAppSignature", []);
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
Reference in New Issue
Block a user