https://github.com/deeeed/cordova-plugin-androidapkinfo
Extract APK Infos
https://github.com/deeeed/cordova-plugin-androidapkinfo
Last synced: over 1 year ago
JSON representation
Extract APK Infos
- Host: GitHub
- URL: https://github.com/deeeed/cordova-plugin-androidapkinfo
- Owner: deeeed
- License: other
- Created: 2017-10-03T04:16:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T10:05:59.000Z (over 8 years ago)
- Last Synced: 2024-04-15T05:13:39.198Z (about 2 years ago)
- Language: Java
- Size: 231 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-plugin-androidapkinfo
A cordova plugin to retrieve android package signatures info
## Installation
```
cordova plugin add cordova-plugin-androidapkinfo
```
## How to use
```
//once device is ready
AndroidAPKInfoPlugin.signatures(function(result) {
console.debug("result", result);
})
AndroidAPKInfoPlugin.APKSignatures("file:///path/to/package.apk", function(result) {
console.debug("result", result);
})
AndroidAPKInfoPlugin.packageSignatures("com.company.packagename", function(result) {
console.debug("result", result);
})
```
### Description of the result object
```json
{
"signatures": [
{
"charString": "aeawqwq....",
"hashcode": -1742539072,
"md5": "93696578d4732e2a26fe716c87fa4a27",
"sha1": "d5b10f4aa415448994424e3e2b6d131d9caa03ad",
"sha256": "58241fba136c1e2c82a55b54b456ac2ed4be2e0f0c1a78cd08c0833e67a9e6ee",
"info": {
"issuer_dn": "CN=Android Debug, O=Android, C=US",
"serialnumber": 1194529253,
"subject_dn": "CN=Android Debug, O=Android, C=US"
}
}
]
}
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request