What permissions are needed to programmatically mute a phone call, from a background app?
I have an Android app that happens to be running in the background on the user's Android phone, while the user is speaking on a phone call that someone placed to the user. At a certain point, my app would like to silence the audio from the phone call and play its own audio. Moreover, I'd like to do this without disrupting the user's speech. What permission does my app need to have, to do this? Is there any permission that's available to third-party apps that is sufficient to let my app do this? It looks like AudioManager.setStreamMute(STREAM_VOICE_CALL, true) will mute the audio output from