Adding support for quiescent reboot to recovery

Bug: 37401320
Test: build and push OTA and hit adb reboot recovery,quiescent. The screen should remain off throughout the upgrade process.

(cherry picked from commit 8706a98aa6)

Change-Id: I79789a151f6faafda8ecc6198c2182cc2a91da70
This commit is contained in:
Dmitri Plotnikov
2017-04-18 08:28:26 -07:00
parent b4c0de6c7b
commit ed9db0fd73
4 changed files with 27 additions and 8 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ void RecoveryUI::ProcessKey(int key_code, int updown) {
case RecoveryUI::REBOOT:
if (reboot_enabled) {
android::base::SetProperty(ANDROID_RB_PROPERTY, "reboot,");
reboot("reboot,");
while (true) { pause(); }
}
break;