Android 反编译工具

简介: Android 反编译工具

Apktool


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 also makes working with an app easier because of the project like file structure and automation of some repetitive tasks like building apk, etc.


usage: apktool


-advance,--advanced   prints advance information.


-version,--version    prints the version then exits


usage: apktool if|install-framework [options] <framework.apk>


-p,--frame-path <dir>   Stores framework files into <dir>.


-t,--tag <tag>          Tag frameworks using <tag>.


usage: apktool d[ecode] [options] <file_apk>


-f,--force              Force delete destination directory.


-o,--output <dir>       The name of folder that gets written. D


-p,--frame-path <dir>   Uses framework files located in <dir>.


-r,--no-res             Do not decode resources.


-s,--no-src             Do not decode sources.


-t,--frame-tag <tag>    Uses framework files tagged by <tag>.


usage: apktool b[uild] [options] <app_path>


-f,--force-all          Skip changes detection and build all fi


-o,--output <dir>       The name of apk that gets written. Defa


-p,--frame-path <dir>   Uses framework files located in <dir>.

$ 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...


标准做法就是拷贝 jar 包到当前目录, 然后执行 java -jar apktool.jar d test.apk 操作


反编译 xml 工具


AXMLPrinter2.jar 官方介绍: AXMLPrinter2.jar apk 分析 APK 文件,取得 APK 文件中的 包名、版本号及图标,很强大的工具,再一次感受到了批处理的牛逼。可以将 android 安卓编译过的二进制 XML 文件(binary xml file)反编译明文输出保存。是 APK 反编译修改的必备工具之一。例如需要查看 apk 安装包的权限、名称等,可以用 AXMLPrinter2 对androidmanifest.xml 反编译进行明文查看。反编译速度非常快、好用,可以顺利编译出.XML文件。


参考


静态分析工具之-AXMLPrinter2.jar的使用方法_冷冷清清里风风火火是我的博客-CSDN博客_axmlprinter


https://blog.csdn.net/qq_33721320/article/details/94553756


目录
相关文章
|
25天前
|
Java Android开发
Android反编译查看源码
Android反编译查看源码
25 0
|
5天前
|
Android开发 芯片 开发者
Android MediaTek bootloader 的序列号长度 & 移除非字母和数字限制 SN-Writer工具支持写入
Android MediaTek bootloader 的序列号长度 & 移除非字母和数字限制 SN-Writer工具支持写入
11 0
|
4月前
|
XML Java Android开发
Android App开发实战项目之模仿美图秀秀的抠图工具(附源码和演示视频 简单易懂 可直接使用)
Android App开发实战项目之模仿美图秀秀的抠图工具(附源码和演示视频 简单易懂 可直接使用)
47 0
|
22天前
|
Android开发 开发者
Android开发之OpenGL的画笔工具GL10
这篇文章简述了OpenGL通过GL10进行三维图形绘制,强调颜色取值范围为0.0到1.0,背景和画笔颜色设置方法;介绍了三维坐标系及与之相关的旋转、平移和缩放操作;最后探讨了坐标矩阵变换,包括设置绘图区域、调整镜头参数和改变观测方位。示例代码展示了如何使用这些方法创建简单的三维立方体。
18 1
Android开发之OpenGL的画笔工具GL10
|
4月前
|
安全 Java Android开发
Android App开发之安全加固中反编译、代码混淆、第三方加固以及重签名的讲解及实战(图文解释 简单易懂)
Android App开发之安全加固中反编译、代码混淆、第三方加固以及重签名的讲解及实战(图文解释 简单易懂)
74 0
|
7月前
|
算法 安全 Java
android逆向必备工具
android逆向必备工具
98 0
|
9月前
|
前端开发 JavaScript Java
贼简单的Android计时工具,老铁,还不试用起来
今天呢,给大家带来的是一个非常好用的计时工具,真的非常好用,用过之后,你会发现,延时和定时,真的从未如此简单。
|
10月前
|
Java 开发工具 Android开发
Android dx工具(jar包转成dex格式二进制jar包工具)
Android dx工具(jar包转成dex格式二进制jar包工具)
621 0
|
网络协议 Linux Android开发
Android C++ 系列:Linux 常用函数和工具
如果times是非空指针,则存取时间和修改时间被设置为 times所指向的结构中的值。此 时,进程的有效用户ID必须等于该文件的所有者 ID,或者进程必须是一个超级用户进程。对 文件只具有写许可权是不够的
114 0
|
存储 Java 编译器
【Android 构建新工具】Bazel 构建Android项目
Bazel只是编译工具,不是真正的编译器,所以还是需要Andorid开发的SD、NDK以及Android Studio,并配置开发环境。
409 0