From 39d93256cc74019a4638e67cc1a9352f4482f9ee Mon Sep 17 00:00:00 2001 From: Kweku Adams Date: Wed, 11 Nov 2020 14:04:52 -0800 Subject: 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(-) (limited to 'packages/Shell/src') diff --git a/packages/Shell/src/com/android/shell/HeapDumpReceiver.java b/packages/Shell/src/com/android/shell/HeapDumpReceiver.java index 858c521eaed5..7433c3ee37b6 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()); -- cgit v1.2.3-59-g8ed1b