Merge "Stop respawning serial console if disabled"

This commit is contained in:
Treehugger Robot 2023-03-14 00:49:16 +00:00 committed by Gerrit Code Review
commit a6b295b95e

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 {};
}