From 12f9ff8951147b2b270abb4ee5e4c8d279bfda0d Mon Sep 17 00:00:00 2001 From: Gabriel Jacobo Date: Tue, 2 Jun 2020 14:19:38 -0300 Subject: [PATCH] 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 --- rootdir/init.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index efad37c64..a2fb88a98 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -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.