Skip to content
One-Step APK Decompilation With Multiple Backends
Python Shell
Branch: master
Clone or download
Latest commit 91f81dc Apr 27, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add enjarify .pex Apr 23, 2017
README.md Update README.md Apr 27, 2017
apkx Add enjarify option Apr 27, 2017
apkx-libs.jar Update libs Apr 23, 2017
enjarify.pex Add enjarify .pex Apr 23, 2017
install.sh Update install script Apr 27, 2017

README.md

apkx - Android APK Decompilation for the Lazy

A Python wrapper to popular free dex converters and Java decompilers. Extracts Java source code directly from the APK. Useful for experimenting with different converters/decompilers without having to worry about classpath settings and command line args.

Installation

$ git clone https://github.com/b-mueller/apkx
$ cd apkx
$ sudo ./install.sh

Notes:

  • JRE needs to be installed and in PATH
  • enjarify requires Python 3

Usage

Pass the APK filename on the command line:

$ apkx HelloWorld.apk 
Extracting HelloWord.apk to HelloWord
Converting: classes.dex -> classes.jar (dex2jar)
dex2jar HelloWord/classes.dex -> HelloWord/classes.jar
Decompiling to HelloWord/src (cfr)

The default combination of converter and decompiler is dex2jar and cfr. Use the -c and -d flags to change this. E.g.:

$ apkx -c enjarify -d procyon HelloWorld.apk

To get help, run:

$ apkx -h

Tools

This script integrates the following tools:

About

This script accompanies the OWASP Mobile Security Testing Guide. For further instructions and usage examples, see also:

You can’t perform that action at this time.