From 39d93256cc74019a4638e67cc1a9352f4482f9ee Mon Sep 17 00:00:00 2001 From: Kweku Adams Date: Wed, 11 Nov 2020 14:04:52 -0800 Subject: [PATCH] Add FLAG_IMMUTABLE to heap dump notification PendingIntent. Bug: 171987666 Test: Android builds Change-Id: I0be6f837e7948db8d7a50c5ef6497aeb1854acde --- packages/Shell/src/com/android/shell/HeapDumpReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Shell/src/com/android/shell/HeapDumpReceiver.java b/packages/Shell/src/com/android/shell/HeapDumpReceiver.java index 858c521eaed5e..7433c3ee37b68 100644 --- a/packages/Shell/src/com/android/shell/HeapDumpReceiver.java +++ b/packages/Shell/src/com/android/shell/HeapDumpReceiver.java @@ -180,7 +180,7 @@ public class HeapDumpReceiver extends BroadcastReceiver { .setContentText(context.getText( com.android.internal.R.string.dump_heap_notification_detail)) .setContentIntent(PendingIntent.getActivity(context, 2, shareIntent, - PendingIntent.FLAG_UPDATE_CURRENT)); + PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE)); Log.v(TAG, "Creating share heap dump notification"); NotificationManager.from(context).notify(NOTIFICATION_ID, builder.build());