Merge "AudioService: setMasterMute protected by MODIFY_AUDIO_ROUTING" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a2bfc8ce91
@@ -908,6 +908,7 @@ public class AudioManager {
|
||||
|
||||
/** @hide */
|
||||
@UnsupportedAppUsage
|
||||
@RequiresPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING)
|
||||
public void setMasterMute(boolean mute, int flags) {
|
||||
final IAudioService service = getService();
|
||||
try {
|
||||
|
||||
@@ -2790,6 +2790,7 @@ public class AudioService extends IAudioService.Stub
|
||||
}
|
||||
|
||||
public void setMasterMute(boolean mute, int flags, String callingPackage, int userId) {
|
||||
enforceModifyAudioRoutingPermission();
|
||||
setMasterMuteInternal(mute, flags, callingPackage, Binder.getCallingUid(),
|
||||
userId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user