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

Commit e7ba21e2 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Merge remote-tracking branch 'origin/lineage-22.2' into a15

parents 1797f19f 44c4732a
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -222,8 +222,6 @@ public class RIL extends BaseCommands implements CommandsInterface {

    final Integer mPhoneId;

    private boolean mUseOldMncMccFormat;

    private static final String PROPERTY_IS_VONR_ENABLED = "persist.radio.is_vonr_enabled_";

    public static final int MIN_SERVICE_IDX = HAL_SERVICE_RADIO;
@@ -1156,9 +1154,6 @@ public class RIL extends BaseCommands implements CommandsInterface {
            if (proxies == null) throw ex;
        }

        mUseOldMncMccFormat = SystemProperties.getBoolean(
                "ro.telephony.use_old_mnc_mcc_format", false);

        TelephonyManager tm = (TelephonyManager) context.getSystemService(
                Context.TELEPHONY_SERVICE);
        mIsCellularSupported = tm.isVoiceCapable() || tm.isSmsCapable() || tm.isDataCapable();
@@ -2577,20 +2572,14 @@ public class RIL extends BaseCommands implements CommandsInterface {
        RILRequest rr = obtainRequest(RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL, result,
                mRILDefaultWorkSource);

        if (mUseOldMncMccFormat && !TextUtils.isEmpty(operatorNumeric)) {
            operatorNumeric += "+";
        }

        if (RILJ_LOGD) {
            riljLog(rr.serialString() + "> " + RILUtils.requestToString(rr.mRequest)
                    + " operatorNumeric = " + operatorNumeric + ", ran = " + ran);
        }

        final String operatorNumericCopy = operatorNumeric;

        radioServiceInvokeHelper(HAL_SERVICE_NETWORK, rr, "setNetworkSelectionModeManual", () -> {
            networkProxy.setNetworkSelectionModeManual(rr.mSerial,
                    RILUtils.convertNullToEmptyString(operatorNumericCopy), ran);
                    RILUtils.convertNullToEmptyString(operatorNumeric), ran);
        });
    }

+1 −5
Original line number Diff line number Diff line
@@ -2330,12 +2330,8 @@ public class RadioResponse extends IRadioResponse.Stub {
        if (rr != null) {
            ArrayList<OperatorInfo> ret = new ArrayList<OperatorInfo>();
            for (int i = 0; i < networkInfos.size(); i++) {
                String operatorNumeric = networkInfos.get(i).operatorNumeric;
                if (operatorNumeric != null) {
                    operatorNumeric = operatorNumeric.split("\\+")[0];
                }
                ret.add(new OperatorInfo(networkInfos.get(i).alphaLong,
                        networkInfos.get(i).alphaShort, operatorNumeric,
                        networkInfos.get(i).alphaShort, networkInfos.get(i).operatorNumeric,
                        RILUtils.convertHalOperatorStatus(networkInfos.get(i).status)));
            }
            if (responseInfo.error == RadioError.NONE) {