Last active
August 29, 2015 14:10
-
-
Save invisiblek/35f2c183b330f2ead53f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/java/com/android/internal/telephony/uicc/RuimRecords.java b/src/java/com/android/internal/telephony/uicc/RuimRecords.java | |
index 1556c32..7c5aa4a 100644 | |
--- a/src/java/com/android/internal/telephony/uicc/RuimRecords.java | |
+++ b/src/java/com/android/internal/telephony/uicc/RuimRecords.java | |
@@ -20,6 +20,7 @@ package com.android.internal.telephony.uicc; | |
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_ISO_COUNTRY; | |
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC; | |
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_APN_RUIM_OPERATOR_NUMERIC; | |
+import static com.android.internal.telephony.TelephonyProperties.PROPERTY_OPERATOR_NUMERIC; | |
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_ALPHA; | |
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_TEST_CSIM; | |
@@ -40,6 +41,7 @@ import android.text.TextUtils; | |
import com.android.internal.telephony.CommandsInterface; | |
import com.android.internal.telephony.GsmAlphabet; | |
import com.android.internal.telephony.MccTable; | |
+import com.android.internal.telephony.PhoneConstants; | |
import com.android.internal.telephony.cdma.sms.UserData; | |
import com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType; | |
@@ -258,6 +260,11 @@ public final class RuimRecords extends IccRecords { | |
return null; | |
} | |
+ if (TelephonyManager.getLteOnCdmaModeStatic() == | |
+ PhoneConstants.LTE_ON_CDMA_TRUE) { | |
+ return SystemProperties.get(PROPERTY_OPERATOR_NUMERIC); | |
+ } | |
+ | |
if (mMncLength != UNINITIALIZED && mMncLength != UNKNOWN) { | |
// Length = length of MCC + length of MNC | |
// length of mcc = 3 (3GPP2 C.S0005 - Section 2.3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment