diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-06-29 15:14:46 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-06-29 15:14:46 +0200 |
commit | 1d7d7769065837b0a13f829d2e1a5f3d933d9a64 (patch) | |
tree | 89578c70f254a747d3eb7a782dc7e25df0c01942 /tools/inspect-android | |
parent | 617e4773dfa2d8b0b7af103749909f218622e8a8 (diff) | |
download | RustAndDust-1d7d7769065837b0a13f829d2e1a5f3d933d9a64.zip RustAndDust-1d7d7769065837b0a13f829d2e1a5f3d933d9a64.tar.gz |
tools/inspect-android: set PKG var
Diffstat (limited to 'tools/inspect-android')
-rwxr-xr-x | tools/inspect-android | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/inspect-android b/tools/inspect-android index 760b0d8..981571c 100755 --- a/tools/inspect-android +++ b/tools/inspect-android @@ -1,12 +1,14 @@ #! /bin/bash +PKG=ch.asynk.rustanddust.android + 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 + adb shell run-as $PKG ls /data/data/$PKG/$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 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'" |