Skip to content

Instantly share code, notes, and snippets.

@iordic
Last active March 16, 2019 00:38
Show Gist options
  • Save iordic/bd930ce206184dbc8a5f10613069193b to your computer and use it in GitHub Desktop.
Save iordic/bd930ce206184dbc8a5f10613069193b to your computer and use it in GitHub Desktop.
Basic android app reversing cheatsheet

Cheatsheet for APK reversing

Get an apk from adb interface

  1. Enable debugging usb in your phone and connect it to your computer via usb cable.
  2. Ensure your computer recognize your device: adb devices
  3. If not, start the server: adb start-server. Or restart: adb kill-server and then: adb start-server
  4. List all installed packages: adb shell pm list packages
  5. Find the package you want to download and copy the full package name. Example: com.example.app
  6. Get the apk path: adb shell pm path com.example.app
  7. Copy the result path and pull: adb pull /url/to/app/example.apk
  8. Done! Now you have the apk in your current working directory.

Make apk debuggable

  1. Once you have decompiled apk, go to file AndroidManifest.xml
  2. Search for the tag <application> and put inside the attribute: android:debuggable="true"
  3. Done! Don't forget to save it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment