From 54653ba1162ed724e301af17077d73314fb6108b Mon Sep 17 00:00:00 2001 From: Howard Chen Date: Thu, 29 Oct 2020 10:43:57 +0800 Subject: [PATCH] Add a mutability flag to the PendingIntent in DynamicSystemInstallationService Bug: 171718124 Test: DSU installation Change-Id: Id352e37238aad6499841dc379b006f2e0150181d --- .../com/android/dynsystem/DynamicSystemInstallationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java index f7f3cbb7d332e..12505bc55b15f 100644 --- a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java +++ b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java @@ -422,7 +422,7 @@ public class DynamicSystemInstallationService extends Service private PendingIntent createPendingIntent(String action) { Intent intent = new Intent(this, DynamicSystemInstallationService.class); intent.setAction(action); - return PendingIntent.getService(this, 0, intent, 0); + return PendingIntent.getService(this, 0, intent, PendingIntent.FLAG_IMMUTABLE); } private Notification buildNotification(int status, int cause) {