Added logging to local database

This commit is contained in:
Graham Jones
2019-11-10 22:03:34 +00:00
parent 384bb7c9a3
commit 14fce1b6e1
8 changed files with 284 additions and 11 deletions

13
getDb.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
# This script copies the osdData database off the connected phone to a file called osdData.db in the current
# working directory.
# from https://stackoverflow.com/a/30377688
#
adb shell run-as uk.org.openseizuredetector chmod 777 /data/data/uk.org.openseizuredetector/databases
adb shell run-as uk.org.openseizuredetector chmod 777 /data/data/uk.org.openseizuredetector/databases/OsdData.db
adb shell run-as uk.org.openseizuredetector cp /data/data/uk.org.openseizuredetector/databases/OsdData.db /sdcard
adb pull /sdcard/OsdData.db ./OsdData.db
adb shell rm /sdcard/OsdData.db