用于 BLE 广告的 Android 5 静态蓝牙 MAC 地址 [英] Android 5 static bluetooth MAC address for BLE advertising

查看:54
本文介绍了用于 BLE 广告的 Android 5 静态蓝牙 MAC 地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android 5 引入了 BLE MAC 地址轮换以增加隐私.每次调用 BluetoothLeAdvertiser.startAdvertising() 时,MAC 地址都会更改.

Android 5 introduces BLE MAC address rotating for increased privacy. Every time when calling BluetoothLeAdvertiser.startAdvertising(), the MAC-address is changed.

是否可以禁用地址轮换,并在 BluetoothLeAdvertiser 的整个生命周期内仅使用相同的 MAC 地址?

Is it possible to disable address rotating, and just use the same MAC address during the entire lifetime of BluetoothLeAdvertiser?

推荐答案

MAC 地址是物理地址,不会改变.在 BLE 术语中,它是公共设备地址或 BR/EDR 的 BD_ADDR.我没试过,但是用 readAddress() 读取它每次应该返回相同的值.

The MAC Address is a physical address and does not change. In BLE terminology, it is the Public Device Address or BD_ADDR for BR/EDR. I haven't tried it, but reading it with readAddress() should return the same value each time.

Android 的 BLE 框架在做广告时不使用该地址.而是通过使用私有可解析地址来实现隐私,这些地址可能每隔几分钟左右就会改变一次,但仍然允许绑定设备使用绑定时交换的 IRK 来识别它.

What the Android's BLE framework does is NOT use that address when advertising. It rather enables privacy by using Private Resolvable Addresses which may change every few minutes or so but still allow bonded devices to recognize it using the IRK exchanged at bonding.

出于明显的隐私原因,Android 的 BLE 框架不允许您设置 Controller 在广告时使用公共地址.所以你不能禁用地址轮换".

For obvious privacy reasons, Android's BLE framework does not allow you to set the Controller to use the public address when advertising. So you cannot disable the "address rotating".

这篇关于用于 BLE 广告的 Android 5 静态蓝牙 MAC 地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆