Make the pending intent immutable.

Bug: 173157883
Test: atest SystemActionPerformerTest
Change-Id: I291e1ad768e8a4fc873926a82f689c45cc51819e
This commit is contained in:
Hongming Jin
2021-01-25 14:54:50 -08:00
parent 4c3c2792fe
commit 290f1afee3

View File

@@ -400,10 +400,8 @@ public class SystemActions extends SystemUI {
case INTENT_ACTION_ACCESSIBILITY_SHORTCUT: {
Intent intent = new Intent(intentAction);
intent.setPackage(context.getPackageName());
// TODO(b/173157883) Please replace FLAG_MUTABLE_UNAUDITED below
// with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
return PendingIntent.getBroadcast(context, 0, intent,
PendingIntent.FLAG_MUTABLE_UNAUDITED);
PendingIntent.FLAG_IMMUTABLE);
}
default:
break;