From 63bfa73933bee6a759563f927c7d6e0e3dec27da Mon Sep 17 00:00:00 2001 From: Austen Dicken Date: Tue, 25 Dec 2012 00:07:44 -0600 Subject: 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 --- .../com/android/internal/telephony/cdma/CdmaServiceStateTracker.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/java/com') diff --git a/src/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java b/src/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java index 2554691..7d34325 100755 --- a/src/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java +++ b/src/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java @@ -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(); -- cgit v1.1