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:
+4
-1
@@ -890,7 +890,10 @@ Value* RebootNowFn(const char* name, State* state, const std::vector<std::unique
|
||||
return StringValue("");
|
||||
}
|
||||
|
||||
const std::string reboot_cmd = "reboot," + property;
|
||||
std::string reboot_cmd = "reboot," + property;
|
||||
if (android::base::GetBoolProperty("ro.boot.quiescent", false)) {
|
||||
reboot_cmd += ",quiescent";
|
||||
}
|
||||
android::base::SetProperty(ANDROID_RB_PROPERTY, reboot_cmd);
|
||||
|
||||
sleep(5);
|
||||
|
||||
Reference in New Issue
Block a user