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.
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.
$ go install github.com/nao1215/deapk@latest
$ 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
$ 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
}
}
}
$ deapk info --json testdata/app-debug.apk > apk.json
$ 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
}
}
}
First off, thanks for taking the time to contribute! ❤️ See CONTRIBUTING.md for more information. Contributions are not only related to development. For example, GitHub Star motivates me to develop!
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.
The deapk project is licensed under the terms of MIT License.