打开蓝牙HCI开关的2种方法
1.开发模式hci log -> enable;
2.adb命令:
a.关闭蓝牙开关
b.adb shell setprop persist.bluetooth.btsnoopenable true
c.adb shell setprop persist.bluetooth.btsnooplogmode full
d.打开蓝牙开关
可以通过修改如下配置文件,修改hci log的存放路径:
mtk bt stack conf path:
/etc/bluetooth/mtk_bt_stack.conf
rm -rf /data/misc/bluetooth/logs/btsnoop_hci.log
adb shell setprop persist.log.tag.BluetoothObex VERBOSE
adb shell setprop persist.log.tag.BluetoothOpp VERBOSE
adb shell setprop persist.log.tag.BluetoothPbap VERBOSE
adb shell setprop persist.log.tag.BluetoothMap VERBOSE
....
adb pull /data/misc/bluetooth/logs/btsnoop_hci.log .
标签:shell,log,setprop,蓝牙,bluetooth,开关,adb,persist,HCI From: https://www.cnblogs.com/bluestorm/p/17605567.html