deapk

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 1 Imported by: 0

README

Build PlatformTests reviewdog codecov Go Reference Go Report Card GitHub

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.

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 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.

LICENSE

The deapk project is licensed under the terms of MIT License.

Documentation

Overview

Package main

Directories

Path Synopsis
Package apk manage APK file information.
Package apk manage APK file information.
internal
print
Package print defines functions to accept colored standard output and user input
Package print defines functions to accept colored standard output and user input

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL