【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