Add mutable flag to uninstaller pending intent

The package installer service needs to be able to send the result code
back to the package installer package.

Test: Compile, this change should be a no-op
Fixes: 170226088
Change-Id: I9c95566a8128817cd39d8ed31ed95c96981c56f8
This commit is contained in:
Evan Severson
2020-10-21 13:41:07 -07:00
parent f90a80dad6
commit 87d027d2c4

View File

@@ -339,8 +339,9 @@ public class UninstallerActivity extends Activity {
broadcastIntent.putExtra(UninstallFinish.EXTRA_APP_LABEL, label);
broadcastIntent.putExtra(UninstallFinish.EXTRA_UNINSTALL_ID, uninstallId);
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, uninstallId,
broadcastIntent, PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent pendingIntent =
PendingIntent.getBroadcast(this, uninstallId, broadcastIntent,
PendingIntent.FLAG_MUTABLE | PendingIntent.FLAG_UPDATE_CURRENT);
NotificationManager notificationManager = getSystemService(NotificationManager.class);
NotificationChannel uninstallingChannel = new NotificationChannel(UNINSTALLING_CHANNEL,