Remote Bluetooth request for Android Bluetooth

I have an Android user device, this sends me a TAG as part of an extended request for request.

When I browse devices in my application, I need to read the TAG and specify only my user device, currently I list all detected devices.

I know that Android does NOT support api for EIR (Extended Request Response) or is this true? Assuming it will not support when I track the source, I was able to determine that it writes the EIR to a file in the phone’s internal memory along this path "/ data / misc / bluetoothd /" DeviceAddress "/ eir

Requests: 1. Reading an eir file, is this the only way to get an EIR TAG on an Android device?

  • Is it safe to read this file?

  • Do all Android devices with Bluetooth 2.1 api support this file? that is, if I write a code, it will work on all Android devices?

I look forward to hearing ...

+6
source share
1 answer

From the very beginning I will tell you that EIR has only 2.1 Bluetooth or higher, so right there you deleted about 15% of the phones that are still compatible there. As for the full Bluetooth 2.1 API, which depends on the phone manufacturer and the type of chip used. I came across the same issue as Bluetooth, and SPP, and every chip and Bluetooth Api implementation from the phone manufacturer makes it crap if it works on its phones or not. Therefore, my suggestion is to check every phone that you want it to work too, but you will find that some of them will not work at all. Or simply do not use EIR and do not use a different approach.

0
source

Source: https://habr.com/ru/post/891334/


All Articles