Merge "Add a mutability flag to the PendingIntent in DynamicSystemInstallationService"

This commit is contained in:
Howard Chen
2020-10-29 06:05:57 +00:00
committed by Gerrit Code Review

View File

@@ -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) {