Android Bluetooth LE MAC Address Randomization

≯℡__Kan透↙ 提交于 2019-12-21 17:53:04

问题


Bluetooth LE introduced the capability to randomize the Bluetooth device address of an advertising device. Playing around with the BluetoothLeAdvertiser class in Android API21, I am missing the method to enable this feature. The device address of my test device is always the same (no randomization whatsoever).

How is it possible to use Bluetooth LE device address randomization in Android?

Thanks, Martin


回答1:


The blog you mention also says:

In general, those random, private MAC addresses change according to a timer that the manufacturer implements in their product’s firmware. As such, they know exactly how often the MAC address will change.

So this seems to be a build-in feature and seems beyond control of the application programmer. Of course, this is meant to protect the privacy of the application user. I have noticed the randomization only after rebooting my smartphone, i quess it might vary from device to device.



来源:https://stackoverflow.com/questions/30975466/android-bluetooth-le-mac-address-randomization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!