Work with APKs
Some tools to work with APKs
Extract the APK from your device
With APK Extractor
- install an
APK Extractor
app from the Store - launch the app
- select the app you want to extract
- the app will create an
.apk
file
With adb
- install
adb
on your computer - get the full app name with
adb shell pm list packages | grep APP_NAME
- get the apk path with
adb shell pm path FULL_APP_NAME
- pull the apk with
adb pull APK_PATH
apktools
apktool
can extract the .apk
file into a directory with the resources and the classes
apktools
apktool
can extract the .apk
file into a directory with the resources and the classes- Follow the docs on https://apktool.org/docs/install
- download the latest release
- run
java -jar apktool.jar d APP_NAME.apk
dex2jar
dex2jar
can transform the .apk
into a .jar
file viewable by jd-gui
dex2jar
dex2jar
can transform the .apk
into a .jar
file viewable by jd-gui
- https://github.com/pxb1988/dex2jar/releases
- download the latest release
- extract the zip file
- run
d2j-dex2jar.sh APP_NAME.apk
jd-gui
jd-gui
can view the .jar
file generated by dex2jar
jd-gui
jd-gui
can view the .jar
file generated by dex2jar
- https://github.com/java-decompiler/jd-gui/releases
- download the latest release
- run
java -jar jd-gui.jar APP_NAME-dex2jar.jar
- you can now see classes
jadx
jadx
can decompile the .apk
file and view the source code
jadx
jadx
can decompile the .apk
file and view the source code- https://github.com/skylot/jadx/releases
- download the latest release
- run
jadx -d out_folder APP_NAME.apk
- you can now see the source code
- run
jadx-gui
(and open the APK inside ) to see the source code in a GUI