diff options
author | Howard Chen <howardsoc@google.com> | 2020-10-29 10:43:57 +0800 |
---|---|---|
committer | Howard Chen <howardsoc@google.com> | 2020-10-29 11:06:26 +0800 |
commit | 54653ba1162ed724e301af17077d73314fb6108b (patch) | |
tree | ebc3f3548038d492cc4fbfa84538fa92f8110c06 /packages/DynamicSystemInstallationService/src | |
parent | e7d24dad514b7b555fcae6d79dfd00bd885afdf0 (diff) |
Add a mutability flag to the PendingIntent in DynamicSystemInstallationService
Bug: 171718124
Test: DSU installation
Change-Id: Id352e37238aad6499841dc379b006f2e0150181d
Diffstat (limited to 'packages/DynamicSystemInstallationService/src')
-rw-r--r-- | packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java index f7f3cbb7d332..12505bc55b15 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) { |