From 09ee4433efc9a62211bca3aff60415ba6d187ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 22 Feb 2016 15:32:12 +0100 Subject: add tools/inspect-android --- tools/inspect-android | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 tools/inspect-android 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 -- cgit v1.1-2-g2b99