安卓dex反编译为java代码神器

首页 > 安卓反编译 > 2017-11-13 17:33

今天小编给大家推荐一款非常好用的安卓dex反编译为java代码的工具,他就是JADX。先上一张JADX的界面图。

安卓dex反编译为java代码神器

JADX是一款开源的安卓反编译工具,项目代码托管再github上。

github源码地址: https://github.com/skylot/jadx

工具下载地址: https://github.com/skylot/jadx/releases/download/v0.6.1/jadx-0.6.1.zip

JADX提供命令行和GUI界面,GUI界面的使用方法比较简单,直接将apk文件拖入即可,下面介绍一下命令行使用的一些参数

jadx[-gui] [options] < input file > (.dex, .apk, .jar or .class)

options:

-d, --output-dir - output directory

-j, --threads-count - processing threads count

-r, --no-res - do not decode resources

-s, --no-src - do not decompile source code

-e, --export-gradle - save as android gradle project

--show-bad-code - show inconsistent code (incorrectly decompiled)

--no-replace-consts - don't replace constant value with matching constant field

--escape-unicode - escape non latin characters in strings (with \u)

--deobf - activate deobfuscation

--deobf-min - min length of name

--deobf-max - max length of name

--deobf-rewrite-cfg - force to save deobfuscation map

--deobf-use-sourcename - use source file name as class name alias

--cfg - save methods control flow graph to dot file

--raw-cfg - save methods control flow graph (use raw instructions)

-f, --fallback - make simple dump (using goto instead of 'if', 'for', etc)

-v, --verbose - verbose output

-h, --help - print this help

示例:

jadx -d out classes.dex

推荐阅读反编译dex