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

Commit 77a9a263 authored by Jordan Liu's avatar Jordan Liu
Browse files

Populate mcc and mnc from EuiccProfileInfo

Eventually we may also want to add fields for GID or other carrier
information.

Bug: 123942175
Test: manual
Change-Id: I46a0ea05d0f4ab3a0e6ffaa9a66eecaecf8a406f
parent f079b098
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -762,6 +762,12 @@ public class SubscriptionInfoUpdater extends Handler {
            if (cid != null) {
                values.put(SubscriptionManager.CARRIER_ID,
                        CarrierResolver.getCarrierIdFromIdentifier(mContext, cid));
                String mcc = cid.getMcc();
                String mnc = cid.getMnc();
                values.put(SubscriptionManager.MCC_STRING, mcc);
                values.put(SubscriptionManager.MCC, mcc);
                values.put(SubscriptionManager.MNC_STRING, mnc);
                values.put(SubscriptionManager.MNC, mnc);
            }
            hasChanges = true;
            contentResolver.update(SubscriptionManager.CONTENT_URI, values,