-
Notifications
You must be signed in to change notification settings - Fork 57
/
logging.sh
executable file
·36 lines (32 loc) · 1.21 KB
/
logging.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/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