{"id":16934233,"url":"https://github.com/codeskyblue/apkinfo","last_synced_at":"2025-04-11T18:52:05.290Z","repository":{"id":57511637,"uuid":"141783912","full_name":"codeskyblue/apkinfo","owner":"codeskyblue","description":"get apkinfo use pure go code. (packageName, mainActivty etc...)","archived":false,"fork":false,"pushed_at":"2018-08-08T02:58:57.000Z","size":522,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T14:44:46.974Z","etag":null,"topics":["android","apk","package-name"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeskyblue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-21T05:26:22.000Z","updated_at":"2023-02-17T15:12:36.000Z","dependencies_parsed_at":"2022-08-29T05:21:28.581Z","dependency_job_id":null,"html_url":"https://github.com/codeskyblue/apkinfo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fapkinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fapkinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fapkinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fapkinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeskyblue","download_url":"https://codeload.github.com/codeskyblue/apkinfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248464370,"owners_count":21108238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","apk","package-name"],"created_at":"2024-10-13T20:51:37.002Z","updated_at":"2025-04-11T18:52:05.267Z","avatar_url":"https://github.com/codeskyblue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apkinfo\nget apkinfo use pure go code. (packageName, mainActivty etc...)\n\n## Install\nDownload binaries from [releases](https://github.com/codeskyblue/apkinfo/releases)\n\nOr build from source\n\n```bash\n$ go get -v github.com/codeskyblue/apkinfo\n```\n\n![gif](apkinfo-win.gif)\n\n## Usage in commandline\nThis tool is very simple to use.\n\n```\n$ apkinfo cloudmusic.apk\n## Package\nPackageName:  com.netease.cloudmusic\nMainActivity: com.netease.cloudmusic.activity.LoadingActivity\n\n## ADB\nadb shell am start -a com.netease.cloudmusic/.activity.LoadingActivity\n\n## AppCrawler\nappcrawler --capability appPackage=com.netease.cloudmusic,appActivity=.activity.LoadingActivity\n\n## Appium\n{\n   \"appActivity\": \".activity.LoadingActivity\",\n   \"appPackage\": \"com.netease.cloudmusic\",\n   \"deviceName\": \"whatever\",\n   \"platformName\": \"Android\",\n   \"resetKeyboard\": true,\n   \"unicodeKeyboard\": true\n}\n```\n\n获取格式化的json信息\n\n```bash\n$ apkinfo -json cloudmusic.apk\n{\n  \"label\": \"网易云音乐\",\n  \"mainActivity\": \"com.netease.cloudmusic.activity.LoadingActivity\",\n  \"packageName\": \"com.netease.cloudmusic\",\n  \"versionCode\": 118,\n  \"versionName\": \"5.2.0\"\n}\n```\n\n获取icon\n\n```bash\n$ apkinfo -icon icon.jpg\n```\n\n## Not supported\nCan not extract icon which is using [Adaptive icon](https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive)\n\n## References\n- [Appium Capabilities](https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md)\n- [AppCrawler](https://github.com/seveniruby/AppCrawler)\n- [Awesome-ADB](https://github.com/mzlogin/awesome-adb)\n\n# LICENSE\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fapkinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeskyblue%2Fapkinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fapkinfo/lists"}