From b46e5e6d0bb12cecc96a768ef7d88af437126596 Mon Sep 17 00:00:00 2001 From: Veena Arvind Date: Thu, 7 Mar 2024 22:55:28 +0000 Subject: [PATCH] Scan for quiescent in sub reason and details Bug: 326526460 Test: manual (b/320369923#comment19) Change-Id: I702841bf1afa6a04318b8233eb6ddb89c46b7ad5 --- init/reboot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/reboot.cpp b/init/reboot.cpp index 1a26c4d3c..150f8f40e 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -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;