Jeff Sharkey | cc5c31d | 2019-10-08 16:10:53 -0600 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | level=$1 |
Jeff Sharkey | cc5c31d | 2019-10-08 16:10:53 -0600 | [diff] [blame] | 4 | |
| 5 | if [ $level == "on" ] || [ $level == "extreme" ] |
| 6 | then |
| 7 | adb shell setprop log.tag.MediaProvider VERBOSE |
| 8 | adb shell setprop log.tag.ModernMediaScanner VERBOSE |
Zim | bca603b | 2020-12-15 21:37:42 +0000 | [diff] [blame] | 9 | adb shell setprop log.tag.TranscodeHelper VERBOSE |
Zim | 357e307 | 2020-01-15 10:50:01 +0000 | [diff] [blame] | 10 | adb shell setprop log.tag.FuseDaemon DEBUG |
| 11 | adb shell setprop log.tag.libfuse DEBUG |
Jeff Sharkey | cc5c31d | 2019-10-08 16:10:53 -0600 | [diff] [blame] | 12 | else |
| 13 | adb shell setprop log.tag.MediaProvider INFO |
| 14 | adb shell setprop log.tag.ModernMediaScanner INFO |
Zim | 357e307 | 2020-01-15 10:50:01 +0000 | [diff] [blame] | 15 | adb shell setprop log.tag.FuseDaemon INFO |
| 16 | adb shell setprop log.tag.libfuse INFO |
Jeff Sharkey | cc5c31d | 2019-10-08 16:10:53 -0600 | [diff] [blame] | 17 | fi |
| 18 | |
| 19 | if [ $level == "extreme" ] |
| 20 | then |
Jeff Sharkey | 88d84fb | 2020-01-13 21:38:46 -0700 | [diff] [blame] | 21 | adb shell setprop log.tag.SQLiteQueryBuilder VERBOSE |
Zim | 357e307 | 2020-01-15 10:50:01 +0000 | [diff] [blame] | 22 | adb shell setprop log.tag.FuseDaemon VERBOSE |
| 23 | adb shell setprop log.tag.libfuse VERBOSE |
Zim | bca603b | 2020-12-15 21:37:42 +0000 | [diff] [blame] | 24 | adb shell setprop log.tag.TranscodeHelper VERBOSE |
Sahana Rao | 7058be0 | 2020-06-22 12:53:23 +0100 | [diff] [blame] | 25 | adb shell setprop persist.sys.fuse.log true |
Jeff Sharkey | cc5c31d | 2019-10-08 16:10:53 -0600 | [diff] [blame] | 26 | else |
Jeff Sharkey | 88d84fb | 2020-01-13 21:38:46 -0700 | [diff] [blame] | 27 | adb shell setprop log.tag.SQLiteQueryBuilder INFO |
Zim | 357e307 | 2020-01-15 10:50:01 +0000 | [diff] [blame] | 28 | adb shell setprop log.tag.FuseDaemon INFO |
| 29 | adb shell setprop log.tag.libfuse INFO |
Sahana Rao | 7058be0 | 2020-06-22 12:53:23 +0100 | [diff] [blame] | 30 | adb shell setprop persist.sys.fuse.log false |
Jeff Sharkey | cc5c31d | 2019-10-08 16:10:53 -0600 | [diff] [blame] | 31 | fi |
| 32 | |
| 33 | # Kill process to kick new settings into place |
| 34 | adb shell am force-stop com.android.providers.media |
Jeff Sharkey | acc3b58 | 2019-12-07 11:52:32 -0700 | [diff] [blame] | 35 | adb shell am force-stop com.android.providers.media.module |
| 36 | adb shell am force-stop com.google.android.providers.media.module |