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

Open
#532 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Kotlin
Stars
933
Forks
104
Avg merge
2d 10h
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FossifyOrg/Music-Player

All issues in FossifyOrg/Music-Player

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.