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

Commit 335cf795 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Fix nvResetConfig after CDMA cleanup

Bug: 383032930
Test: CtsTelephonyTestCases:android.telephony.cts.TelephonyManagerTest#testRebootRadio
Flag: TEST_ONLY
Change-Id: If94ee68dd7aa13a04603fa148042db271ae95fe3
parent fb280d3a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4170,7 +4170,8 @@ public class RIL extends BaseCommands implements CommandsInterface {

    @Override
    public void nvResetConfig(int resetType, Message result) {
        if (mFeatureFlags.cleanupCdma()) return;
        // Disable all NV reset functions except modem restart.
        if (mFeatureFlags.cleanupCdma() && resetType != 1) return;

        RadioModemProxy modemProxy = getRadioServiceProxy(RadioModemProxy.class);
        if (!canMakeRequest("nvResetConfig", modemProxy, result, RADIO_HAL_VERSION_1_4)) {