blob: c1143ce0e69ad4a3b8d6fd8fb12bed9042d463f9 [file] [log] [blame]
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -06001#!/bin/bash
2
3level=$1
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -06004
5if [ $level == "on" ] || [ $level == "extreme" ]
6then
7 adb shell setprop log.tag.MediaProvider VERBOSE
8 adb shell setprop log.tag.ModernMediaScanner VERBOSE
Zimbca603b2020-12-15 21:37:42 +00009 adb shell setprop log.tag.TranscodeHelper VERBOSE
Zim357e3072020-01-15 10:50:01 +000010 adb shell setprop log.tag.FuseDaemon DEBUG
11 adb shell setprop log.tag.libfuse DEBUG
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -060012else
13 adb shell setprop log.tag.MediaProvider INFO
14 adb shell setprop log.tag.ModernMediaScanner INFO
Zim357e3072020-01-15 10:50:01 +000015 adb shell setprop log.tag.FuseDaemon INFO
16 adb shell setprop log.tag.libfuse INFO
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -060017fi
18
19if [ $level == "extreme" ]
20then
Jeff Sharkey88d84fb2020-01-13 21:38:46 -070021 adb shell setprop log.tag.SQLiteQueryBuilder VERBOSE
Zim357e3072020-01-15 10:50:01 +000022 adb shell setprop log.tag.FuseDaemon VERBOSE
23 adb shell setprop log.tag.libfuse VERBOSE
Zimbca603b2020-12-15 21:37:42 +000024 adb shell setprop log.tag.TranscodeHelper VERBOSE
Sahana Rao7058be02020-06-22 12:53:23 +010025 adb shell setprop persist.sys.fuse.log true
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -060026else
Jeff Sharkey88d84fb2020-01-13 21:38:46 -070027 adb shell setprop log.tag.SQLiteQueryBuilder INFO
Zim357e3072020-01-15 10:50:01 +000028 adb shell setprop log.tag.FuseDaemon INFO
29 adb shell setprop log.tag.libfuse INFO
Sahana Rao7058be02020-06-22 12:53:23 +010030 adb shell setprop persist.sys.fuse.log false
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -060031fi
32
33# Kill process to kick new settings into place
34adb shell am force-stop com.android.providers.media
Jeff Sharkeyacc3b582019-12-07 11:52:32 -070035adb shell am force-stop com.android.providers.media.module
36adb shell am force-stop com.google.android.providers.media.module