Skip to content

BluetoothHeadset name is the phone name instead of the Bluetooth device name #833

@Airsaid

Description

@Airsaid

Describe the bug
When using LiveKit's AudioSwitchHandler to retrieve available audio devices, the Bluetooth device name returned on certain devices is incorrect.
On Xiaomi MI 9 connected to QCY-T5 Bluetooth earbuds, the name reported by BluetoothHeadset (surfaced through room.audioSwitchHandler.availableAudioDevices) is the phone’s Bluetooth name "MI 9", not the actual Bluetooth device name "QCY-T5".

This causes incorrect identification of the connected Bluetooth audio route.


To Reproduce
Steps to reproduce the behavior:

  1. Use a Xiaomi MI 9 device running Android 11.
  2. Pair and connect QCY-T5 Bluetooth earbuds.
  3. Join a room and query audio devices via:
    room.audioSwitchHandler.availableAudioDevices
  4. Inspect the returned Bluetooth device name.
  5. The name appears as "MI 9" instead of "QCY-T5".

Example code:

room.audioSwitchHandler.availableAudioDevices.forEach { device ->
    Log.d("BT", "device.name = ${device.name}")
}

Observed output:

device.name = MI 9

Expected behavior
The SDK should return the actual connected Bluetooth device name, such as:

QCY-T5

instead of the phone's own name.


Screenshots
(Logs or screenshots can be provided if needed.)


Device Info:

  • Device: Xiaomi MI 9
  • OS: Android 11
  • Live: 2.23.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions