blob: 981571c475ae4198fd0a017783f1f9b2057ed9d7 (
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
31
32
|
#! /bin/bash
PKG=ch.asynk.rustanddust.android
for I in cache databases files lib; do
echo " *** $I"
adb shell run-as $PKG ls /data/data/$PKG/$I
echo
done
adb shell run-as $PKG "cat /data/data/$PKG/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
|