Skip to content

Commit

Permalink
init.rc: don't start console unless asked to
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
Signed-off-by: Anushek Prasal <[email protected]>
  • Loading branch information
TheCrazyLex authored and SKULSHADY committed Aug 25, 2023
1 parent c8f2280 commit b87aed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootdir/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b87aed7

Please sign in to comment.