summaryrefslogtreecommitdiffstats
path: root/tools/inspect-android
blob: 760b0d8b758d9d34780cdb2c28d79f8a571db039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 " *** TURNS ***"
sqlite3 db.sqlite 'select * from turns;'
echo