Merge "init: shutdown,thermal shut off display immediately"

am: 82ee4060ed

Change-Id: I7c81548a3bbfefa8fadbe27d168708b2cb1d125a
This commit is contained in:
Mark Salyzyn 2017-09-27 15:00:00 +00:00 committed by android-build-merger
commit a27a48590a

View file

@ -483,6 +483,8 @@ bool HandlePowerctlMessage(const std::string& command) {
// Run fsck once the file system is remounted in read-only mode.
run_fsck = true;
} else if (cmd_params[1] == "thermal") {
// Turn off sources of heat immediately.
TurnOffBacklight();
// run_fsck is false to avoid delay
cmd = ANDROID_RB_THERMOFF;
}