Loading src/java/com/android/internal/telephony/RIL.java +1 −12 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(); Loading Loading @@ -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); }); } Loading src/java/com/android/internal/telephony/RadioResponse.java +1 −5 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
src/java/com/android/internal/telephony/RIL.java +1 −12 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(); Loading Loading @@ -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); }); } Loading
src/java/com/android/internal/telephony/RadioResponse.java +1 −5 Original line number Diff line number Diff line Loading @@ -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) { Loading