diff options
author | Ricardo Cerqueira <ricardo@cyngn.com> | 2014-10-01 22:52:53 +0100 |
---|---|---|
committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2014-10-01 23:01:28 +0100 |
commit | 8a1aad95476c157641526d627f3b4a9356273fe5 (patch) | |
tree | b4c04e72f09b114461321ea8c2887a54cc08d23e | |
parent | a3a755f860b9cf059765e02ef70f68dbdc9eab61 (diff) | |
download | android_frameworks_opt_telephony-8a1aad95476c157641526d627f3b4a9356273fe5.tar.gz android_frameworks_opt_telephony-8a1aad95476c157641526d627f3b4a9356273fe5.tar.bz2 android_frameworks_opt_telephony-8a1aad95476c157641526d627f3b4a9356273fe5.zip |
SIMRecords: If there's no EF_SPN record, fallback to EF_PNN
Turns out some SIM (TMobile US, at least) don't fill in the SPN, but
do insert a PNN record for home network (which in the case of a non-MVNO
are the same. a MVNO should always have the SPN filled anyway).
Change-Id: I18388bb071a49698015c76abefb58798f800946c
-rw-r--r-- | src/java/com/android/internal/telephony/uicc/SIMRecords.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/com/android/internal/telephony/uicc/SIMRecords.java b/src/java/com/android/internal/telephony/uicc/SIMRecords.java index 58c6ff193..88181ba27 100644 --- a/src/java/com/android/internal/telephony/uicc/SIMRecords.java +++ b/src/java/com/android/internal/telephony/uicc/SIMRecords.java @@ -1643,6 +1643,12 @@ public class SIMRecords extends IccRecords { mRecordsEventsRegistrants.notifyResult(EVENT_SPN); }else { if (DBG) log("No SPN loaded in either CHPS or 3GPP"); + if (mPnnHomeName != null && mSpn == null) { + if (DBG) log("Falling back to home network name for SPN"); + mSpn = mPnnHomeName; + setSystemProperty(PROPERTY_ICC_OPERATOR_ALPHA, mSpn); + mRecordsEventsRegistrants.notifyResult(EVENT_SPN); + } } mSpnState = GetSpnFsmState.IDLE; |