JADX


Source link: https://github.com/skylot/jadx

JADX

jadx - Dex to Java decompiler

Command line and GUI tools for produce Java source code from Android Dex and Apk files

Downloads

Building from source

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

(on Windows, use gradlew.bat instead of ./gradlew)

Scripts for run jadx will be placed in build/jadx/bin and also packed to build/jadx-<version>.zip

Run

Run jadx on itself:

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

Usage

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 Example:  jadx -d out classes.dex 

Troubleshooting

Out of memory error:
  • Reduce processing threads count ( -j option)
  • Increase maximum java heap size:
    • command line (example for linux): JAVA_OPTS="-Xmx4G" jadx -j 1 some.apk
    • edit 'jadx' script (jadx.bat on Windows) and setup bigger heap size: DEFAULT_JVM_OPTS="-Xmx2500M"

Contribution

To support this project you can:

  • Post thoughts about new features/optimizations that important to you
  • Submit bug using one of following patterns:
    • Java code examples which decompiles incorrectly
    • Error log and link to public available apk file or app page on Google play

And any other comments will be very helpfull, because at current stage of development it is very time consuming to find new bugs, design and implement new features. Also I need to prioritize these task for complete most important at first.


Licensed under the Apache 2.0 License

Copyright 2016 by Skylot

Resources

Fun interactive Android count widget. Stepper Touch for Android is based on a Material Up showcase with a newly introduced SpringAnimator for animations.

instapk is an android studio plugin which will share apk to slack teams with a single button click! No more browse or drag n drop, be at your place!

A simple timeout sensor that detects if there hasn't been any user interaction for a specified amount of time. If the timer runs up without interaction, a dialog will popup giving them another 30 seconds to 'stay logged in' otherwise the app will kill itself.

Sometime, to do round textview or round view group is hard. Need to apply dynamic color? Nine patch is not answer? You are on the right place.

A DialogFragment that implements the Full-screen dialog pattern defined in the Material Design guidelines.

Library and SDK for reading QR codes on iOS and Android.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes