Merge "init: shutdown,thermal shut off display immediately" am: 82ee4060ed
am: a27a48590a
Change-Id: I419ffe6fab44d138d84c92c811a0b03ace796c1a
This commit is contained in:
commit
9c76b46e4e
1 changed files with 2 additions and 0 deletions
|
|
@ -483,6 +483,8 @@ bool HandlePowerctlMessage(const std::string& command) {
|
||||||
// Run fsck once the file system is remounted in read-only mode.
|
// Run fsck once the file system is remounted in read-only mode.
|
||||||
run_fsck = true;
|
run_fsck = true;
|
||||||
} else if (cmd_params[1] == "thermal") {
|
} else if (cmd_params[1] == "thermal") {
|
||||||
|
// Turn off sources of heat immediately.
|
||||||
|
TurnOffBacklight();
|
||||||
// run_fsck is false to avoid delay
|
// run_fsck is false to avoid delay
|
||||||
cmd = ANDROID_RB_THERMOFF;
|
cmd = ANDROID_RB_THERMOFF;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue