bluetoothandroid-bluetoothheadsetandroid-8.1-oreo

How does Android 8.1 retrieve the battery level of a headset?


Android 8.1 can show the battery level of a connected headset in the status bar. How does Android actually do this?

Does it use the AT+IPHONEACCEV command over HFP? Or does it use BLE's battery service if available?

Thank you.


Solution

  • Android listens to the vendor specific command

    "AT+IPHONEACCEV=1, ...."

    .