AudioManager.setMicrophoneMute(mute) can cause SecurityException

Open
#36 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin

Research direction

Start with AudioManager.setMicrophoneMute(mute) and reproduce the SecurityException on a device with multiple user profiles. Investigate how WebRTC currently releases the microphone and determine whether a safe, supported alternative exists; done means the exception is avoided or the limitation is clearly documented.

Written by the indexing model from the issue text.

Description

If there are other user profiles on the same device, AudioManager.setMicrophoneMute() method can throw SecurityException with message: requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS to access user 0.

I don't understand this very well but it seems to me that microphone can't be release in this way and WebRTC doesn't have a better way to free microphone resource. Some other video conferencing apps keep using microphone even when muted, like Google Meet.

Do you have any thoughts on this?

Dominant language
Kotlin
Stars
890
Forks
109
Avg merge
11m
Merged PRs (30d)
2

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from GetStream/webrtc-android

All issues in GetStream/webrtc-android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.