Merge "Stop respawning serial console if disabled" am: a6b295b95e am: 270959a336

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2485621

Change-Id: Ia5edeadd1f59dd014c3ffc46c87795cb97dadd24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-03-14 01:55:53 +00:00 committed by Automerger Merge Worker
commit cf0603892b

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