MTK日志adb指令开启和关闭方法

 

adb shell am broadcast -a com.mediatek.mtklogger.ADB_CMD -e cmd_name start --ei cmd_target 1//打开mtk日志
adb shell am broadcast -a com.mediatek.mtklogger.ADB_CMD -e cmd_name stop --ei cmd_target 1//关闭mtk日志
adb shell getprop debug.MB.running//检查日志是否开启 1为开启 0 没开启
adb shell am broadcast -a com.mediatek.mtklogger.ADB_CMD -e cmd_name set_auto_start_1 --ei cmd_target 1 //开启开机自启动mtk日志
adb shell am broadcast -a com.mediatek.mtklogger.ADB_CMD -e cmd_name set_auto_start_0 --ei cmd_target 1 //关闭开机自启动

 

若要日志开启后重启有效,需要从上往下执行上述两条开启指令。

你可能感兴趣的:(Android)