Grant CAPTURE_AUDIO_OUTPUT permission for trusted process
HotwordDetectionService is an isolated service which ordinarily
cannot hold permissions, so we dynamically override the permissions
check based on the currently bound HotwordDetectionService.
We have a similar change to grant RECORD_AUDIO and CAPTURE_AUDIO_HOTWORD
permissions to HotwordDetectionService before.
(ag/14427323 and ag/14883678)
Bug: 228328385
Test: atest CtsVoiceInteractionTestCases
Change-Id: I9156be8ff7812774145ab4806523fb503fc9491f
2 files changed