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
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user