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

Commit 29ec0f4d authored by Terry Huang's avatar Terry Huang
Browse files

Reset radio service proxy after Mock modem detach

Bug: 226682510
Test: Run ImsServiceTest and TelephonyManagerTestOnMockModem
atest CtsTelephonyTestCases:ImsServiceTest
CtsTelephonyTestCases:TelephonyManagerTestOnMockModem -c

Change-Id: Ie0bcf8237cd5b99db6645fcf2c5c29f05fa7b5e3
parent dfe81b84
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -538,6 +538,9 @@ public class RIL extends BaseCommands implements CommandsInterface {
            if (mMockModem != null) {
                mRadioVersion = RADIO_HAL_VERSION_UNKNOWN;
                mMockModem = null;
                for (int service = MIN_SERVICE_IDX; service <= MAX_SERVICE_IDX; service++) {
                    resetProxyAndRequestList(service);
                }
            }
        }

+1 −0
Original line number Diff line number Diff line
@@ -273,6 +273,7 @@ public class RadioConfig extends Handler {

            if (mMockModem != null) {
                mMockModem = null;
                resetProxyAndRequestList("EVENT_AIDL_SERVICE_DEAD", null);
            }
        }