Bluetooth HCI Snoop Log not generated Pixel 2
11,077
It turns out that Google doesn't simply output the logs to the internal memory on Pixel devices. Instead, these are the steps to obtain the logs:
- Enable Bluetooth
- Enable Developer options
- Enable Bluetooth HCI snoop log in Developer options
- Disable & reenable Bluetooth
- Reboot
- Go back to Developer options and "take bug report"
- Wait for the bug report to be created, and once finished, click on the notification, and share the zip file via email or however you want to view the logs
- Find the log file in
FS/data/misc/bluetooth/logs/btsnoop_hci.log
Author by
vanshg
Updated on June 09, 2022Comments
-
vanshg about 2 years
I would like to enable Bluetooth HCI Snoop logging, however, when I enable the option in Developer Settings, no file shows up in my internal storage directory. I took a look at the
/etc/bluetooth/bt_stack.conf
file as well, and there are no lines indicating that BtSnoop is enabled or the location where the Bt Snoop log file will be stored. I also tried manually enabling logging withadb shell settings put secure bluetooth_hci_log 1
but that doesn't fix the issue either. I'm running Android 8.1 on a Pixel 2. Any way to actually get the logging enabled or any workarounds? -
aroth about 6 yearsIsn't it the case that somewhere between "Reboot" and "Take bug report" there should be a "do whatever Bluetooth actions you want to log" step?
-
Daniel F almost 6 yearsFYI: On a Nexus 5 with Android 6.0.1 the
btsnoop_hci.log
file is created directly in the internal storage (/sdcard/btsnoop_hci.log
), even without the need of taking a bug report. So if you're doing some serious BT-debugging, avoid 8.0 (and possibly 7.0?) -
RocketRandom almost 6 yearsI found that just disabling and reenable bluetooth step was enough to solve my issue - then the log file gets generated under /data/misc/bluetooth/logs/
-
Avamander over 4 yearsOn Xiaomi Mi 9, even this didn't work to get the Bluetooth HCI snoop.