Skip to content

Instantly share code, notes, and snippets.

@omunroe-com
Forked from oozzal/pull_apk.md
Created August 27, 2018 07:59
Show Gist options
  • Save omunroe-com/9d9d0c0768f8d61b7cfc48d1eddaacb2 to your computer and use it in GitHub Desktop.
Save omunroe-com/9d9d0c0768f8d61b7cfc48d1eddaacb2 to your computer and use it in GitHub Desktop.
Pull Apk from device
  1. Determine the package name of the app, e.g. "com.example.someapp". Skip this step if you already know the package name.

adb shell pm list packages

Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.

  1. Get the full path name of the APK file for the desired package.

adb shell pm path com.example.someapp

The output will look something like this: package:/data/app/com.example.someapp-2.apk

  1. Pull the APK file from the Android device to the development box.

adb pull /data/app/com.example.someapp-2.apk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment