Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Simple shell script to pull files from Android private storage
#!/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