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

Skip to content
Commit 68390dc2 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioService: protect volume APIs for AAOS

Prevent calls to android.media.AudioManager
   .setStreamVolume
   .adjustVolume
   .adjustSuggestedStreamVolume
   .adjustStreamVolume
   .setRingerMode
for apps that don't have the permission
MODIFY_AUDIO_SETTINGS_PRIVILEGED.

Using flag com.android.media.audio.flags.auto_public_volume_api_hardening

Test: atest android.media.audio.cts.AudioManagerTest
Bug: 302751899
Change-Id: Ic1fc7d70d4a4e541765c1e21d4054c5ab8f07c0d
parent ab6b2d92
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