Created
March 3, 2016 05:41
-
-
Save laaptu/000ab1b0a0a7789ae857 to your computer and use it in GitHub Desktop.
Simple shell script to pull files from Android private storage
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 | |
# first argument pass the package name of the app | |
#echo $1 | |
# the phone must be rooted for this to work | |
# this will dump the files directly in the location where this script is run | |
# ./pull.sh com.yourpackagename | |
adb shell "su -c 'chmod -R +rwx /data/data/$1;cp -r /data/data/$1/files /sdcard/;exit;'" | |
adb pull /sdcard/files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment