Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf5f25a2 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

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
parent fb9b3698
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1782,6 +1782,12 @@ public class SIMRecords extends IccRecords {
                    setSystemProperty(PROPERTY_ICC_OPERATOR_ALPHA, getServiceProviderName());
                }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;