Closed ilker-aktuna closed 1 year ago
Unfortunately, this is not possible with this or any library. Android Bluetooth APIs do not support configuring these flags.
thank you for the quick answer. Would it be possible, writing a custom library in C++ ?
You would need to modify the Android Bluetooth stack to expose a configuration mechanism and flash a custom ROM on a rooted Android device. His might be possible for your own phone or for phones you distribute, but it won’t work for an app to distribute to others to run on their own phones.
thank you. So we'll expect Android/Google to add these flags and make their stack more flexible. Which is not possible in near future...
This is not actually an issue, but just a question. I am trying to set some flags on an Advertisement data for my app. For example , LE limited Discoverable mode as seen here:
default Android BLE library does not allow that. Can I use this library to set these flags ? if possible, how ? if not, could it be possible by wrapping the Advertiser part of the Android BLE library ?