Penetration Testing Tools jadx – Dex to Java Decompiler

jadx – Dex to Java Decompiler

22
0
SHARE

jadx – Dex to Java decompiler

Command line and GUI instruments for produce Java code from Android Dex and Apk recordsdata.

Building from

git clone https://github.com/skylot/jadx.git cd jadx ./gradlew dist

(on Windows, use

gradlew.bat

as a substitute of

./gradlew

)
Scripts for run jadx will likely be positioned in

construct/jadx/bin

and likewise packed to

construct/jadx-<model>.zip

Run
Run jadx on itself:

cd construct/jadx/ bin/jadx -d out lib/jadx-core-*.jar #or bin/jadx-gui lib/jadx-core-*.jar

Usage

jadx[-gui] [options] <enter file> (.dex, .apk, .jar or .class) choices: -d, --output-dir - output listing -j, --threads-rely - processing threads rely -r, --no-res - don't decode sources -s, --no-src - don't decompile code -e, --export-gradle - save as android gradle undertaking --show-unhealthy-code - present inconsistent code (incorrectly decompiled) --no-exchange-consts - do not exchange fixed worth with matching fixed discipline --escape-unicode - escape non latin characters in strings (with u) --deobf - activate deobfuscation --deobf-min - min size of identify --deobf-max - max size of identify --deobf-rewrite-cfg - drive to save deobfuscation map --deobf-use-sourcename - use file identify as class identify alias --cfg - save strategies management circulate graph to dot file --raw-cfg - save strategies management circulate graph (use uncooked directions) -f, --fallback - make easy dump (utilizing goto as a substitute of 'if', 'for', and so on) -v, --verbose - verbose output -h, --help - print this assist Example: jadx -d out lessons.dex

Troubleshooting

Out of memory error:

  • Reduce processing threads rely (

    -j

    possibility)

  • Increase most java heap measurement:
    • command line (instance for linux):

      JAVA_OPTS=”-Xmx4G” jadx -j 1 some.apk

    • edit ‘jadx’ script (jadx.bat on Windows) and setup greater heap measurement:

      DEFAULT_JVM_OPTS=”-Xmx2500M”

Contribution
To help this undertaking you possibly can:

  • Post ideas about new options/optimizations that vital to you
  • Submit bug utilizing one in all following patterns:
    • Java code examples which decompiles incorrectly
    • Error log and hyperlink to public out there apk file or app web page on Google play

LEAVE A REPLY

Please enter your comment!
Please enter your name here