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

Commit c5c3d155 authored by arunvoddu's avatar arunvoddu
Browse files

Updated the CarrierRestrictionRules#isAllCarriersAllowed() to support the new carrier lock changes

Bug: 321164786
Test: atest tests/telephonytests/src/com/android/internal/telephony/CarrierKeyDownloadMgrTest.java
Change-Id: Ief90e4d77ac103d7328c45d54ea44a464a85e650
parent 3921877a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -112,6 +112,8 @@ public class SimResponse extends IRadioSimResponse.Stub {
            android.hardware.radio.sim.CarrierRestrictions carrierRestrictions,
            int multiSimPolicy) {
        RILRequest rr = mRil.processResponse(HAL_SERVICE_SIM, responseInfo);
        boolean carrierLockInfoSupported = mRil.getHalVersion(HAL_SERVICE_SIM).greater(
                RIL.RADIO_HAL_VERSION_2_2);
        if (rr == null) {
            return;
        }
@@ -132,7 +134,8 @@ public class SimResponse extends IRadioSimResponse.Stub {
                RILUtils.convertAidlCarrierInfoList(
                        carrierRestrictions.allowedCarrierInfoList)).setExcludedCarrierInfo(
                RILUtils.convertAidlCarrierInfoList(
                        carrierRestrictions.excludedCarrierInfoList)).build();
                        carrierRestrictions.excludedCarrierInfoList)).setCarrierLockInfoFeature(
                carrierLockInfoSupported).build();
        if (responseInfo.error == RadioError.NONE) {
            RadioResponse.sendMessageResponse(rr.mResult, ret);
        }