← 返回 Skills 市场
473
总下载
1
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install apktool
功能描述
反向工程 Android APK 文件的命令行工具
使用说明 (SKILL.md)
Apktool 技能
🔧 反向工程 Android APK 文件的命令行工具
📦 依赖声明
必需二进制文件
apktool- Android APK 反向工程工具java- Java 运行时(Apktool 基于 Java)
检查依赖
# 检查 apktool 是否已安装
which apktool
apktool --version
# 检查 Java 是否已安装
java -version
安装指引
如未安装,请阅读 references/install.md 获取详细安装步骤。
🎯 核心功能
- 反编译(Disassemble) - 将 APK 解码为近乎原始形式(smali 代码、资源文件)
- 编译(Assemble) - 将修改后的代码和资源重新打包为 APK
- 分析(Analyze) - 快速检查资源清单和配置文件,无需重建
🚀 快速开始
反编译 APK
# 基本反编译
apktool d app.apk
# 指定输出目录
apktool d app.apk -o output_folder
# 仅分析不生成文件(-m 模式)
apktool d app.apk -m
重新编译 APK
# 编译反编译后的文件夹
apktool b app_folder
# 指定输出 APK 路径
apktool b app_folder -o modified_app.apk
典型工作流
# 1. 反编译
apktool d target.apk -o target_decompiled
# 2. 修改资源或代码
# 编辑 target_decompiled/ 中的文件
# 3. 重新编译
apktool b target_decompiled -o target_modified.apk
# 4. 签名 APK(需要额外工具)
# apksigner 或 jarsigner
📚 详细文档
| 主题 | 文档 |
|---|---|
| 🔧 安装指南 | references/install.md |
| 📖 完整用法 | references/usage.md |
| 🛠️ 常见问题 | references/troubleshooting.md |
🔐 安全提示
- 合法使用 - 仅对您拥有权限的 APK 进行反向工程
- 学习研究 - 适用于安全研究、应用分析、本地化翻译等合法用途
- 遵守法律 - 请勿用于侵犯版权或绕过软件保护
🤝 使用示例
示例 1:查看 APK 结构
# 快速分析 APK 结构(不生成文件)
apktool d app.apk -m
# 查看 AndroidManifest.xml
cat apktool.yml
示例 2:修改应用资源
# 反编译
apktool d myapp.apk
# 修改 res/values/strings.xml 进行本地化
# 编辑文件...
# 重新编译
apktool b myapp -o myapp_localized.apk
示例 3:分析权限配置
# 反编译并查看 AndroidManifest.xml
apktool d target.apk -m
cat target/AndroidManifest.xml | grep permission
💡 提示
- 反编译后的代码为 smali 格式(Android 的汇编语言)
- 如需 Java 源代码,可配合 jadx 工具使用
- 修改后的 APK 需要重新签名才能安装到设备
- 大型 APK 反编译可能需要数分钟
版本: 0.0.2
最后更新: 2026-02-28
安全使用建议
This skill appears to be what it says: a wrapper/documentation for Apktool. Before installing, consider: (1) jadx is listed as a required binary even though it’s optional — you can remove it from requirements if you don't need Java decompilation. (2) The manual install runs sudo + curl/wget/unzip and writes to /opt and /usr/local/bin — review the script and the GitHub release links before running with elevated privileges. (3) Prefer your OS package manager (brew/apt) where possible rather than running arbitrary install scripts. (4) Be mindful of legal/ethical constraints when reverse-engineering third-party APKs. If you want higher assurance, request a versioned checksum for the downloaded archives or install tools manually from their official release pages.
功能分析
Type: OpenClaw Skill
Name: apktool
Version: 0.0.2
This skill bundle provides instructions and scripts for installing and using Apktool and Jadx, legitimate tools for Android APK reverse engineering. All installation scripts download binaries from official GitHub repositories (iBotPeaches/Apktool and skylot/jadx). The documentation explicitly warns against illegal use and emphasizes ethical considerations. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, prompt injection attempts against the agent, or obfuscation. All commands are standard for tool installation and usage.
能力评估
Purpose & Capability
The skill's name/description (Apktool reverse-engineering) matches the binaries and instructions. One minor inconsistency: the declared required binaries list includes 'jadx' as mandatory, but the SKILL.md and docs treat jadx as an optional complementary tool (used only if the user wants Java-source decompilation). Making jadx a hard requirement is stricter than needed for the stated purpose.
Instruction Scope
Runtime instructions are limited to local reverse-engineering tasks (apktool commands, edit files, recompile/sign). They do not instruct reading unrelated system files, exfiltrating data, or posting results to third-party endpoints. Install-related commands (curl/wget) fetch releases from GitHub, which is expected for tool installation.
Install Mechanism
Primary install spec uses package managers (brew/apt) which is low risk. The provided manual install script for jadx downloads a zip from a GitHub releases URL and unpacks it into /opt and symlinks into /usr/local/bin — a common pattern but it executes sudo, curl/wget, unzip and writes to system paths. This is moderate risk only because it executes remote-downloaded binaries; the source is a GitHub release (traceable) rather than an unknown personal server.
Credentials
No environment variables, credentials, or config paths are requested. The skill does not ask for unrelated secrets or permissions; requested binaries (apktool, java, optionally jadx) are proportionate to its function.
Persistence & Privilege
The skill does not request always:true, does not claim system-wide persistent privileges, and contains no instructions to modify other skills or global agent configuration. Autonomous invocation is allowed (platform default) but not combined with other concerning privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install apktool - 安装完成后,直接呼叫该 Skill 的名称或使用
/apktool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.2
- Introduced a new structured metadata block at the top of SKILL.md.
- Added installation instructions for Apktool via apt and Homebrew, and for JADX via script.
- Listed JADX as a recommended/required tool alongside apktool and java.
- Updated version and last updated date in documentation.
- Consolidated metadata and installation details for clarity.
v0.0.1
Initial release of Apktool skill.
- Provides command-line workflows for disassembling and assembling Android APK files.
- Details required dependencies (apktool, Java) and includes basic installation/testing instructions.
- Offers quick start examples for decompiling, modifying, and rebuilding APKs.
- Includes safety/legal usage notes.
- Links to extended documentation for installation, usage, and troubleshooting.
- Provides practical use-case examples and helpful tips.
元数据
常见问题
Apktool 是什么?
反向工程 Android APK 文件的命令行工具. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 473 次。
如何安装 Apktool?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install apktool」即可一键安装,无需额外配置。
Apktool 是免费的吗?
是的,Apktool 完全免费(开源免费),可自由下载、安装和使用。
Apktool 支持哪些平台?
Apktool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Apktool?
由 KGTAF(@killgfat)开发并维护,当前版本 v0.0.2。
推荐 Skills