init: stop console service on userdebug/eng to reduce UART noise

The AOSP init.rc starts the console service (interactive shell on
/dev/ttyAMA0) when ro.debuggable=1. Kernel messages written to the
UART are read by the shell as input, causing continuous '>' secondary
prompts. ADB over TCP (port 5555) is the preferred debug shell; the
console service is not needed.
This commit is contained in:
oxmc
2026-06-11 07:02:16 -07:00
parent 9c1b11247e
commit ccd99c8acf
+3
View File
@@ -13,5 +13,8 @@ on fs
on late-fs
mount_all /vendor/etc/fstab.${ro.hardware} --late
on property:ro.debuggable=1
stop console
on property:sys.boot_completed=1
swapon_all /vendor/etc/fstab.zram.${persist.vendor.zram.size}