Skip to content

Instantly share code, notes, and snippets.

View ohadcn's full-sized avatar

ohad ohadcn

  • rehovot/jerusalem, israel
View GitHub Profile
#!/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