Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d2e9669d authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioService: add restriction on audio mode selection

Do not allow an app to change audio mode via AudioManager.setMode()
when the mode is already IN_CALL or IN_COMMUNICATION unless:
1) the app has MODIFY_PHONE_STATE permission
Or
2) the app is current audio mode owner.

Bug: 148368476
Test: manual cell and VoIP calls
Test: atest AudioManagerTest#testAccessMode
Change-Id: Ieaf3e4355380722529792d2b36413c6b3a16d327
parent 7bbfd92d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment