Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created November 21, 2014 14:31
Show Gist options
  • Save invisiblek/c1d7e13ecc5e0f701ebf to your computer and use it in GitHub Desktop.
Save invisiblek/c1d7e13ecc5e0f701ebf to your computer and use it in GitHub Desktop.
diff --git a/src/java/com/android/internal/telephony/uicc/RuimRecords.java b/src/java/com/android/internal/telephony/uicc/RuimRecords.java
index 1556c32..03fc270 100644
--- a/src/java/com/android/internal/telephony/uicc/RuimRecords.java
+++ b/src/java/com/android/internal/telephony/uicc/RuimRecords.java
@@ -40,6 +40,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 +259,11 @@ public final class RuimRecords extends IccRecords {
return null;
}
+ if (TelephonyManager.getLteOnCdmaModeStatic() ==
+ PhoneConstants.LTE_ON_CDMA_TRUE) {
+ return SystemProperties.get("ro.cdma.home.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