blob: eb341b9fd81d552c3a4a8cfc2044aaf87f3accaa [file] [log] [blame]
#!/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