Is there a way to connect to a Bluetooth Low Energy device under Android 5 exposing the public static address?

感情迁移 提交于 2019-12-09 04:46:45

问题


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?

来源:https://stackoverflow.com/questions/29171193/is-there-a-way-to-connect-to-a-bluetooth-low-energy-device-under-android-5-expos

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