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

Commit fcc95e67 authored by Preeti Ahuja's avatar Preeti Ahuja
Browse files

Handle SIM Refresh for MSISDN, CFIS, CFF_CPHS

When we receive a Sim Refresh of type file update
add support for re-loading the following EFs:
MSISDN, CFIS, CFF_CPHS

Change-Id: Idd9e2f4dd40541c25de0c45408168381eb0fdb52
parent b66ae5f6
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -1270,6 +1270,24 @@ public class SIMRecords extends IccRecords {
                if (DBG) log("SIM Refresh called for EF_FDN");
                mParentApp.queryFdn();
                break;
            case EF_MSISDN:
                mRecordsToLoad++;
                log("SIM Refresh called for EF_MSISDN");
                new AdnRecordLoader(mFh).loadFromEF(EF_MSISDN, getExtFromEf(EF_MSISDN), 1,
                        obtainMessage(EVENT_GET_MSISDN_DONE));
                break;
            case EF_CFIS:
                mRecordsToLoad++;
                log("SIM Refresh called for EF_CFIS");
                mFh.loadEFLinearFixed(EF_CFIS,
                        1, obtainMessage(EVENT_GET_CFIS_DONE));
                break;
            case EF_CFF_CPHS:
                mRecordsToLoad++;
                log("SIM Refresh called for EF_CFF_CPHS");
                mFh.loadEFTransparent(EF_CFF_CPHS,
                        obtainMessage(EVENT_GET_CFF_DONE));
                break;
            default:
                // For now, fetch all records if this is not a
                // voicemail number.