1#!/bin/bash 2 3level=$1 4 5if [ $level == "on" ] || [ $level == "extreme" ] 6then 7 adb shell setprop log.tag.MediaProvider VERBOSE 8 adb shell setprop log.tag.ModernMediaScanner VERBOSE 9 adb shell setprop log.tag.TranscodeHelper VERBOSE 10 adb shell setprop log.tag.FuseDaemon DEBUG 11 adb shell setprop log.tag.libfuse DEBUG 12else 13 adb shell setprop log.tag.MediaProvider INFO 14 adb shell setprop log.tag.ModernMediaScanner INFO 15 adb shell setprop log.tag.FuseDaemon INFO 16 adb shell setprop log.tag.libfuse INFO 17fi 18 19if [ $level == "extreme" ] 20then 21 adb shell setprop log.tag.SQLiteQueryBuilder VERBOSE 22 adb shell setprop log.tag.FuseDaemon VERBOSE 23 adb shell setprop log.tag.libfuse VERBOSE 24 adb shell setprop log.tag.TranscodeHelper VERBOSE 25 adb shell setprop persist.sys.fuse.log true 26else 27 adb shell setprop log.tag.SQLiteQueryBuilder INFO 28 adb shell setprop log.tag.FuseDaemon INFO 29 adb shell setprop log.tag.libfuse INFO 30 adb shell setprop persist.sys.fuse.log false 31fi 32 33# Kill process to kick new settings into place 34adb shell am force-stop com.android.providers.media 35adb shell am force-stop com.android.providers.media.module 36adb shell am force-stop com.google.android.providers.media.module 37