How can I prevent an app from interrupting audio playback of some other app?



  • I am using https://en.wikipedia.org/wiki/Duolingo to practice Japanese, and I'd be able to practice a lot more if I could actually do this while listening to music. Right now, when you get to the next question, it turns down the volume for all other apps, reads the question, and restores the volume again. This is annoying enough that it makes listening to music while practicing practically impossible for me.

    Preferably I'd like to mute Duolingo altogether, but I'd settle for it not lowering the volume for other apps (NewPipe is what I usually use to listen to music, and which I want to keep playing at the same volume).

    I saw this other question: https://android.stackexchange.com/questions/125250/how-to-have-two-applications-play-sound-simultaneously/125311#125311 , from six years ago, which seems somewhat related, but which doesn't apply to NewPipe, and probably wouldn't apply anymore anyways, given the age of the question.

    How can I achieve this? (I have a rooted phone, which might help, IDK).



  • You can set TAKE_AUDIO_FOCUS permission of that app to ignore:

    appops set  TAKE_AUDIO_FOCUS ignore
    

    Using https://github.com/mirfatif/PermissionManagerX this can be done conveniently for any app:

    Disclosure: I'm the author of PMX.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2