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

Commit a8320e43 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioPolicy: setVolumeIndexForAttributes tightening

Make AudioSystem method setVolumeIndexForAttributes only work
from system components.

Bug: 171965882
Test: see poc
Change-Id: I5c893365e2cdaed20434b11d5f9ded3a42afba63
parent d5aa6164
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1614,6 +1614,7 @@ status_t BnAudioPolicyService::onTransact(
//      case SET_FORCE_USE:
        case INIT_STREAM_VOLUME:
        case SET_STREAM_VOLUME:
        case SET_VOLUME_ATTRIBUTES:
        case REGISTER_POLICY_MIXES:
        case SET_MASTER_MONO:
        case GET_SURROUND_FORMATS: