In my Android project I use Realm. Sometimes I need to extract db file from device. To do this I follow the next steps:
- Open console
- adb shell
- run-as my_project_name_space
- cd files
- cp my_db_file.realm /sdcard
- exit
- exit
- adb pull sdcard/my_db_file.realm d:\Temp\my_db_file.realm
As result in folder d:\Temp
I get db file: my_db_file.realm
Nice. It's work fine. But when I need again to extract db file I must again do all of this 8 steps. Has any faster approach? Something like start script that execute all of this 8 steps. Or or something similar.
Thanks.