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

Commit 978f948b authored by Ashwini Oruganti's avatar Ashwini Oruganti
Browse files

FaceAuthenticationClient: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED

These PIs need an explicit mutability flag. This temporay flag is being
used to mark these points in code and should be replaced ASAP.
See go/immutable-pendingintents for more context.

Bug: 160794467
Test: TH
Exempt-From-Owner-Approval: noop change
Change-Id: I10ba5b1643ba444accb5c3fb39ca381e3f083415
parent 24e5b93c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -198,9 +198,11 @@ class FaceAuthenticationClient extends AuthenticationClient<IBiometricsFace> {
            final Intent intent = new Intent("android.settings.FACE_SETTINGS");
            intent.setPackage("com.android.settings");

            // TODO(b/174187097) Please replace FLAG_MUTABLE_UNAUDITED below
            // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
            final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(getContext(),
                    0 /* requestCode */, intent, 0 /* flags */, null /* options */,
                    UserHandle.CURRENT);
                    0 /* requestCode */, intent, PendingIntent.FLAG_MUTABLE_UNAUDITED /* flags */,
                    null /* options */, UserHandle.CURRENT);

            final String channelName = "FaceEnrollNotificationChannel";