apktool 是一种用于第三方逆向工程,封闭,二进制的 Android 应用程序工具。它可以将 apk 资源解码为近乎原始的形式,并在进行一些修改后重建它们。它还使得使用应用程序更容易,因为项目像文件结构和一些重复性任务的自动化,如构建 apk 等。但是它不适用于盗版和其他非法律用途。它可用于本地化,添加一些功能或支持自定义平台,分析应用程序等等。
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 小时内删除,不允许用于商业用途,否则法律问题自行承担。
猜你喜欢
- 2024-11-16MP3 信息修改工具 Mp3tag 3.28 + x64 中文多语免费版
- 2022-02-19大眼仔推荐让您的桌面焕然一新的 7 个最佳 Linux 扩展坞
- 2018-11-06PDF 分割合并工具 Mgosoft PDF Split Merge 9.2.0 绿色汉化中文版
- 2023-08-23大眼仔教你修复 Windows 绿屏死机的几种方法
- 2021-08-30Windows 文档路径复制工具 Path Copy Copy 20.0 + x64 中文汉化版
相关推荐
- 2023-08-05免费可商用旧字形字体 京華老宋体 1.007 字体下载
- 2021-04-10安卓 GO 桌面 GO Launcher S v1.20 中文免费版
- 2022-06-27关于本地主机 Localhost (127.0.0.1) 的一些科普小知识
- 2024-03-19独立版 Office 2024 将于今年晚些时候登陆 Windows 和 Mac
- 2020-11-10Win10 系统中通过批处理快速移除桌面快捷方式小箭头