Skip to content

Instantly share code, notes, and snippets.

@niltonvasques
Created June 29, 2016 18:32
Show Gist options
  • Select an option

  • Save niltonvasques/e83e25caa76986d7dafe34a112b324d0 to your computer and use it in GitHub Desktop.

Select an option

Save niltonvasques/e83e25caa76986d7dafe34a112b324d0 to your computer and use it in GitHub Desktop.
Pull databases from android application
#!/bin/bash
# USAGE
# apk-db-pull.sh com.package.example
adb backup -f data.ab -noapk $1
dd if=data.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" | tar -xvf -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment