Skip to content

Instantly share code, notes, and snippets.

@j796160836
Forked from ohadcn/download_apk.sh
Last active June 16, 2019 17:26
Show Gist options
  • Save j796160836/795df52d70330c0fb87c to your computer and use it in GitHub Desktop.
Save j796160836/795df52d70330c0fb87c to your computer and use it in GitHub Desktop.
#!/bin/sh
if test $# -lt 1 ; then
echo "Usage: download_apk.sh <target-dir>"
exit 1
fi
for APK_PATH in $(adb shell pm list packages -f -3|sed 's/package://g'|sed s/=.*$//g) ; do
echo -n "Pulling $APK_PATH from device... "
adb pull $APK_PATH $1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment