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

Commit 93cb0d64 authored by Austen Dicken's avatar Austen Dicken Committed by Gerrit Code Review
Browse files

telephony: CdmaServiceStateTracker: get cdma subscription when ruim ready.

this code made the assumption that cdma subscription isnt needed when on cdma + lte.
qcom devices need to get both to provision properly 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: Ide5aed9c811890d422bd6be33170fc98116893ed
parent 11ff4b69
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -88,6 +88,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;
@@ -294,7 +297,7 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
                mNeedToRegForRuimLoaded = false;
            }

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