diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-22 15:32:12 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-22 15:32:12 +0100 |
commit | 09ee4433efc9a62211bca3aff60415ba6d187ab0 (patch) | |
tree | 34852069b4f782b7646005534b4f44eb3b5337cd /tools/inspect-android | |
parent | 1a380448adc785c806fe9cc0aceda225c82290f3 (diff) | |
download | RustAndDust-09ee4433efc9a62211bca3aff60415ba6d187ab0.zip RustAndDust-09ee4433efc9a62211bca3aff60415ba6d187ab0.tar.gz |
add tools/inspect-android
Diffstat (limited to 'tools/inspect-android')
-rwxr-xr-x | tools/inspect-android | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/inspect-android b/tools/inspect-android new file mode 100755 index 0000000..e44d9ed --- /dev/null +++ b/tools/inspect-android @@ -0,0 +1,30 @@ +#! /bin/bash + +for I in cache databases files lib; do + echo " *** $I" + adb shell run-as ch.asynk.rustanddust.android ls /data/data/ch.asynk.rustanddust.android/$I + echo +done + +adb shell run-as ch.asynk.rustanddust.android "cat /data/data/ch.asynk.rustanddust.android/databases/rustanddust.sqlite > '/sdcard/db.sqlite'" +adb pull '/sdcard/db.sqlite' +adb shell "rm '/sdcard/db.sqlite'" + +echo " *** SCHEMA ***" +sqlite3 db.sqlite '.schema' +echo +echo " *** CONFIG ***" +sqlite3 db.sqlite 'select * from config;' +echo +echo " *** PLAYERS ***" +sqlite3 db.sqlite 'select * from players;' +echo +echo " *** BATTLES ***" +sqlite3 db.sqlite 'select * from battles;' +echo +echo " *** GAMES ***" +sqlite3 db.sqlite 'select * from games;' +echo +echo " *** STATES ***" +sqlite3 db.sqlite 'select * from states;' +echo |