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
{"lastUpload":"2020-06-09T15:18:20.257Z","extensionVersion":"v3.4.3"} |
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
@echo off | |
adb shell "package=$(pm list package %1);packageName=${package#*package:};echo packageName: $packageName;filePath=$(run-as $packageName find /data/data/$packageName -name *%2*);echo filePath: $filePath;mkdir /sdcard/myPull;run-as $packageName cp -r $filePath /sdcard/myPull/;cd /sdcard/myPull;ls;" | |
adb pull /sdcard/myPull | |
adb shell "rm -r /sdcard/myPull" | |
pause | |
rem this line is an commented example: pullFiles MyApp .db.By this you can pull all db files. |
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. |