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 1be2212319
)
Bug: 63686426
Test: adb shell setprop sys.powerctl thermal-shutdown
Change-Id: Ieb8579fdf9c30c1a81d60466a7375c9784f3ca98
This commit is contained in:
parent
c034a43d44
commit
63a1d0a5f9
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue