Files
redroid-patches/android-12.0.0_r32/system/core/0006-ignore-powerctl-message.patch
2023-10-17 16:11:38 +08:00

25 lines
737 B
Diff

From b828e823e9c6ecb2f08ae3983ffa5071456d87ef Mon Sep 17 00:00:00 2001
From: Ziyang Zhou <ziyang.zhou@outlook.com>
Date: Wed, 4 May 2022 22:19:51 +0800
Subject: [PATCH 6/8] ignore powerctl message
---
init/init.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/init/init.cpp b/init/init.cpp
index 942feb939..b82c589c2 100755
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -908,7 +908,6 @@ int SecondStageMain(int argc, char** argv) {
if (shutdown_command) {
LOG(INFO) << "Got shutdown_command '" << *shutdown_command
<< "' Calling HandlePowerctlMessage()";
- HandlePowerctlMessage(*shutdown_command);
shutdown_state.set_do_shutdown(false);
}
--
2.34.1