Android Bluetooth抓包

1. 前提

这里介绍一种在Android上捕获蓝牙数据包的方法html

首先你要有一部Android手机;而后你的Android系统版本要在4.4及以上android

我没有作过Android开发,不清楚开发者们是如何抓蓝牙包的,不过我知道可使用hcidump来抓取蓝牙数据包oop

2. 开启

在开发者选项中有一个功能
- [Enable Bluetooth HCI snoop log/启用蓝牙 HCI 信息收集日志]
开启它spa

3. 抓包

而后你能够进行各类蓝牙操做,结束后的抓包文件就在
/sdcard/btsnoop_hci.log.net

将它拷贝出来放在电脑上,就能够用Wireshark直接看了日志

可使用好比bthci_acl, btl2cap, bthfp等过滤器来过滤数据包查看你所关心的协议htm

 

参考:
<Mozilla B2G/Bluetooth>
<Wireshark Bluetooth Wiki>
<Android4.3 Bluetooth 抓取hci log>
<Wireshark Display Filter Reference>
<Bluetooth packet capture on Android 4.4>blog

相关文章
相关标签/搜索