summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-22 15:32:12 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-22 15:32:12 +0100
commit09ee4433efc9a62211bca3aff60415ba6d187ab0 (patch)
tree34852069b4f782b7646005534b4f44eb3b5337cd
parent1a380448adc785c806fe9cc0aceda225c82290f3 (diff)
downloadRustAndDust-09ee4433efc9a62211bca3aff60415ba6d187ab0.zip
RustAndDust-09ee4433efc9a62211bca3aff60415ba6d187ab0.tar.gz
add tools/inspect-android
-rwxr-xr-xtools/inspect-android30
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