blob: c1143ce0e69ad4a3b8d6fd8fb12bed9042d463f9 [file] [log] [blame]
#!/bin/bash
level=$1
if [ $level == "on" ] || [ $level == "extreme" ]
then
adb shell setprop log.tag.MediaProvider VERBOSE
adb shell setprop log.tag.ModernMediaScanner VERBOSE
adb shell setprop log.tag.TranscodeHelper VERBOSE
adb shell setprop log.tag.FuseDaemon DEBUG
adb shell setprop log.tag.libfuse DEBUG
else
adb shell setprop log.tag.MediaProvider INFO
adb shell setprop log.tag.ModernMediaScanner INFO
adb shell setprop log.tag.FuseDaemon INFO
adb shell setprop log.tag.libfuse INFO
fi
if [ $level == "extreme" ]
then
adb shell setprop log.tag.SQLiteQueryBuilder VERBOSE
adb shell setprop log.tag.FuseDaemon VERBOSE
adb shell setprop log.tag.libfuse VERBOSE
adb shell setprop log.tag.TranscodeHelper VERBOSE
adb shell setprop persist.sys.fuse.log true
else
adb shell setprop log.tag.SQLiteQueryBuilder INFO
adb shell setprop log.tag.FuseDaemon INFO
adb shell setprop log.tag.libfuse INFO
adb shell setprop persist.sys.fuse.log false
fi
# Kill process to kick new settings into place
adb shell am force-stop com.android.providers.media
adb shell am force-stop com.android.providers.media.module
adb shell am force-stop com.google.android.providers.media.module