Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 194927bd authored by fayey's avatar fayey Committed by Faye Yan
Browse files

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
parent 2372b07d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment