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

Commit 63bfa739 authored by Austen Dicken's avatar Austen Dicken Committed by xoomdev
Browse files

telephony: CdmaServiceStateTracker: Get cdma sub. when ruim ready.

This code made the assumption that cdma subscription isn't needed
when on cdma + lte. QCOM devices need to get both to provision
propertly because some SIM records are missing.

This patch adds a system property ro.cdma.subscribe_on_ruim_ready
to specify that CDMA subscription should be requested using NV
once the SIM records have been read.

Change-Id: I3e989e9f75c08412bb5f19155beea52e7d9f3c43
parent 04c728ab
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -95,6 +95,9 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
    private int mNitzUpdateDiff = SystemProperties.getInt("ro.nitz_update_diff",
            NITZ_UPDATE_DIFF_DEFAULT);

    private boolean mSubscribeOnRuimReady = SystemProperties.getBoolean(
            "ro.cdma.subscribe_on_ruim_ready", false);

    private boolean mCdmaRoaming = false;
    private int mRoamingIndicator;
    private boolean mIsInPrl;
@@ -286,7 +289,7 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
            // TODO: Consider calling setCurrentPreferredNetworkType as we do in GsmSST.
            // cm.setCurrentPreferredNetworkType();

            if (phone.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) {
            if (!mSubscribeOnRuimReady && phone.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) {
                // Subscription will be read from SIM I/O
                if (DBG) log("Receive EVENT_RUIM_READY");
                pollState();