逆向工程 Android APK文件的工具 Apktool
It is a tool for reverse engineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.
前置环境
前提是已经安装了 Java 环境。
Apktool 安装
- Download Linux wrapper script (Right click, Save Link As
apktool
)
- Download apktool-2 (find newest here)
- Rename downloaded jar to
apktool.jar
将步骤 2 下载的文件重命名为 apktool.jar
- Move both files (
apktool.jar
& apktool
) to /usr/local/bin
(root needed)
将 apktool.jar
和 apktool
移动到 /usr/local/bin
(需要 root)
- Make sure both files are executable (
chmod +x
)
- Try running
apktool
via cli
官方教程:https://ibotpeaches.github.io/Apktool/install/
使用 Apktool
官方教程:https://ibotpeaches.github.io/Apktool/documentation/