summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/RemoteConnectionService.java
diff options
context:
space:
mode:
authorAhaan Ugale <augale@google.com>2021-08-17 20:40:36 -0700
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-08-30 02:11:04 +0000
commit22f37b8356ace4a2ba14509f0f67a8fc76c59575 (patch)
tree0c868ffa5fea350a1eb345efe776fbab4423888c /telecomm/java/android/telecom/RemoteConnectionService.java
parent115b8514743671277ff9ac6b3d21c8e220d34aa9 (diff)
RESTRICT AUTOMERGE Disable the Trusted Hotword requirement
The requirement to use a sandboxed HotwordDetectionService to avoid incurring the mic indicator will be added back in a future release. With this change, SoundTrigger events and hotword-source audio do not incur the mid indicator for any process. This change adds back the permissions logic from I3275647d0f9a6e3ce8b97a556f56723b49170c8e, adjusted to account for the changes from I4fc3b3e8defed59a900fd156273e9e695a322b0c (preflight permission checks were made to accept soft denials, so simply reusing enforcePermissionForPreflight does not work anymore - it would pop up a dialog if the mic sensor is muted). We preserve the behavior of showing the indicator when the detected event is delivered from the Trusted Hotword process (no false-positives here, so we can accurately show it). Fix: 197034852 Test: manual - dsp and non-dsp; true and false positives; mute mic sensor - events aren't delivered and no dialog is shown, hotword still works after unmuting; mute mic and restart, unmute after starting reco; Trusted and non-Trusted hotwording Test: atest CameraMicIndicatorsPermissionTest Test: atest HotwordDetectionServiceBasicTest Test: atest android.cts.statsdatom.appops.AppOpsTests#testAppOps Change-Id: I68f2f37b5ce835e7fd8649b382eaee9fc299ec79 (cherry picked from commit 0e7131f3090fc0b7b8c040d09de4d5d4d62c0d19)
Diffstat (limited to 'telecomm/java/android/telecom/RemoteConnectionService.java')
0 files changed, 0 insertions, 0 deletions