When the user changes the OP_RECEIVE_SANDBOX_TRIGGER_AUDIO op mode to...
When the user changes the OP_RECEIVE_SANDBOX_TRIGGER_AUDIO op mode to MODE_ERRORED via UI toggle, the following actions will be taken to prevent the assistant app from being voice-activated: 1. No OP_RECEIVE_SANDBOX_TRIGGER_AUDIO will be noted and Voice activation is stopped and assistant app will not be triggered. 2. All initialized trusted AOHD/SoftwareHD, HotwordDetectionSession, and SoundTriggerSession (if DSP) needs to be confirmed to be destroyed. The assistant app is no longer able to be activated by voice. 3. If the user change the op mode back to MODE_ALLOWED or MODE_DEFAULT, the voice activation should be resumed immediately. This change only implement the task 1 and the thrown security exception destroyed the detection session etc. Task 2 & 3 is tracked by b/305099192. Bug: 305099192 Test: presubmit Change-Id: I4160bd3011c931fe44d3cbb9612be08560fdbabc
Loading
Please register or sign in to comment