init: Make console a shutdown critical service

A critical shutdown service is one that stays on right until the system
is rebooted. In order to be able to capture kernel messages right until
reboot this is required, otherwise after the console service is
terminated some messages can be lost.

Test: Reboot and verify messages show up on serial further down the reboot process
Change-Id: Iea58b5a76afe45b3346803021e3be81742b02ea0
This commit is contained in:
Gabriel Jacobo 2020-06-02 14:19:38 -03:00 committed by Josh Gao
parent d5d01db888
commit 12f9ff8951

View file

@ -1286,6 +1286,7 @@ service console /system/bin/sh
group shell log readproc
seclabel u:r:shell:s0
setenv HOSTNAME console
shutdown critical
on property:ro.debuggable=1
# Give writes to anyone for the trace folder on debug builds.