summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Ivan Chiang <chiangi@google.com> 2022-07-18 15:28:46 +0800
committer Ivan Chiang <chiangi@google.com> 2022-08-12 14:35:33 +0800
commit525690ce16c1c7a48b7880897a4349e2dda0ca09 (patch)
tree090b4314c4f6d7b35a540e95c384269c8510576c /libs/androidfw/Util.cpp
parentea3ccf17fe6f68601f17d5e8ce05b081063f71c7 (diff)
[RESTRICT AUTOMERGE] Check permission for VoiceInteraction
The service must have the CAPTURE_AUDIO_HOTWORD permission to access AlwaysOnHotwordDetector. If it doesn't have the permission, return STATE_HARDWARE_UNAVAILABLE state. If it is not granted the RECORD_AUDIO permisison, it also can't start to recognize the audio. Test: manual Test: atest CtsVoiceInteractionTestCases Test: atest CtsAssistTestCases Bug: 229793943 Change-Id: I7d0f8d2f6af4bc4210060f0a44469db2afc7a1bb
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions