Retrieving the HCI Log (2024)

You are here: Information > Application Notes > Get Link Key from Android for Classic Bluetooth Decryption > Getting the Android Link Key for Classic Bluetooth Decryption > Retrieving the HCI Log

Retrieving the HCI Log

Now that Developer options have been activated on the Android device, you can retrieve the HCI log.

  1. On the Android device go to Settings.
  2. Select Developer options.
  3. Click to enable Bluetooth HCI snoop logging.
  4. Return to the Settings screen and select Developer options.
  5. In the Developer options screen select Enable Bluetooth HCI snoop log. The log file is now enabled.

Retrieving the HCI Log (1)

Typical Android Developer options screen

  1. On the Android device turn off Bluetooth.
  2. Turn on Bluetooth.
  3. Reboot the Android device.

The HCI log file is now being generated and is saved to /sdcard/btsnoop_hci.log.

Note: Samsung devices have a slightly different location for the btsnoop file.

There are two options for retrieving the HCI log from the Android device.

  1. Attach the Android device to your computer. The file /sdcard/btsnoop_hci.log is in the root of one of the mountable drives. Copy the file to directory C:/Users/Public/Public Documents/Frontline Test Equipement/My Capture File/.
  2. The second option is to use the Android Debug Bridge (ADB)using the following steps. The debug bridge is included with Android Software Developer Kit.
    1. On the Androd device Development screen, select Android debugging or USB debugging.
    2. Connect your computer and Android device with a USB cable.
    3. Open a terminal on your computer and run the following command.

      adb devices.

    4. Your Android device should show up in this list confirming that ADB is working.

      List of devices attached

      XXXXXXXXXXX device

    5. In the terminal enter the following command to copy the HCI Log to your computer.

      adb pull /sdcard/btsnoop_hci.log

Next....Retrieving the HCI Log (2)

Retrieving the HCI Log (2024)
Top Articles
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 6073

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.