From f9bfe0d16d140f5a9c07ff5ecbc48790d5aedc3e Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Mon, 13 Mar 2023 16:09:16 -0700 Subject: [PATCH] Stop respawning serial console if disabled After introducing ro.boot.serialconsole=0, the console will no longer be spawned, but a step was missed to disable the service to prevent respawns. Bug: 266982931 Bug: 223797063 Bug: 267428635 Change-Id: I12b159eaa1999781aec31c05ce431b55e2ba4017 --- init/service.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/init/service.cpp b/init/service.cpp index 8456d1ee4..35beaad33 100644 --- a/init/service.cpp +++ b/init/service.cpp @@ -453,6 +453,7 @@ Result Service::CheckConsole() { // disable services requiring the console. For older kernels and boot // images, not setting this at all will fall back to the old behavior if (GetProperty("ro.boot.serialconsole", "") == "0") { + flags_ |= SVC_DISABLED; return {}; }