
apktool 是一种用于第三方逆向工程,封闭,二进制的 Android 应用程序工具。它可以将 apk 资源解码为近乎原始的形式,并在进行一些修改后重建它们。它还使得使用应用程序更容易,因为项目像文件结构和一些重复性任务的自动化,如构建 apk 等。但是它不适用于盗版和其他非法律用途。它可用于本地化,添加一些功能或支持自定义平台,分析应用程序等等。

Apktool
apktool 特点
将资源分解为近乎原始的形式(包括 resources.arsc,classes.dex,9.png 和 XML)
将解码后的资源重建为二进制 APK/JAR
组织和处理依赖于框架资源的 APK
Smali 调试(在 2.1.0 中删除,取而代之的是 IdeaSmali)
帮助重复性任务
等等
要求
Java 7(JRE 1.7)
Android SDK,AAPT 和 smali 的基础知识
安装说明
快速检查
至少安装了 Java 1.8 吗?
在命令行/命令提示符下执行 java -version 是否返回 1.8 或更高?
如果没有,请安装 Java 8+ 并将其设为默认值。(Java 7 也将在此时工作)
安装 Apktool
Windows:
下载 Windows wrapper 脚本(右键单击,将链接另存为 apktool.bat)
下载 apktool-2(在这里找到最新的)
将下载的 jar 重命名为 apktool.jar
将两个文件(apktool.jar 和 apktool.bat)移动到 Windows 目录(通常为C://Windows)
如果您无权访问 C:// Windows,则可以将这两个文件放在任何位置,然后将该目录添加到系统环境 PATH 变量中。
尝试通过命令提示符运行 apktool
Linux:
下载 Linux wrapper 脚本(右键单击,将链接另存为 apktool)
下载 apktool-2(在这里找到最新的)
将下载的 jar 重命名为 apktool.jar
将两个文件(apktool.jar 和 apktool)移动到/usr/local/bin(需要 root)
确保两个文件都是可执行的(chmod + x)
尝试通过 cli 运行 apktool
Mac OS X:
下载 Mac wrapper 脚本(右键单击,将链接另存为 apktool)
下载 apktool-2(在这里找到最新的)
将下载的 jar 重命名为 apktool.jar
将两个文件(apktool.jar 和 apktool)移动到/usr/local/bin(需要 root)
确保两个文件都是可执行的(chmod + x)
尝试通过 cli 运行 apktool
注意 – 不需要 wrapper 脚本,但有用,因此您不必反复键入 java -jar apktool.jar。
https://bitbucket.org/iBotPeaches/apktool/downloads/
CMD 命令窗口反编译及打包示例:
$ apktool d test.apk
I: Using Apktool 2.3.4 on test.apk
I: Loading resource table…
I: Decoding AndroidManifest.xml with resources…
I: Loading resource table from file: 1.apk
I: Regular manifest package…
I: Decoding file-resources…
I: Decoding values */* XMLs…
I: Baksmaling classes.dex…
I: Copying assets and libs…
I: Copying unknown files…
I: Copying original files…
$ apktool b test
I: Using Apktool 2.3.4 on test
I: Checking whether sources has changed…
I: Smaling smali folder into classes.dex…
I: Checking whether resources has changed…
I: Building resources…
I: Building apk file…
I: Copying unknown files/dir…
使用过程中可能会出现如下问题:
问题 1:WARNING:Could not write to (C:\Users\****\AppData\Local\apktool\framework), using C:\Users\WBB53E~1.WAN\AppData\Local\Temp\ instead…
解决办法:在C:\Users\****\AppData\Local自己创建\apktool\framework这个文件夹即可;
问题 2:Exception in thread “main” java.lang.NullPointerException
解决办法:删除C:\Users\****\apktool\framework\1.apk的apk文件即可;
问题 3:Exception in thread “main” brut.androlib.AndrolibException: Could not decode arsc file
解决办法:apktool.jar的版本太低,如果使用高版本不会出现异常;
What’s new in ApkTool 2.11.0
Jan 15, 2025
What’s Changed:
API 35 Preview – Vanilla Ice Cream by @iBotPeaches in #3696
refactor: ApkDecoder & ApkBuilder overhaul by @IgorEisberg in #3699
build(deps): bump commons-io:commons-io from 2.16.1 to 2.17.0 by @dependabot in #3701
build(deps): bump com.google.guava:guava from 33.3.0-jre to 33.3.1-jre by @dependabot in #3703
style: clean up tab intendation by @IgorEisberg in #3707
new: featureFlags support for SDK 35 apps by @IgorEisberg in #3706
fix: decoding APK with many compact entries and unknown uses-sdk attrs by @IgorEisberg in #3705
new: support building with compact entries by @IgorEisberg in #3708
refactor: clean up external pull parser and introduce brut.j.xml by @IgorEisberg in #3709
fix: avoid trying to parse raw AndroidManifest by @IgorEisberg in #3720
fix: update license reference by @emmanuel-ferdman in #3721
refactor: tweaks IO handling by @IgorEisberg in #3723
feat: add user, system certificate in existing network security config by @swngarg-lt in #3724
feat: support for Android Baklava Developer Preview 1 by @iBotPeaches in #3728
build(deps): bump gradle/actions from 4.1.0 to 4.2.0 by @dependabot in #3727
build(deps): bump gradle/actions from 4.2.0 to 4.2.1 by @dependabot in #3733
build(deps): bump commons-io:commons-io from 2.17.0 to 2.18.0 by @dependabot in #3732
refactor: ExtDataInput rework, source layout and formatting by @IgorEisberg in #3738
build(deps): bump org.apache.commons:commons-text from 1.12.0 to 1.13.0 by @dependabot in #3745
build: update to smali/baksmali 3.0.9 by @iBotPeaches in #3747
refactor: Config/Tests/misc rework by @IgorEisberg in #3746
build(deps): bump gradle/actions from 4.2.1 to 4.2.2 by @dependabot in #3750
build(deps): bump com.google.guava:guava from 33.3.1-jre to 33.4.0-jre by @dependabot in #3751
build: version bump (2.11.0) by @iBotPeaches in #3764
文章名称:《安卓逆向反编译工具 Apktool 2.11.0 更新下载》
文章固定链接:https://www.dayanzai.me/apktool.html
本站资源仅供个人学习交流,请于下载后 24 小时内删除,不允许用于商业用途,否则法律问题自行承担。
猜你喜欢
- 2020-01-06DJ 音乐混合工具 Program4Pc DJ Music Mixer 8.3.0 中文多语免费版
- 2018-05-17动态几何教学软件 Autograph 4.0.12.0 中文汉化版
- 2025-06-09来自德国的个人备份工具 Personal Backup 6.4.0.2 中文多语免费版
- 2022-05-21开源免费商用字体 LXGW WenKai/霞鹜文楷 1.234.56 免费下载
- 2016-01-08QuickTime 视频播放器 QuickTime Pro 7.7.9 中文版
相关推荐
- 2020-12-21开源免费数字时钟小工具 Digital Clock 4.7.9 中文多语免费版
- 2020-07-07PowerPoint OK插件 OneKeyTools Lite 10.0.0 中文免费版
- 2021-04-17Inno Setup 如何根据 32 位或 64 位系统自动安装对应版本程序
- 2023-04-27JSON 对比 XML 有什么不同又该如何选择?
- 2023-06-23使用 Inno Setup 检测 Windows 10 和 11 64 位环境代码
发表评论
MORE>>微软应用
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
MORE>>安卓应用
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
MORE>>教程资源
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
MORE>>其它资源
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8