Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.37 KB

README.en.md

File metadata and controls

51 lines (36 loc) · 1.37 KB

apkutils

PyPI PyPI - Status PyPI - Python Version PyPI - Downloads PyPI - License

Description

A Parser for APK, Dex, ARSC, AXML, ELF.

Installation

❯ pip install apkutils

❯ apkutils
Usage: apkutils [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  arsc      打印arsc
  certs     打印证书
  files     打印文件
  manifest  打印清单
  mtds      获取指定方法中的所有字符串
  strings   打印Dex中的字符串
  unzip     解压文件,默认显示zip文件
  xref      获取方法的引用方法

Usage

from apkutils import APK

# NOTE 按需解析,这里仅仅解析清单,不解析dex、图标。
apk = APK.from_file(file_path).parse_manifest()
manifest = apk.get_manifest()
apk.close()

# or 
with APK.from_file(file_path) as apk:
    apk.get_manifest()

Credits