Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cce726be authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Set PendingIntent as FLAG_IMMUTABLE" into sc-dev

parents 5ce74963 5117aa28
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -385,10 +385,8 @@ public class PluginInstanceManager<T extends Plugin> {
                    }
                    Intent i = new Intent(PluginManagerImpl.DISABLE_PLUGIN).setData(
                            Uri.parse("package://" + component.flattenToString()));
                    // TODO(b/174161910) Please replace FLAG_MUTABLE_UNAUDITED below
                    // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
                    PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, i,
                            PendingIntent.FLAG_MUTABLE_UNAUDITED);
                            PendingIntent.FLAG_IMMUTABLE);
                    nb.addAction(new Action.Builder(null, "Disable plugin", pi).build());
                    mContext.getSystemService(NotificationManager.class)
                            .notify(SystemMessage.NOTE_PLUGIN, nb.build());