Last active
April 1, 2023 18:26
-
-
Save cdsap/1e8a5900c3a83724ef77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# fill these values in | |
PACKAGE=package | |
DB=db.db | |
# copy db to sdcard using package permission (using cat because no cp command) | |
adb shell "run-as $PACKAGE cat /data/data/$PACKAGE/databases/$DB > /sdcard/$DB" | |
# pull file from sd card | |
adb pull /sdcard/$DB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment