Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash script for pulling APK's from Non-rooted android devices
if test $# -lt 1 ; then
echo "Usage: <GooglePlayPackageName>"
exit 1
APK_PATH=`adb shell pm list packages -f -3 | grep $PACKAGE | cut -d'=' -f 1 | cut -c9-`
echo "Pulling $APK_PATH from device"
echo `adb pull ${APK_PATH} ./${PACKAGE}.apk`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.