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

Commit 3ca581c7 authored by Shuo Qian's avatar Shuo Qian
Browse files

Use FLAG_IMMUTABLE for MultiSimSettingController

Require that the PendingIntent be immutable so that a malicious app is
 not able to hijack and mutate any of the details.

Test: Android builds
Bug: 155094269
Change-Id: Ic7ee67a393b72121071a39f80b02538c758792c6
parent 205b6dde
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -822,7 +822,8 @@ public class MultiSimSettingController extends Handler {
            EuiccManager euiccManager = (EuiccManager)
                    mContext.getSystemService(Context.EUICC_SERVICE);
            euiccManager.switchToSubscription(SubscriptionManager.INVALID_SUBSCRIPTION_ID,
                    PendingIntent.getService(mContext, 0, new Intent(), 0));
                    PendingIntent.getService(
                            mContext, 0, new Intent(), PendingIntent.FLAG_IMMUTABLE));
        }
    }