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:

  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
Share:
11,077
vanshg
Author by

vanshg

Updated on June 09, 2022

Comments

  • vanshg
    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 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?

  • aroth
    aroth about 6 years
    Isn'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
    Daniel F almost 6 years
    FYI: 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
    RocketRandom almost 6 years
    I 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
    Avamander over 4 years
    On Xiaomi Mi 9, even this didn't work to get the Bluetooth HCI snoop.