blob: fd2a3a58560a37936adf7b03af54bd0ba180f1d1 [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
Zim357e3072020-01-15 10:50:01 +00009 adb shell setprop log.tag.FuseDaemon DEBUG
10 adb shell setprop log.tag.libfuse DEBUG
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -060011else
12 adb shell setprop log.tag.MediaProvider INFO
13 adb shell setprop log.tag.ModernMediaScanner INFO
Zim357e3072020-01-15 10:50:01 +000014 adb shell setprop log.tag.FuseDaemon INFO
15 adb shell setprop log.tag.libfuse INFO
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -060016fi
17
18if [ $level == "extreme" ]
19then
Jeff Sharkey88d84fb2020-01-13 21:38:46 -070020 adb shell setprop log.tag.SQLiteQueryBuilder VERBOSE
Zim357e3072020-01-15 10:50:01 +000021 adb shell setprop log.tag.FuseDaemon VERBOSE
22 adb shell setprop log.tag.libfuse VERBOSE
Sahana Rao7058be02020-06-22 12:53:23 +010023 adb shell setprop persist.sys.fuse.log true
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -060024else
Jeff Sharkey88d84fb2020-01-13 21:38:46 -070025 adb shell setprop log.tag.SQLiteQueryBuilder INFO
Zim357e3072020-01-15 10:50:01 +000026 adb shell setprop log.tag.FuseDaemon INFO
27 adb shell setprop log.tag.libfuse INFO
Sahana Rao7058be02020-06-22 12:53:23 +010028 adb shell setprop persist.sys.fuse.log false
Jeff Sharkeycc5c31d2019-10-08 16:10:53 -060029fi
30
31# Kill process to kick new settings into place
32adb shell am force-stop com.android.providers.media
Jeff Sharkeyacc3b582019-12-07 11:52:32 -070033adb shell am force-stop com.android.providers.media.module
34adb shell am force-stop com.google.android.providers.media.module