Created
January 20, 2014 11:51
-
-
Save nrudenko/8518789 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
set app_package=%1 | |
set db_name=%2 | |
set adb_path=%ANDROID_HOME%\platform-tools\adb | |
set dest_path=%db_name% | |
set device_dest_path=/mnt/sdcard | |
:GET_DB | |
del %dest_path% | |
%adb_path% shell "run-as %app_package% cat databases/%db_name% >> %device_dest_path%/%db_name%; exit; exit;" | |
%adb_path% pull %device_dest_path%/%db_name% %dest_path% | |
%adb_path% shell "rm %device_dest_path%/%db_name%" | |
D:\Soft\Sqliteman-1.2.2\sqliteman.exe %dest_path% | |
GOTO GET_DB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment