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

Commit 835bf10d authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Automerger Merge Worker
Browse files

Merge "Add a @hide API to indicate 5G and DSDS conflict." am: 88fed59c

Change-Id: Ib4424d99e0447ab47133ce6f8f2da845d2dca1d8
parents d4e270a8 88fed59c
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -12977,4 +12977,21 @@ public class TelephonyManager {
        }
        return 0;
    }

    /**
     * Whether device can connect to 5G network when two SIMs are active.
     * @hide
     * TODO b/153669716: remove or make system API.
     */
    public boolean canConnectTo5GInDsdsMode() {
        ITelephony telephony = getITelephony();
        if (telephony == null) return true;
        try {
            return telephony.canConnectTo5GInDsdsMode();
        } catch (RemoteException ex) {
            return true;
        } catch (NullPointerException ex) {
            return true;
        }
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -2248,4 +2248,9 @@ interface ITelephony {
    int setIccLockEnabled(int subId, boolean enabled, String password);

    int changeIccLockPassword(int subId, String oldPassword, String newPassword);

    /**
     * Whether device can connect to 5G network when two SIMs are active.
     */
    boolean canConnectTo5GInDsdsMode();
}