# Bluetooth

* We can enable Bluetooth HCI logging from developers options and then do some BLE stuff and there will be a file called `btsnoop_hci.log`.
* `/etc/bluetooth/bt_stack.conf` is the file that hold all the information about the bluetooth configuration.
  * If rooted phone: `adb shell su` gives you the root access
    * But even then we cannot edit that file manually.
* Chances are that we might not be able to directly pull the `btsnoop_hci.log` via `adb pull <path to the file>`.
  * Best solution is to get sudo shell and copy that file to `/sdcard`
  * Then run `abd pull /sdcard/btsnoop_hci.log`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mzfr.gitbook.io/mzfrpedia/bluetooth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
