No audio over Bluetooth (A2DP) on Samsung One UI 9 / Android 17 because the equalizer is always attached

Aperta
#532 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, kotlin

Direzione di ricerca

Read SimpleEqualizer.setupEqualizer() and trace how the equalizer is created, enabled, and released during playback. Add a user controlled switch that fully releases the effect when disabled, then verify Bluetooth audio works with the equalizer off and that equalizer controls still work when it is on.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug needs triage
Checklist
  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
Affected app version

1.8.5

Affected Android/Custom ROM version

Android 17, One UI 9.0 (build CP2A.260605.016)

Affected device model

Samsung Galaxy S23 (SM-S911B)

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug
  1. Connect a Bluetooth speaker or headphones (A2DP).
  2. Play any track in Fossify Music Player.
Expected behavior

Audio plays through the Bluetooth device.

Actual behavior

Playback runs normally (progress moves, the phone shows output on Bluetooth), but the Bluetooth device is silent. The phone speaker works, and other music players work over the same Bluetooth connection. The old Simple Music Player behaves the same.

Screenshots/Screen recordings

None. Not visible on screen.

Additional information

AI help (Claude Code) was used to create this bug report and to test the cause. It might be arguable whether it's a bug per se or rather a feature due to a Samsung bug, still the fix would help me and others. Thanks for the effort already!

Cause, verified on the device:

adb shell dumpsys media.audio_flinger shows the Fossify track active on the A2DP output thread at full volume: L/R Vol 1.0, PortMuted false, InternalMute false, 0 underruns, frames being consumed. Nothing in the framework mutes it.
The only app-specific element on that output is the effect chain on Fossify's session: name: Equalizer, implementor: NXP Software Ltd., enabled, running at 44.1 kHz.
Android 17 background-audio hardening is ruled out: dumpsys audio has no AudioHardening entries for the app.
A minimal test app (AudioTrack playing a tone, plus a switch that creates or releases Equalizer(0, audioSessionId) with enabled = true and flat bands) reproduces it. With the Equalizer attached the Bluetooth output is silent; without it the tone plays.

This is most likely a Samsung/Android 17 platform bug, and I've reported it to Samsung. Fossify triggers it because SimpleEqualizer.setupEqualizer() always creates and enables the Equalizer, even with a flat preset, and the app has no way to turn it off. So on affected devices Bluetooth playback can't be fixed by the user.

Suggested fix: an "Enable equalizer" switch that fully releases the effect when off. I have a small patch ready and can open a PR if this gets the help wanted label.

Lingua principale
Kotlin
Stelle
933
Fork
104
Merge medio
2g 10h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FossifyOrg/Music-Player

Tutte le issue di FossifyOrg/Music-Player

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.