From 2a3aa2a32ea63b65805adb32dd5cadaa6c6d056a Mon Sep 17 00:00:00 2001 From: Wink Saville Date: Sat, 26 Mar 2011 09:13:20 -0700 Subject: [PATCH] Work around for operator not being correct. This is a STOPSHIP work-around until we figure out why getSIMOperatorNumeric is not returning valid values. It has returned NULL, "00000", "310004", "311480" and once a value "83????", I don't remember the exact value. Change-Id: I4f1d16c853047b72dd987572d3d67dcc2cd697a2 --- .../java/com/android/internal/telephony/gsm/SIMRecords.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java b/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java index 11ce83ec690cf..e69989a04dc5c 100755 --- a/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java +++ b/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java @@ -478,6 +478,11 @@ public final class SIMRecords extends IccRecords { // Length = length of MCC + length of MNC // length of mcc = 3 (TS 23.003 Section 2.2) + if (SystemProperties.getInt(com.android.internal.telephony.TelephonyProperties + .PROPERTY_NETWORK_LTE_ON_CDMA, 0) == 1) { + Log.e(LOG_TAG, "getSIMOperatorNumeric: STOPSHIP bad numeric operators in lte"); + return SystemProperties.get("ro.cdma.home.operator.numeric", "310004"); + } return imsi.substring(0, 3 + mncLength); }