Ambient Activation p2.2
This change enables the OP_RECEIVE_SANDBOX_TRIGGER_AUDIO turning on the Microphone privacy indicator.
Bug: 287264308
Test: atest com.android.systemui.appops.AppOpsControllerTest
Test: atest com.android.systemui.privacy.AppOpsPrivacyItemMonitorTest
Test-manual:
When voice activation op is not enabled (AppOpsPolicy.IS_VOICE_ACTIVATION_OP_ENABLED = false && AbstractDetector.IS_IDENTITY_WITH_ATTRIBUTION_TAG = false), no OP_RECEIVE_SANDBOX_TRIGGER_AUDIO is noted. https://paste.googleplex.com/5513928401485824
When voice activation op is enabled (AppOpsPolicy.IS_VOICE_ACTIVATION_OP_ENABLED = true && AbstractDetector.IS_IDENTITY_WITH_ATTRIBUTION_TAG = true), and test apk with attribution tag is installed: https://paste.googleplex.com/6105488876896256
when mic access is blocked by toggle in the tile, no privacy indicator is turned on, no voice activation and hence no OP_RECEIVE_SANDBOX_TRIGGER_AUDIO is noted.
Change-Id: I5ae494a8d319d7f8b81e8501abf9313aaae58fba
4 files changed