A BluetoothHCI (Host Controller Interface) snoop log is a log file that contains all the Bluetoothtransmissions that you have made on your android gadget. Having this file means that you’ve got an app that allows logging (4.4) or which logs (4.4 android) of all Bluetoothcommunications, your android gadget logs Bluetoothusage automatically or you allow Bluetoothtransmission logging.
This is a storage of data of Bluetoothusage over time and hence should not be anything to be troubled about. It can even be deleted without a problem to clear the Bluetoothusage history on your device but it will be restored and updated with fresher Bluetoothuse unless the logging of Bluetoothusage is disabled. You should not worry about it since it is an ordinary feature from android 4.4+.
Most android devices are able to log full Bluetoothtransmissions. Before android 4.4 one required root and app such as BluetoothHCI log. In all gadgets with android developer settings, beginning with android 4.4, the log choice is in existence.
How to create HCI log
Enable developer settings.
The developer settings are usually invisible. Tapping on the builder number located in android settings seven times will easily enable them.
Go to android settings and open the developer menu. There is a checkbox identified “Enable BluetoothHCI Snoop Log”. Before powering on the car, start the log and stop it before sending the file. This log file is stored in the SD storage or USB root and is known as btsnoop_hci.log.
Wireshark, a network protocol analyzer, can be used to peek into the file. You just need to retitle the file to *.cap and open it.
If you are a security specialist or a developer, sometimes you may want to analyze and capture the Bluetoothhost controller interface packets. You will do this by enabling the BluetoothHCI snoop log. This will store these packets in a file on your device storage enabling easy retrieval. After that you can use a program to analyze them for example Wireshark.
How to recover the HCI log
- Go to settings on your Android device.
- Click on developer options
- Select enable BluetoothHCI snoop log.
- Go back to setting on your device and then choose developer options
- On developer options window you then click on enable BluetoothHCI snoop
- log. This will enable your log file.
- Turn off Bluetoothon your Android device.
- Turn Bluetoothon.
- Restart or reboot your android device.
Once this procedure is complete, your device is able to generate the HCI log file and saves it to /sdcard/btsnoop_hci.log.
When retrieving the HCI log from the android device you have two options.
a)You can connect your android device to a computer. The file will be located in one of the drives that are mountable. Copy this file from here to C:/Users/Public/Public Documents/Frontline Test Equipment/My Capture File/.
b)You also have another option of using the Android debugging bridge which can is found in the kit of the software developer.
The procedure for this option is: –
- Select USB or android debugging on the development screen.
- Connect your device to the computer using a USB cable.
- On your computer open a terminal and run ‘adb devices’ command.
- You should be able to see your android device on this list confirming that ADB works.
- In the terminal, copy ‘adb pull /sdcard/btsnoop_hci.log’ to the computer.