Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeskyblue/apkinfo
get apkinfo use pure go code. (packageName, mainActivty etc...)
https://github.com/codeskyblue/apkinfo
android apk package-name
Last synced: 2 months ago
JSON representation
get apkinfo use pure go code. (packageName, mainActivty etc...)
- Host: GitHub
- URL: https://github.com/codeskyblue/apkinfo
- Owner: codeskyblue
- License: mit
- Created: 2018-07-21T05:26:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-08T02:58:57.000Z (over 6 years ago)
- Last Synced: 2024-06-20T08:08:32.056Z (6 months ago)
- Topics: android, apk, package-name
- Language: Go
- Size: 510 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apkinfo
get apkinfo use pure go code. (packageName, mainActivty etc...)## Install
Download binaries from [releases](https://github.com/codeskyblue/apkinfo/releases)Or build from source
```bash
$ go get -v github.com/codeskyblue/apkinfo
```![gif](apkinfo-win.gif)
## Usage in commandline
This tool is very simple to use.```
$ apkinfo cloudmusic.apk
## Package
PackageName: com.netease.cloudmusic
MainActivity: com.netease.cloudmusic.activity.LoadingActivity## ADB
adb shell am start -a com.netease.cloudmusic/.activity.LoadingActivity## AppCrawler
appcrawler --capability appPackage=com.netease.cloudmusic,appActivity=.activity.LoadingActivity## Appium
{
"appActivity": ".activity.LoadingActivity",
"appPackage": "com.netease.cloudmusic",
"deviceName": "whatever",
"platformName": "Android",
"resetKeyboard": true,
"unicodeKeyboard": true
}
```获取格式化的json信息
```bash
$ apkinfo -json cloudmusic.apk
{
"label": "网易云音乐",
"mainActivity": "com.netease.cloudmusic.activity.LoadingActivity",
"packageName": "com.netease.cloudmusic",
"versionCode": 118,
"versionName": "5.2.0"
}
```获取icon
```bash
$ apkinfo -icon icon.jpg
```## Not supported
Can not extract icon which is using [Adaptive icon](https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive)## References
- [Appium Capabilities](https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md)
- [AppCrawler](https://github.com/seveniruby/AppCrawler)
- [Awesome-ADB](https://github.com/mzlogin/awesome-adb)# LICENSE
[MIT](LICENSE)