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

Commit 9a1f2c96 authored by Jack Nudelman's avatar Jack Nudelman Committed by Automerger Merge Worker
Browse files

Don't power on radio when the device is being shut down. am: 10310622 am: 01fcb06a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/15868802

Change-Id: I646fc71334f55bebcf1e51a600095b7f716d1ff8
parents af7fc2d4 01fcb06a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3190,6 +3190,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)) {