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

dex2jar

dex2jar can transform the .apk into a .jar file viewable by jd-gui

jd-gui

jd-gui can view the .jar file generated by dex2jar

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