RESTRICT AUTOMERGE Disable the Trusted Hotword requirement
This is a manual cherry pick for the missing part in the change
c5e8f7f59d.
Change-Id: I70addcd47a45e61812def21035c2868c0b910d54
Fix: 234026976
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
Merged-In: I68f2f37b5ce835e7fd8649b382eaee9fc299ec79
This commit is contained in:
@@ -413,8 +413,8 @@ public class LegacyPermissionManagerService extends ILegacyPermissionManager.Stu
|
||||
return result;
|
||||
}
|
||||
mContext.getSystemService(AppOpsManager.class).noteOpNoThrow(
|
||||
AppOpsManager.OP_RECEIVE_AMBIENT_TRIGGER_AUDIO, uid, packageName,
|
||||
attributionTag, reason);
|
||||
AppOpsManager.OP_RECORD_AUDIO_HOTWORD, uid, packageName, attributionTag,
|
||||
reason);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user