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
This commit is contained in:
Alistair Delva 2023-03-13 16:09:16 -07:00
parent bc1789b153
commit f9bfe0d16d
1 changed files with 1 additions and 0 deletions

View File

@ -453,6 +453,7 @@ Result<void> 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 {};
}