1#!/bin/bash
2set -x
3adb root && adb wait-for-device
4
5adb shell setprop log.tag.ContactsProvider VERBOSE && adb shell killall android.process.acore
6
7adb shell setprop log.tag.SQLiteSlowQueries VERBOSE
8CONTACTS_UID=`adb shell pm list packages -U | sed -ne 's/^package:com\.android\.providers\.contacts  *uid://p'`
9adb shell setprop db.log.slow_query_threshold.$CONTACTS_UID 0
10adb shell setprop db.log.detailed 1 # to show more details in the "slow query" log
11
12# adb shell setprop log.tag.SQLiteQueryBuilder VERBOSE # Redundant if slowlog
13# enabled
14adb shell setprop log.tag.SQLiteConnection VERBOSE
15
16
17