summaryrefslogtreecommitdiffstats
path: root/tools/inspect-android
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-06-29 15:14:46 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-06-29 15:14:46 +0200
commit1d7d7769065837b0a13f829d2e1a5f3d933d9a64 (patch)
tree89578c70f254a747d3eb7a782dc7e25df0c01942 /tools/inspect-android
parent617e4773dfa2d8b0b7af103749909f218622e8a8 (diff)
downloadRustAndDust-1d7d7769065837b0a13f829d2e1a5f3d933d9a64.zip
RustAndDust-1d7d7769065837b0a13f829d2e1a5f3d933d9a64.tar.gz
tools/inspect-android: set PKG var
Diffstat (limited to 'tools/inspect-android')
-rwxr-xr-xtools/inspect-android6
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'"