apk-toolkit

apk-toolkit: for deep analysis, attribute editing, packing guidance, and resigning of Android APK files. Use to inspect APK details (package name, app name, version, SDK, signature scheme/MD5, permissions, packer status, FB Hash, filing features/RSA modulus) or to change package/app name and rebuild/resign an APK.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "apk-toolkit" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-518dcf7a64ab3999b122523cdaa039b37879b557b197e69d37a35c2fa3bb9ec3. Verify the upstream source and version against https://skillhub.cn/skills/user_c04a01de/apk-toolkit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

apk-toolkit: for deep analysis, attribute editing, packing guidance, and resigning of Android APK files. Use to inspect APK details (package name, app name, version, SDK, signature scheme/MD5, permissions, packer status, FB Hash, filing features/RSA modulus) or to change package/app name and rebuild/resign an APK.

0 Downloads

Introduction source: third_party · user_c04a01de · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: apk-toolkit
description: >-
  Deep analysis, attribute editing, packing guidance, and resigning for Android
  APK files. Use when the user wants to inspect APK details (package name, app
  name, version, SDK, signature scheme/MD5, permissions, packer status,
  FB Hash, App filing features / RSA modulus), or to change package/app name
  and rebuild/resign an APK.

APK 深度处理工具箱

按本 Skill 工作流执行,优先调用 scripts/ 下脚本。

免责声明(修改操作前须告知用户):仅用于合法授权的测试、调试与学习。改包名/应用名/重签名可能违反商店政策或著作权;修改后的 APK 通常无法与原应用共存,也无法作为原应用的商店更新。

环境依赖

能力 最低要求
信息提取 / 备案特征 Python 3.10+(首次自动安装 pyaxmlparser)
改包名 / 重打包 / 签名 Python + Java 11+;便携工具由 ensure_tools.py 下载至 tools/
python scripts/ensure_tools.py

不要求配置 ANDROID_HOME 或预装 Android SDK 工具链。

阶段一:信息提取

  1. 确认 APK 路径。

  2. 执行:

    python scripts/apk_info.py "<APK绝对路径>"

    仅需备案特征时:

    python scripts/beian_query.py "<APK绝对路径>"
  3. 将 JSON 整理为 Markdown 报告,至少包含:

    • 应用名、包名、版本、min_sdk / target_sdk

    • 签名方案、证书 MD5 / SHA-1 / SHA-256、FB Hash

    • 权限(按 normal / dangerous / other 分组)

    • 加固检测结果

    • App 备案特征(独立小节):

      表单字段 JSON
      软件包名称 beian.package_name
      公钥(模数,十进制) beian.public_key_modulus
      证书 MD5 指纹 beian.signature_md5 / signature_md5_spaced
  4. 解析失败时,建议执行 python scripts/ensure_tools.py --pip-only。

阶段二:修改与重构

修改前确认:新包名/应用名、签名方案(默认 v2)、密钥库;加固需用户自行对接第三方服务,本 Skill 不自动调用商业加固 API。

  1. python scripts/ensure_tools.py
  2. java -jar tools/apktool.jar d -f -o "<decode_dir>" "<APK路径>"
  3. python scripts/manifest_editor.py --decode-dir "<decode_dir>" [--pkg ...] [--name ...]
  4. python scripts/rebuilder.py --decode-dir "<decode_dir>" --out "<输出APK>" --keystore "..." --key-alias "..."
  5. 对输出 APK 再执行 apk_info.py,返回路径与签名/备案特征摘要。

脚本

脚本 作用
scripts/ensure_tools.py 安装依赖并下载便携工具
scripts/apk_info.py 提取 APK 信息(含备案特征)
scripts/beian_query.py 提取备案特征(包名 / 模数 / MD5)
scripts/manifest_editor.py 修改包名与应用名
scripts/rebuilder.py 重打包与签名

细节见 reference.md。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 Android APK 深度分析与修改的完整工作流
  • 面向开发者与安全研究人员,解决明确痛点
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例
Execution Reliability88/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 58

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.