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

Commit b9adaa1c authored by Tom Taylor's avatar Tom Taylor
Browse files

PT:VZW:CV MMS not able to be sent with messenger app

Bug 17506557

I missed a spot where the mcc/mnc was getting set without updating the
siminfo record. This affected Sprint phones and perhaps others. As a result,
the mcc/mnc for the one and only subscription record had an mcc/mnc of zero
and the default mms_config for that mcc/mnc couldn't be loaded.

Change-Id: Iea0222a29a1f9426a4cdf4b9946620e2d02615e7
parent dc2b5d1c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.internal.telephony.uicc;
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_ALPHA;
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_ISO_COUNTRY;
import static com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC;

import android.content.Context;
import android.os.AsyncResult;
import android.os.Message;
@@ -32,6 +33,7 @@ import android.telephony.Rlog;
import com.android.internal.telephony.CommandsInterface;
import com.android.internal.telephony.MccTable;
import com.android.internal.telephony.SmsConstants;
import com.android.internal.telephony.SubscriptionController;
import com.android.internal.telephony.gsm.SimTlv;

import java.io.FileDescriptor;
@@ -1354,6 +1356,8 @@ public class SIMRecords extends IccRecords {
                    operator + "'");
            log("update icc_operator_numeric=" + operator);
            setSystemProperty(PROPERTY_ICC_OPERATOR_NUMERIC, operator);
            final SubscriptionController subController = SubscriptionController.getInstance();
            subController.setMccMnc(operator, subController.getDefaultSmsSubId());
        } else {
            log("onAllRecordsLoaded empty 'gsm.sim.operator.numeric' skipping");
        }