signalapp / signalapp/Signal-Android

Voice messages don't use ear speaker when holding phone to ear

Open
#7,576 60 comments 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

acknowledged device-specific
Dominant language
Kotlin
Stars
29.4k
Forks
6.9k
PR merge metrics
No merged PRs in 30d

Description

I have:


Bug description

When playing an audio message and holding the phone to the ear only the volume changes but not the speaker used. Even if the media volume is set to zero, after triggering the proximity sensor the message can be heard.

Steps to reproduce
  • receive a voice message
  • push the play button
  • hold phone to ear

Actual result: Message changes in volume and plays through the media speaker
Expected result: Message is played through the earpiece speaker

Device info

Device: LGE Nexus 5X
Android version: 8.1.0
Signal version: 4.16.9

Link to debug log

https://hastebin.com/kopiyenini

Possibly relevant lines from the debug log:

03-28 17:00:54.619 11906 11906 W MediaPlayer: Use of stream types is deprecated for operations other than volume control
03-28 17:00:54.620 11906 11906 W MediaPlayer: See the documentation of setAudioStreamType() for what to use instead with android.media.AudioAttributes to qualify your playback use case

Similar issues:

  • #6673
  • #6455

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing voice-message playback on the reported Nexus 5X and review the linked debug log, focusing on playback and proximity-sensor behavior. Done means holding the phone to the ear routes the message through the earpiece rather than the media speaker, including when media volume is zero.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.