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

Commit c7854766 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:...

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

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

Change-Id: I46e5b296e6b710c121218ed9fde83beb0262deb3
parents b3fc98d1 9a1f2c96
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)) {