Skip to content

Instantly share code, notes, and snippets.

@laaptu
Created March 3, 2016 05:41
Show Gist options
  • Save laaptu/000ab1b0a0a7789ae857 to your computer and use it in GitHub Desktop.
Save laaptu/000ab1b0a0a7789ae857 to your computer and use it in GitHub Desktop.
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