Is there a way to connect to a Bluetooth Low Energ

2020-05-28 10:44发布

Background: I use a BLE device (`peer') that communicates with my Android app without pairing -- the peer device advertises and android connects to it. During this connection, the Android device transmits its own Bluetooth address (this is part of each connection). Under Android 4.4 this used to be its public static (i.e. Bluetooth-MAC) address, under Android 5 (at least with my Nexus 9) this is a private random address.

The Problem: The peer device checks the supplied address of the Android device and allows only devices with known address to connect. When using a newly generated random address for each new connection, this does not work.

This post Android 5 static bluetooth MAC address for BLE advertising indicates, that at least for advertising it's not possible to disable this privacy feature. My question: Does anyone know, how to disable this privacy feature and let Android transmit its `true' public address on connection?

0条回答
登录 后发表回答