Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 782
vanshg Avatar asked Mar 14 '18 21:03

vanshg


People also ask

Is Bluetooth HCI snoop log?

A Bluetooth HCI snoop log is a type of log file that stores all of the transmissions sent through Bluetooth on your Android device. If you can access a Bluetooth HCI snoop log, it means you've downloaded an app that logs data on your phone through Bluetooth communication and transmission.

Can I delete BTSnoop HCI log?

It is completely safe to delete this file, but it will be recreated unless HCI snooping is disabled.

What does Bluetooth HCI mean?

The Host Controller Interface (HCI) is used for interacting with a Bluetooth controller.


1 Answers

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
like image 57
vanshg Avatar answered Oct 13 '22 06:10

vanshg