Last active
March 23, 2024 15:54
-
-
Save anonymous/9109984 to your computer and use it in GitHub Desktop.
Bash script for pulling APK's from Non-rooted android devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if test $# -lt 1 ; then | |
echo "Usage: download_apk.sh <GooglePlayPackageName>" | |
exit 1 | |
fi | |
PACKAGE=$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
checkout my fork, it can download all your apps at once
https://gist.github.com/ohadcn/f2e5c2436c67cd8180e2