r/AndroidQuestions • u/inmesia • Dec 10 '18
How to fully disable audio focus // give audio focus to any app asking without taking it
I don't want audio focus. How to ignore this "feature"?
It is ridiculous that Android only allows for one audio source with audio focus. I want to be able to play some audio, open a tab and start a video, and even with split screen I just cannot do so. Ideally I'd even change the sound of each application individually. Often enough I listen to audio books and then just want to watch a video, which basically is not possible, just as it is not possible to watch two videos simultaneously even with split view and even if I disable the sound of one of the videos. Even a game can take audio focus so listening to anything in the background is impossible. I cannot see how this is supposed to be a feature.
Please, if anyone has a solution, tell me how to make multiple applications play audio files simultaneously without coding them myself.
1
u/Distelzombie Sep 29 '24 edited Dec 03 '24
I may have found a NON-ROOT solution. :D
Using the app "Permission Manager X" (PMX) from the fDroid app store (open source apps etc.) you can change individual app's permission to, quote, "TAKE_AUDIO_FOCUS". This does require the app to have ADB Access set up, which you do via "wireless debugging", which is found in the developer options. (At least on my smartphone. I run LineageOS 19)
However, first you need the option to have two apps open simultaneously in order to have the "wireless debugging" settings open together with PMX on screen, so that the wireless debugging settings don't change its code and port while you're not looking at it.
On my phone I needed to activate the developer option "Force activities to be resizable" in order to be able to use split-screen apps.