【BT+Log】BT抓取log方法以及log级别修改(HCI+Logcat)


中文版:

1. 关闭 bluetooth
2.  设置bt_stack.conf中所有的levels 为 6 。
把bt_stack.conf 从到 /system/etc/bluetooth/ pull出来,修改后push会之前目录

adb root

adb disable-verity

adb remount

#adb push bt_stack.conf /system/etc/bluetooth/

adb reboot

3.  #adb shell
#logcat -v threadtime > /mnt/sdcard/DUT-logcat &
// Bluetooth hci log
4.  Setting->Developer Options(If not this item, please Click "About phone">Click "Version" several times)>Click "Enable Bluetooth HCIsnoop log"
btsnoop log will be saved into

/sdcard/btsnoop_hci.cfa 或者 data/misc/bluetooth/logs/btsnoop_hci.cfa 
5.  打开 bluetooth
6,  开始复现问题,直到问题复现。

 

 英文版:

1.Turn off bluetooth
2.Set all trace levels to 6 in bt_stack.conf
Pull the /system/etc/bluetooth/bt_stack.conf file out, and push it back to the previous directory.
#adb push bt_stack.conf /system/etc/bluetooth/
3.#adb shell
#logcat -v threadtime > /mnt/sdcard/DUT-logcat &
// Bluetooth hci log
4.Setting->Developer Options(If not this item, please Click "About phone">Click "Version" several times)>Click "Enable Bluetooth HCIsnoop log"
Btsnoop log will be saved into /sdcard/btsnoop_hci.cfa
5. Turn on bluetooth
6. Reproduce the problem from pairing until the problem reappears.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM