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

Commit d261ca77 authored by Shareef Ali's avatar Shareef Ali
Browse files

Telephony: Allow ruim to fetch in cdma lte mode,

don't do it for devices don't have lte in nv mode.
fixes cases where the iccid could be unknown on some cdma nv devices.

Change-Id: Ie8e676a59e20c6da70eded511a979022667aa6fa
parent 22ff84f9
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ import com.android.internal.telephony.TelephonyIntents;
import com.android.internal.telephony.IccCardConstants.State;
import com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.PhoneFactory;
import com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState;
import com.android.internal.telephony.uicc.IccCardApplicationStatus.PersoSubState;
import com.android.internal.telephony.uicc.IccCardStatus.CardState;
@@ -47,6 +48,7 @@ import com.android.internal.telephony.uicc.IccCardStatus.PinState;
import com.android.internal.telephony.uicc.UiccController;
import com.android.internal.telephony.uicc.RuimRecords;


import java.io.FileDescriptor;
import java.io.PrintWriter;

@@ -169,7 +171,11 @@ public class IccCardProxy extends Handler implements IccCard {

        if (mCurrentAppType == UiccController.APP_FAM_3GPP2) {
            int newSubscriptionSource = mCdmaSSM.getCdmaSubscriptionSource();
            if (newSubscriptionSource == CdmaSubscriptionSourceManager.SUBSCRIPTION_FROM_RUIM) {
            // allow ruim to fetch in cdma lte mode, don't do it for devices don't have lte
            // in nv mode. fixes cases where it iccid could be unknown on some cdma nv devices.
            if (newSubscriptionSource == CdmaSubscriptionSourceManager.SUBSCRIPTION_FROM_RUIM
                || PhoneFactory.getDefaultPhone().getLteOnCdmaMode()
                == PhoneConstants.LTE_ON_CDMA_TRUE) {
                // Set this as the Active record.
                log("Setting Ruim Record as active");
                mIccRecords.recordsRequired();