Skip to content

Instantly share code, notes, and snippets.

@strazzere
Created October 16, 2013 22:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strazzere/7016202 to your computer and use it in GitHub Desktop.
Save strazzere/7016202 to your computer and use it in GitHub Desktop.
Automatically find the path of an apk, perform a pull and rename without the number increments
#!/bin/sh
adb shell pm path $1 |\
sed 's/package://' |\
tr -d '\r' |\
xargs -I % adb pull % $1.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment