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

Commit 6f68acb0 authored by Nazanin Bakhshi's avatar Nazanin Bakhshi
Browse files

disallow changing from multi-sim to single-sim for carrier apps

Bug: 125122645
Test: build
Change-Id: Ie422577e1f710b033ed85caed9a3e864aadff061
Merged-In: Ie422577e1f710b033ed85caed9a3e864aadff061
(cherry picked from commit 36ede9a2)
parent 8bf13f06
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -10300,6 +10300,10 @@ public class TelephonyManager {
     * <p>Requires Permission:
     * {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE} or that the
     * calling app has carrier privileges (see {@link #hasCarrierPrivileges}).
     *
     * Note: with only carrier privileges, it is not allowed to switch from multi-sim
     * to single-sim
     *
     * @param numOfSims number of live SIMs we want to switch to
     * @throws android.os.RemoteException
     */