From b87aed793c7dc1d3276e8717ad2d0b4ea99c150f Mon Sep 17 00:00:00 2001 From: Alex Naidis Date: Thu, 22 Dec 2016 22:04:42 +0100 Subject: [PATCH] init.rc: don't start console unless asked to This can have a major impact on performance. We don't want this, even on userdebug/eng builds. Use the new property "ro.console.enable" to enable the console service explicitly. Change-Id: I93e7c65e92261443d1c9c70cfef9aa2ed5ff328a Signed-off-by: Alex Naidis Signed-off-by: Pranav Vashi Signed-off-by: Anushek Prasal --- rootdir/init.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index 4476aba5c55e..ff78f869a0c7 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -1277,7 +1277,7 @@ on property:ro.debuggable=1 # Give reads to anyone for the accessibility trace folder on debug builds. chmod 0775 /data/misc/a11ytrace -on init && property:ro.debuggable=1 +on init && property:ro.debuggable=1 && property:ro.console.enable=1 start console on userspace-reboot-requested