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

中文版:web

1. 關閉 bluetooth
2.  設置bt_stack.conf中全部的levels 爲 6 。
把bt_stack.conf 從到 /system/etc/bluetooth/ pull出來,修改後push會以前目錄shell

adb rootapp

adb disable-verityoop

adb remountthis

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

adb reboot3d

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 code

/sdcard/btsnoop_hci.cfa 或者 data/misc/bluetooth/logs/btsnoop_hci.cfa 
5.  打開 bluetooth
6,  開始復現問題,直到問題復現。ci

 

 英文版:rem

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 log4.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.cfa5. Turn on bluetooth6. Reproduce the problem from pairing until the problem reappears.
相關文章
相關標籤/搜索