Merge "Scan for quiescent in sub reason and details" into main am: fe7e089a7c

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2994919

Change-Id: I85f5d288bf5a5dfb2cfcdf50056631ed540ec0d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Veena Arvind 2024-03-12 18:18:34 +00:00 committed by Automerger Merge Worker
commit bbe79fedf6

View file

@ -1083,7 +1083,8 @@ void HandlePowerctlMessage(const std::string& command) {
return;
}
}
} else if (reboot_target == "quiescent") {
} else if (std::find(cmd_params.begin(), cmd_params.end(), "quiescent")
!= cmd_params.end()) { // Quiescent can be either subreason or details.
bootloader_message boot = {};
if (std::string err; !read_bootloader_message(&boot, &err)) {
LOG(ERROR) << "Failed to read bootloader message: " << err;