Merge "SyncManager: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED"

This commit is contained in:
Ashwini Oruganti
2020-12-07 19:41:50 +00:00
committed by Android (Google) Code Review

View File

@@ -3838,9 +3838,12 @@ public class SyncManager {
}
UserHandle user = new UserHandle(userId);
// TODO(b/174186839) Please replace FLAG_MUTABLE_UNAUDITED below
// with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
final PendingIntent pendingIntent = PendingIntent
.getActivityAsUser(mContext, 0, clickIntent,
PendingIntent.FLAG_CANCEL_CURRENT, null, user);
PendingIntent.FLAG_CANCEL_CURRENT
| PendingIntent.FLAG_MUTABLE_UNAUDITED, null, user);
CharSequence tooManyDeletesDescFormat = mContext.getResources().getText(
R.string.contentServiceTooManyDeletesNotificationDesc);