jeudi 23 avril 2015

adb commands in bash script(copying sqlite from android to mac)

Please help me to do same commands by bash script automatically. I'm on Mac and i'm getting tired of doing same thing every time when i want to see my database.

./adb shell run-as com.example.wow

chmod 777 databases

cd databases

chmod 777 myDB.db

exit

cat /data/data/http://ift.tt/1Gb3p0W > /sdcard/myDB.db

exit

./adb pull /sdcard/myDB.db /Users/

Thank you in advance.

Aucun commentaire:

Enregistrer un commentaire