Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apkutils

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apkutils

一个APK解析库

  • 2.0.0
  • PyPI
  • Socket score

Maintainers
1

apkutils

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

介绍

一个用于解析APK、Dex、AXML、ARSC、ELF的库。

安装教程

❯ 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

apk = APK.from_file(file_path)
manifest = apk.get_manifest()
apk.close()

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

请参考 examples 目录。

备注

1.3.0 开始,默认不解析清单、不解析图标、不解析Dex,而是按需解析。 从 2.0.0 开始,对外接口支持类型,调整部分接口

感谢

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc