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

Commit 10310622 authored by Jack Nudelman's avatar Jack Nudelman
Browse files

Don't power on radio when the device is being shut down.

Bug: 200677785
Test: b/196297537

Change-Id: If6aaefe3005ca21eba7212a11803963762a81324
parent 410b60d7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3181,6 +3181,12 @@ public class ServiceStateTracker extends Handler {
            mRadioPowerLog.log(tmpLog);
        }

        if (mDesiredPowerState && mDeviceShuttingDown) {
            log("setPowerStateToDesired powering on of radio failed because the device is " +
                    "powering off");
            return;
        }

        // If we want it on and it's off, turn it on
        if (mDesiredPowerState && !mRadioDisabledByCarrier
                && (forceApply || mCi.getRadioState() == TelephonyManager.RADIO_POWER_OFF)) {