Martin
Martin

Reputation: 51

Android Bluetooth LE MAC Address Randomization

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

Upvotes: 5

Views: 4943

Answers (1)

JPS
JPS

Reputation: 624

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.

Upvotes: 1

Related Questions