Merge "audio service: add watchdog for audio mode"

This commit is contained in:
Eric Laurent
2020-08-26 15:09:15 +00:00
committed by Android (Google) Code Review

View File

@@ -6528,8 +6528,8 @@ public class AudioService extends IAudioService.Stub
CHECK_MODE_FOR_UID_PERIOD_MS);
break;
}
// For now just log the fact that an app is hogging the audio mode.
// TODO(b/160260850): remove abusive app from audio mode stack.
setModeInt(AudioSystem.MODE_NORMAL, h.getBinder(), h.getPid(), h.getUid(),
h.isPrivileged(), "MSG_CHECK_MODE_FOR_UID");
mModeLogger.log(new PhoneStateEvent(h.getPackage(), h.getPid()));
}
break;