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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user