Skip to content

Instantly share code, notes, and snippets.

@beshkenadze
Created March 21, 2014 08:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beshkenadze/9681670 to your computer and use it in GitHub Desktop.
Save beshkenadze/9681670 to your computer and use it in GitHub Desktop.
#!/bin/bash
PACKAGE=$1
DATABASE_NAME=$2
adb shell "run-as $PACKAGE cat databases/$DATABASE_NAME > /sdcard/$DATABASE_NAME"
adb pull /sdcard/$DATABASE_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment