Add TODO to SoundTriggerMiddlewarePermission hack

Test: build
Bug: 186164881
Change-Id: Ibdd411cf545b501151b658e653f10cdb71eb7900
This commit is contained in:
Nate Myren
2021-04-30 12:06:06 -07:00
parent 7cf0ac5025
commit c71f94421e

View File

@@ -133,6 +133,7 @@ public class SoundTriggerMiddlewarePermission implements ISoundTriggerMiddleware
* Throws a {@link SecurityException} iff the originator has permission to receive data.
*/
void enforcePermissionsForDataDelivery(@NonNull Identity identity, @NonNull String reason) {
// TODO(b/186164881): remove
// START TEMP HACK
enforcePermissionForPreflight(mContext, identity, RECORD_AUDIO);
int hotwordOp = AppOpsManager.strOpToOp(AppOpsManager.OPSTR_RECORD_AUDIO_HOTWORD);