apkutils
介绍
一个用于解析APK、Dex、AXML、ARSC的库。
安装教程
❯ 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 获取方法的引用方法
用法
from apkutils import APK
# NOTE: 获取清单、arsc、应用名、图标,必须要使用 parse_resource
apk = APK.from_file(file_path).parse_resource()
manifest = apk.get_manifest()
apk.close()
# or
with APK.from_file(file_path) as apk:
apk.get_manifest()
请参考 examples 目录。
备注
从 1.3.0 开始,默认不解析清单、不解析图标、不解析Dex,而是按需解析。
感谢
Metadata
Release files for apkutils 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apkutils-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / apkutils-2.1.0-py3-none-any.whl
| Download URL | apkutils-2.1.0-py3-none-any.whl |
|---|---|
| Size | 96.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d776d77447ecd22cdce54b01ee204c871f418f344595c296450a31ff8affa33
|
|
BLAKE2b-256 checksum How to use checksums |
9f599e43b19cb6d9231da0050cf2ab5833593e6518b9cfd66c26a883759cb1a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|