Skip to content

Decompile Android App

Paradis Perdu edited this page Feb 27, 2019 · 2 revisions

High Level

  • Retrieve app from the device
  • Run apktool to decompile the application
  • load APK within JADX to look at Java source code
  • Run dex2Jar to convert an APK into a JAR file and load this in JD-GUI

Tools

APKtool

https://ibotpeaches.github.io/Apktool

apktool d -f app.apk

Once apktool has been run you can view the contents of resources such as AndroidManifest.xml etc

Baksmali

https://github.com/JesusFreke/smali

This is an assembler/dissasembler for the dex format

baksmali classes.dex -o smaliclasses

baksmali smaliclasses -o classes.dex

apkx

https://github.com/b-mueller/apkx

This is a python wrapper which extracts the java source code from the APK.

apkx app.apk

dex2jar

https://github.com/pxb1988/dex2jar

This converts .dex file to .class files zipped as a jar.

d2j-dex2jar.sh -f app.apk

jadx

https://github.com/skylot/jadx

Dex to Java Decompiler

jadx -d out classes.dex

Clone this wiki locally