Android: voice drops from the Bluetooth headset to the earpiece and built-in mic exactly 2 minutes after joining a voice channel

(#4884) Bug Open: Needs triage mobile voice

Reproduction steps

  1. On a Samsung Galaxy S26 Ultra (Android 17), connect a Bluetooth headset (Anker Liberty 5 Pro Max).
  2. Join a voice channel.
  3. Confirm audio works through the headset.
  4. Wait. Exactly 2:00 after joining, audio leaves the headset.
Reproduced twice in one day, both drops exactly 2:00 after the join (13:01:06 to 13:03:06 and 17:27:38 to 17:29:39).

Expected behaviour

Voice stays on the Bluetooth headset (speaker and microphone) for the whole call.

Actual behaviour

Exactly 2:00 after joining, Fluxer keeps running on the phone's earpiece and built-in microphone while the headset stays connected over Bluetooth. Workaround: pick the headset again in the system output picker after the drop. Cause, from adb shell dumpsys telecom, dumpsys audio and dumpsys bluetooth_manager: On join, Fluxer registers a self-managed Telecom call through flutter_callkit_incoming (com.fluxer/com.hiennv.flutter_callkit_incoming.CallkitConnectionService). The Connection stays in DIALING and is never set active, so Telecom ends it after its 2-minute state timeout and stops Bluetooth SCO. Fluxer's WebRTC session stays in MODE_IN_COMMUNICATION, so audio falls back to the earpiece. telecom 17:29:39.459 STATE_TIMEOUT ([isCreateConnComplete=true, state=DIALING]) telecom 17:29:39.465 REQUEST_DISCONNECT (reason=State timeout) telecom 17:29:39.472 SET_DISCONNECTED (Code: ERROR, Reason: state_timeout) audio 17:29:39.491 stopBluetoothSco: setNewModeOwner audio 17:29:39.498 abandonAudioFocus() callingPack=com.android.server.telecom bluetooth 17:29:39.509 SCO Disconnected reason:HCI_ERR_CONN_CAUSE_LOCAL_HOST (phone-initiated) audio 17:29:40.211 onCommunicationDeviceChanged: earpiece The headset is not the cause. The phone closed the SCO link itself (LOCAL_HOST), signal was healthy (RSSI about -66 dBm), there was no HFP disconnect, and no other app changed the audio mode or audio focus in that window. Fluxer also calls setCommunicationDevice / clearCommunicationDevice itself while the Telecom call exists. That gives the audio route two owners: Telecom's route state machine sits on the earpiece from the moment the call is created. Suggested fix:
  • Mark the Connection active as soon as voice connects (Connection.setActive(), or setCallConnected in flutter_callkit_incoming), so Telecom does not time it out.
  • Let Telecom own routing while a Telecom call exists (requestCallEndpointChange / CallEndpoint) instead of also calling setCommunicationDevice. Or do not register a Telecom call for voice channels at all.

Build information

Version 2026.11.300, Beta 1, Channel Beta, Build 3040, Android 17 (arm64), Device samsung SM-S948B, Locale en-GB, Push fcm, Flutter 3.47.9, Dart 3.13.7

Platform

Android

Evidence

Full dumps are available on request.

Comments

Sign in with Fluxer to comment and vote.

No comments yet.