使用 Wireshark 进行 Android 蓝牙侦听:androiddump 中缺少蓝牙接口

问题描述

我正在尝试实时捕获从我的三星 A51 在 Android 10 上发送的蓝牙流量:

  1. 手机上启用了蓝牙 HCI 监听日志,启用后我切换了蓝牙。我可以通过
  2. 从手机下载错误报告,其中包括 btsnoop_hci 文件
    >adb bugreport
  1. adb 已连接:
    >adb devices
    List of devices attached
    R58N427J7TD     device
  1. androiddump 工作正常,但只显示 Logcat 接口。我缺少蓝牙接口:
    >androiddump --extcap-interfaces
    extcap {version=1.1.0}{help=file:///C:/Program%20Files/Wireshark/extcap/androiddump.html}
    interface {value=android-logcat-text-main-R58N427J7TD}{display=Android Logcat Main SM_A515F R58N427J7TD}
    interface {value=android-logcat-text-system-R58N427J7TD}{display=Android Logcat System SM_A515F R58N427J7TD}
    interface {value=android-logcat-text-radio-R58N427J7TD}{display=Android Logcat Radio SM_A515F R58N427J7TD}
    interface {value=android-logcat-text-events-R58N427J7TD}{display=Android Logcat Events SM_A515F R58N427J7TD}
    interface {value=android-logcat-text-crash-R58N427J7TD}{display=Android Logcat Crash SM_A515F R58N427J7TD}

https://www.wireshark.org/docs/man-pages/androiddump.html 上的官方文档没有帮助,但它们确实让我怀疑是否需要配置蓝牙服务器端口?

为什么没有蓝牙界面显示的任何其他想法?同样在 Wireshark App UI 中,我只能找到上面列出的界面。

解决方法

您必须先enable Bluetooth HCI snoop log

  1. 设置
  2. 开发者选项
  3. 启用蓝牙 HCI 监听日志
  4. 重启蓝牙。如果它不起作用,请尝试重新启动。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...