From 1809052d2a872da7660878d621746e645f8952c5 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Fri, 1 May 2020 13:20:26 -0400 Subject: Make ManagedServices intents immutable Test: make Fixes: 154917989 Change-Id: Ic0198a1e09408713f234cf8b901b1b117d734afb --- services/core/java/com/android/server/notification/ManagedServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/notification/ManagedServices.java b/services/core/java/com/android/server/notification/ManagedServices.java index fad0a7db6c4e..8bb7c0f530e4 100644 --- a/services/core/java/com/android/server/notification/ManagedServices.java +++ b/services/core/java/com/android/server/notification/ManagedServices.java @@ -1312,7 +1312,7 @@ abstract public class ManagedServices { intent.putExtra(Intent.EXTRA_CLIENT_LABEL, mConfig.clientLabel); final PendingIntent pendingIntent = PendingIntent.getActivity( - mContext, 0, new Intent(mConfig.settingsAction), 0); + mContext, 0, new Intent(mConfig.settingsAction), PendingIntent.FLAG_IMMUTABLE); intent.putExtra(Intent.EXTRA_CLIENT_INTENT, pendingIntent); ApplicationInfo appInfo = null; -- cgit v1.2.3-59-g8ed1b