vanshg
vanshg

Reputation: 1145

Bluetooth HCI Snoop Log not generated Pixel 2

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 with adb 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?

Upvotes: 5

Views: 14263

Answers (1)

vanshg
vanshg

Reputation: 1145

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:

  1. Enable Bluetooth
  2. Enable Developer options
  3. Enable Bluetooth HCI snoop log in Developer options
  4. Disable & reenable Bluetooth
  5. Reboot
  6. Go back to Developer options and "take bug report"
  7. 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
  8. Find the log file in FS/data/misc/bluetooth/logs/btsnoop_hci.log

Upvotes: 19

Related Questions