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

Commit 43e663a3 authored by Ashwini Oruganti's avatar Ashwini Oruganti
Browse files

SystemActions: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED

These PIs need an explicit mutability flag. This temporay flag is being
used to mark these points in code and should be replaced ASAP.
See go/immutable-pendingintents for more context.

Bug: 160794467
Test: TH
Exempt-From-Owner-Approval: noop change
Change-Id: I519be443737d57d30177a8c674db1b9cdbac2e2c
parent 87307d7a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -400,7 +400,10 @@ public class SystemActions extends SystemUI {
                case INTENT_ACTION_ACCESSIBILITY_SHORTCUT: {
                    Intent intent = new Intent(intentAction);
                    intent.setPackage(context.getPackageName());
                    return PendingIntent.getBroadcast(context, 0, intent, 0);
                    // TODO(b/173157883) Please replace FLAG_MUTABLE_UNAUDITED below
                    // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
                    return PendingIntent.getBroadcast(context, 0, intent,
                            PendingIntent.FLAG_MUTABLE_UNAUDITED);
                }
                default:
                    break;