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:
commit
cf0603892b
1 changed files with 1 additions and 0 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue