Merge "Restore permission check for mic muting" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
859f4f7272
@@ -1564,6 +1564,9 @@ public class AudioService extends IAudioService.Stub {
|
||||
callingPackage) != AppOpsManager.MODE_ALLOWED) {
|
||||
return;
|
||||
}
|
||||
if (!checkAudioSettingsPermission("setMicrophoneMute()")) {
|
||||
return;
|
||||
}
|
||||
|
||||
AudioSystem.muteMicrophone(on);
|
||||
// Post a persist microphone msg.
|
||||
|
||||
Reference in New Issue
Block a user