Retrieving the HCI Log in Android

1 篇文章 0 订阅

http://www.fte.com/WebHelp/BPA600/Content/Documentation/WhitePapers/BPA600/Encryption/GettingAndroidLinkKey/RetrievingHCIlog.htm

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.

Android developer HCI snoop loggin

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....

Using the ComProbe Software to Get the Link Key

You will load the HCI Log file btsnoop_HCI.log into the ComProbe Protocol Analysis System on your computer as a capture file. Then you can use the Frame Display to locate the link key.

  1. Activate the ComProbe Protocol Analysis System. (Refer to the ComProbe BPA 600 User Manual on fte.com).
  2. From the Control window menu select FileOpen Capture File....
  3. When the Open window appears, set the file type to BTSnoop Files (*.log). If not already selected navigate to the My Capture Files directory and select btsnoop_hci.log.

Open file window

Select Capture File

  1. Open the Frame Display Frame Display button
  2. In the Frame Display protocol tabs select HCI. (See image below)
  3. Select Find Find icon , click on the Decode tab, and enter "link key" in the Search for String in Decode. Check the Ignore Case option. Click on Find Next until the Event column shows Link Key Notification.

    Find parameter dialog

    Find Dialog

    In the Frame Display Detail pane, expand HCI and HCI Event where the Link Key is shown. Copy and paste the Link Key into the appropriate BPA 600 datasource dialog. (See the example below)

btsnoop_hci.log Frame Display

Frame Display Showing Link Key Notification Event with the Link Key



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值