Reverse Engineering (APK)
This is a page about tools for analyzing APK files, which are application packages for Android, and how to use them.
Tools
Apktool
A tool for reverse engineering APKs.
- Arch
paru -S android-apktool
# or
paru -S android-apktool-git
dex2jar
A tool to convert Android's dex format to Java's class.
- Arch
paru -S dex2jar
# or
paru -S dex2jar-git
jd-cli
CLI tool for Java Decompiler.
- Arch
paru -S jd-cli
jd-gui
GUI tool for Java Decompiler.
- Arch
- Black Arch
paru -S jd-gui
# or
paru -S jd-gui-git
# or
paru -S jd-gui-bin
paru -S jd-gui
How to Use
When using Apktool
The source will be extracted to base/
by executing the command as follows.
apktool d base.apk
When using dex2jar, jd-*
Convert the APK to a jar file with dex2jar as follows.
dex2jar base.apk
Decompile the generated base-dex2jar.jar
. In case of GUI, run jd-gui and select base-dex2jar.jar
from File Open. In case of CUI, run jd-cli as follows to extract the file to src/
.
jd-cli base-dex2jar.jar -od src