https://github.com/nao1215/deapk
deapk - parse android package (.apk), getting meta data and more.
https://github.com/nao1215/deapk
android apk apk-parser apk-tools
Last synced: over 1 year ago
JSON representation
deapk - parse android package (.apk), getting meta data and more.
- Host: GitHub
- URL: https://github.com/nao1215/deapk
- Owner: nao1215
- License: mit
- Created: 2022-10-02T12:05:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-21T20:54:26.000Z (over 1 year ago)
- Last Synced: 2025-03-18T11:05:04.153Z (over 1 year ago)
- Topics: android, apk, apk-parser, apk-tools
- Language: Go
- Homepage:
- Size: 8.1 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://github.com/nao1215/apk-parser/actions/workflows/build.yml)
[](https://github.com/nao1215/apk-parser/actions/workflows/platform_test.yml)
[](https://github.com/nao1215/apk-parser/actions/workflows/reviewdog.yml)
[](https://codecov.io/gh/nao1215/apk-parser)
[](https://pkg.go.dev/github.com/nao1215/apk-parser)
[](https://goreportcard.com/report/github.com/nao1215/apk-parser)

# deapk - parse android package (.apk), getting meta data.
The deapk (decompile android package) command parses the apk file and outputs metadata information. It is still in the development stage and output information is few. In the future, deapk will provide the ability to decompile dex files and convert them to source code.
# How to install
### Step1. Install golang
deapk command only supports installation with `$ go install`. If you does not have the golang development environment installed on your system, please install golang from the [golang official website](https://go.dev/doc/install).
### Step2. Install deapk
```
$ go install github.com/nao1215/deapk@latest
```
# How to use
## Output *.apk metadata
```
$ deapk info testdata/app-debug.apk
pacakage name : jp.debimate.deapk_test
application name : deapk-test
application version: 1.0
sdk target version : 31
sdk max version : -1 (deprecated attribute)
sdk min version : 31
main activity : jp.debimate.deapk_test.MainActivity
```
## Output *.apk metadata in json format
```
$ deapk info --json testdata/app-debug.apk
{
"Basic": {
"package_name": "jp.debimate.deapk_test",
"application_name": "deapk-test",
"version": "1.0",
"main_activity": "jp.debimate.deapk_test.MainActivity",
"sdk": {
"minimum": 31,
"target": 31,
"maximum": -1
}
}
}
```
## Output *.apk metadata to file
### Use redirect
```
$ deapk info --json testdata/app-debug.apk > apk.json
```
### Use --output option
```
$ deapk info --json --output=apk.json testdata/app-debug.apk
$ cat apk.json
{
"Basic": {
"package_name": "jp.debimate.deapk_test",
"application_name": "deapk-test",
"version": "1.0",
"main_activity": "jp.debimate.deapk_test.MainActivity",
"sdk": {
"minimum": 31,
"target": 31,
"maximum": -1
}
}
}
```
# Contributing
First off, thanks for taking the time to contribute! ❤️ See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.
Contributions are not only related to development. For example, GitHub Star motivates me to develop!
# Contact
If you would like to send comments such as "find a bug" or "request for additional features" to the developer, please use one of the following contacts.
- [GitHub Issue](https://github.com/nao1215/deapk/issues)
# LICENSE
The deapk project is licensed under the terms of [MIT License](./LICENSE).