Skip to content

Instantly share code, notes, and snippets.

@ljubisa987
Created October 30, 2016 22:17
Show Gist options
  • Save ljubisa987/929642901340b0d6e4235c81d1eebd3c to your computer and use it in GitHub Desktop.
Save ljubisa987/929642901340b0d6e4235c81d1eebd3c to your computer and use it in GitHub Desktop.
Pulling SQLite database off Android using ADB without root
# Step 1:
# (may need -s <device_id> if multiple devices connected
adb backup -f /tmp/data.ab -noapk com.package
# Step 2:
# When prompted, use the phone to give permission for the backup, and **leave the password blank**
# Step 3:
dd if=/tmp/data.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" | tar -xvf -
# Credit to http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment