Skip to content

Commit 4ba6769

Browse files
TheCrazyLexersascape
authored andcommitted
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 <alex.naidis@linux.com> Signed-off-by: Jason Edson <jaysonedson@gmail.com>
1 parent 8c472ac commit 4ba6769

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootdir/init.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ on property:ro.debuggable=1
12351235
# Give reads to anyone for the accessibility trace folder on debug builds.
12361236
chmod 0775 /data/misc/a11ytrace
12371237

1238-
on init && property:ro.debuggable=1
1238+
on init && property:ro.debuggable=1 && property:ro.console.enable=1
12391239
start console
12401240

12411241
on userspace-reboot-requested

0 commit comments

Comments
 (0)