UiModeManagerService: 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: I9055d30e64dad4df4f87c40edad7495e7efc5834
This commit is contained in:
@@ -1737,9 +1737,12 @@ final class UiModeManagerService extends SystemService {
|
||||
context.getString(R.string.car_mode_disable_notification_title))
|
||||
.setContentText(
|
||||
context.getString(R.string.car_mode_disable_notification_message))
|
||||
|
||||
.setContentIntent(
|
||||
// TODO(b/173744200) Please replace FLAG_MUTABLE_UNAUDITED below
|
||||
// with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
|
||||
PendingIntent.getActivityAsUser(context, 0,
|
||||
carModeOffIntent, 0,
|
||||
carModeOffIntent, PendingIntent.FLAG_MUTABLE_UNAUDITED,
|
||||
null, UserHandle.CURRENT));
|
||||
mNotificationManager.notifyAsUser(null,
|
||||
SystemMessage.NOTE_CAR_MODE_DISABLE, n.build(), UserHandle.ALL);
|
||||
|
||||
Reference in New Issue
Block a user