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

Commit 63a1d0a5 authored by Wei Wang's avatar Wei Wang
Browse files

init: Fire shutdown trigger for thermal shutdown

Recent change in init has bring normal shutdown sequence in
thermal-shutdown condition. This CL will make sure init fire shutdown
trigger where holds custom shutdown actions for vendor SoC/platform.

(cherry picked from commit 1be22123)

Bug: 63686426
Test: adb shell setprop sys.powerctl thermal-shutdown
Change-Id: Ieb8579fdf9c30c1a81d60466a7375c9784f3ca98
parent c034a43d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -462,10 +462,8 @@ bool HandlePowerctlMessage(const std::string& command) {
            }
        }
    } else if (command == "thermal-shutdown") {  // no additional parameter allowed
        // run_fsck is false to avoid delay
        cmd = ANDROID_RB_THERMOFF;
        // Do not queue "shutdown" trigger since we want to shutdown immediately
        DoReboot(cmd, command, reboot_target, run_fsck);
        return true;
    } else {
        command_invalid = true;
    }