Created
December 2, 2016 12:08
-
-
Save alphacat2018/4fcd56bc50dd9d285188af980f983f14 to your computer and use it in GitHub Desktop.
Push database file into an unrooted android device
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
/*assume you have created a database file outside*/ | |
adb push /sdcard/database.db newDatabase.db | |
adb shell | |
adb run-as my.package | |
adb cp /sdcard/database.db /data/data/my.package/databases/database.db | |
Until now,you should have replaced the original database.db successfully. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment