[Android] Incoming voice audio is silent for 1+ minute after joining, then starts on its own

(#4515) Bug Open: Needs triage mobile voice

Reproduction steps

  1. On the desktop app, join a community voice channel and keep talking.
  2. On Android, open the Fluxer app and join the same voice channel.
  3. Listen on the phone. Try switching speaker/earpiece in the call view.
  4. Keep listening until the desktop audio starts.

Expected behaviour

The desktop participant's audio plays on the phone within a second or two of joining, as it does in Chrome on the same phone.

Actual behaviour

No incoming audio on the phone for a minute or more after joining. Then the desktop audio starts playing on its own. Switching speaker/earpiece in the call view or in Settings > Audio & video makes no difference. The phone's own mic reaches the desktop fine as soon as I unmute.

Build information

v2026.10.100 (2866) • beta 15 • fcm — Pixel 6 Pro, Android 17

Platform

Linux, Android, Self-hosting

Evidence

App log (CDT), second join:
2:22:31.441 [Voice] Join requested ... forceJoin=true
2:22:31.574 [Voice] VOICE_SERVER_UPDATE accepted; starting LiveKit
2:22:33.236 [Voice] join room.connect +1791ms
2:22:33.238 [Voice][lifecycle] livekit_room_connected ... connectionState=connected
First join: room.connect +2175ms. No errors, and no remote-audio events, during the silent period. Server (self-hosted, LiveKit v1.12.0): the phone's publisher and subscriber transports were both connected over UDP ~1 s after joining (participant init AutoSubscribe: false). The desktop's mic track was already published. Network: T-Mobile LTE (also seen on Wi-Fi). Desktop app (Electron, LiveKit JS 2.22.3) ↔ Chrome on Android works instantly. Possibly related: #4287 / #2111 (speaker routing), #4448 (background mic).

4 comments

Sign in with Fluxer to comment and vote.
Comment by Fullest
FullestReviewer 1 vote
Unable to reproduce on the main fluxer.app instance. Seems likely something self-hosting related. Tested on: Version 2026.10.100, Beta 16, Channel Beta, Build 2875, Android 16 (arm64), Device Google Pixel 9a, Locale en-US, Push fcm, Flutter 3.47.9, Dart 3.13.7 Canary Desktop 2026.1101.10907, Web 2026.1101.35229, Linux 7.2.11-200.fc44.x86_64 (x64), Electron 44.10.0, Chrome 152.0.7977.169, Node 24.22.1, Locale en-GB
Comment by Charles W (K5CDW)
Found the root cause with adb. It's client-side, a race in flutter_callkit_incoming's self-managed Telecom call, not self-hosting. The audio was never silent: it was going to the EARPIECE, which sounds like a near-silent speaker from arm's length. Pixel 6 Pro, Android 17, Fluxer Beta (dumpsys telecom / dumpsys audio / logcat): On voice join, the app starts a SELF-MANAGED outgoing call through CallkitConnectionService. Telecom routes to TYPE_EARPIECE and holds a privileged communication-route client for it. The app's setSpeakerphoneOn(true) calls (20+) all lose to it, so the speaker toggle and volume keys do nothing. Fluxer sends ACTION_CALL_CONNECTED about 200 ms after ACTION_CALL_START. Telecom only created the Connection about 360 ms after CREATED (SET_DIALING at +0.36 s). CallkitIncomingBroadcastReceiver.driveTelecomConnection() does CallkitConnection.find(id) ?: return, so the early CONNECTED is silently dropped and the call stays DIALING. Exactly 120 s later, Telecom fires STATE_TIMEOUT [state=DIALING] (logged in mCallAnomalyWatchdog), disconnects the call and clears its earpiece route. Only then does the speaker work. That's the "1+ minute" delay. Confirmed: after adb shell telecom unregister-phone-account com.fluxer/com.hiennv.flutter_callkit_incoming.CallkitConnectionService flutter_callkit_incoming_in_app_call_account 0, placeCall is rejected (the plugin handles it gracefully), and on the next join the speaker is loud immediately (active communication device = speaker). Suggested fix: have the plugin remember a pending CONNECTED and apply setActive() in onCreateOutgoingConnection, or have Fluxer call setCallConnected only after the Connection exists. Faster devices probably win the race, which may be why your Pixel 9a didn't reproduce it. fluxer_4515-adb-evidence.txt
Comment by Charles W (K5CDW)
Follow-up: I filed the root cause upstream with the calling plugin Fluxer uses: hiennguyen92/flutter_callkit_incoming#893 Short version: Fluxer calls setCallConnected() about 200 ms after startCall(), before Android Telecom has created the outgoing Connection (about 360 ms on my Pixel 6 Pro). The plugin drops the early “connected” (CallkitConnection.find(id) ?: return), so the call stays DIALING. Telecom holds audio on the earpiece and overrides the app’s speakerphone requests. After 120 s Telecom times the call out (STATE_TIMEOUT), and only then does the speaker work. Until the plugin is fixed, Fluxer could work around it on its side: call setCallConnected() only after the Connection exists (for example, retry or delay it until Telecom reports the call), or route speaker/earpiece through Telecom while the self-managed call is active. Workaround confirmed on my phone: unregistering Fluxer’s Telecom phone account with adb makes the speaker loud right away. It only lasts until the app restarts.
Comment by Charles W (K5CDW)
Update with the complete root cause, a fix, and test results. The plugin race (flutter_callkit_incoming#893) was only half of it. Fixing just that on my Pixel 6 Pro did not fix the speaker. The other half is in Fluxer: while the self-managed Telecom call exists, Telecom owns the audio route and ignores the app's AudioManager calls. VoiceSpeakerRoute.kt already routes through the call's Telecom Connection, but only when routesSpeakerWithCommunicationDevice is true (Samsung). That is likely why it doesn't reproduce everywhere. Two more Android issues show up in the same area:
  • Bluetooth earbuds connected mid-call never appear in the output picker: in Telecom mode flutter_webrtc's AudioSwitch isn't running, so onDeviceChange never fires.
  • Earbuds disconnected mid-call: Telecom falls back to the earpiece, not the speaker.
Fix, tested on Pixel 6 Pro / Android 17 in a custom build on canary (022f1249): speaker loud right after joining; earbuds on/off mid-call, audio and picker follow; manual speaker/earpiece switching; leave from the notification; swipe-away; mute; chat.