From 71c3ef135d6f99906a2b58bafa07fc629b7cce7f Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Tue, 27 Aug 2019 14:57:32 -0700 Subject: [PATCH] Start serial console at the 'init' trigger Start the serial console at the 'init' trigger instead of much later when property triggers happen. This will help debugging early boot issues. Test: serial console starts early for a userdebug build Test: serial console still doesn't start on a user build Change-Id: I7112a8e7171c9fa865c8787c9a3d14515bc59478 --- rootdir/init.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 97f185458..bb36139ec 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -868,6 +868,8 @@ on property:ro.debuggable=1 chmod 0773 /data/misc/trace # Give reads to anyone for the window trace folder on debug builds. chmod 0775 /data/misc/wmtrace + +on init && property:ro.debuggable=1 start console service flash_recovery /system/bin/install-recovery.sh