Scan for quiescent in sub reason and details

Bug: 326526460
Test: manual (b/320369923#comment19)
Change-Id: I702841bf1afa6a04318b8233eb6ddb89c46b7ad5
This commit is contained in:
Veena Arvind 2024-03-07 22:55:28 +00:00
parent b2bfb972e8
commit b46e5e6d0b

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;