konstantinbueschel
10/27/2015 - 3:13 PM

backup data and applications from Android devices without root via adb Source: http://blog.shvetsov.com/2013/02/access-android-app-data-wit

backup data and applications from Android devices without root via adb

Source: http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html

# create backup of app in Downloads dir
adb backup -f ~/Downloads/data_backup_adb.ab -noapk <PACKAGE_NAME>

# change to Downloads
cd ~/Downloads

# quickly extract a simple non-encrypted backup
dd if=data_backup_adb.ab bs=1 skip=24 | openssl zlib -d | tar -xvf -

# not all openssl installations are compiled with zlib support. Here's an 
# alternative one-liner that makes use of python to achieve the same result:
dd if=data_backup_adb.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" | tar -xvf -