commit | 25ed47280894e535a53ccdee658e4254e710cfd7 | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Wed Sep 27 14:54:38 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Sep 27 14:54:38 2017 +0000 |
tree | ec95217f42b57bbbe5b34e0ba49217f9f24dafd3 | |
parent | 6d3b636113f098f0c7c7176c6fee5d51c9070a9a [diff] | |
parent | 06f394337b3cfa03c37e25f46571f824369e6e3a [diff] |
Merge "init: shutdown,thermal shut off display immediately"
diff --git a/init/reboot.cpp b/init/reboot.cpp index 049c952..18f493a 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp
@@ -483,6 +483,8 @@ // 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; }