Replace unaudited PendingIntents with FLAG_IMMUTABLE
Bug: 181012686 Bug: 175194709 Test: atest ActivityTaskManagerServiceTests Change-Id: I96fe9207b7fb3968a36fe9f902a78ab28d65fc93
This commit is contained in:
@@ -4655,11 +4655,9 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
.setContentTitle(text)
|
||||
.setContentText(
|
||||
mContext.getText(R.string.heavy_weight_notification_detail))
|
||||
// TODO(b/175194709) Please replace FLAG_MUTABLE_UNAUDITED below
|
||||
// with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
|
||||
.setContentIntent(PendingIntent.getActivityAsUser(mContext, 0,
|
||||
intent, PendingIntent.FLAG_CANCEL_CURRENT
|
||||
| PendingIntent.FLAG_MUTABLE_UNAUDITED, null,
|
||||
| PendingIntent.FLAG_IMMUTABLE, null,
|
||||
new UserHandle(userId)))
|
||||
.build();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user