aboutsummaryrefslogtreecommitdiff
path: root/logging.sh
diff options
context:
space:
mode:
Diffstat (limited to 'logging.sh')
-rwxr-xr-xlogging.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/logging.sh b/logging.sh
new file mode 100755
index 00000000..eb341b9f
--- /dev/null
+++ b/logging.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -x
+adb root && adb wait-for-device
+
+adb shell setprop log.tag.ContactsProvider VERBOSE && adb shell killall android.process.acore
+
+adb shell setprop log.tag.SQLiteSlowQueries VERBOSE
+CONTACTS_UID=`adb shell pm list packages -U | sed -ne 's/^package:com\.android\.providers\.contacts *uid://p'`
+adb shell setprop db.log.slow_query_threshold.$CONTACTS_UID 0
+adb shell setprop db.log.detailed 1 # to show more details in the "slow query" log
+
+# adb shell setprop log.tag.SQLiteQueryBuilder VERBOSE # Redundant if slowlog
+# enabled
+adb shell setprop log.tag.SQLiteConnection VERBOSE
+
+