init: Fire shutdown trigger for thermal shutdown
am: 63a1d0a5f9
Change-Id: I1355e32c56947a79666eb3a58d9299042171a25c
This commit is contained in:
commit
da4e68944e
1 changed files with 1 additions and 3 deletions
|
|
@ -498,10 +498,8 @@ bool HandlePowerctlMessage(const std::string& command) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (command == "thermal-shutdown") { // no additional parameter allowed
|
} else if (command == "thermal-shutdown") { // no additional parameter allowed
|
||||||
|
// run_fsck is false to avoid delay
|
||||||
cmd = ANDROID_RB_THERMOFF;
|
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 {
|
} else {
|
||||||
command_invalid = true;
|
command_invalid = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue