From b4d65399fde02280b718e3b5b5cb1464a885c4b0 Mon Sep 17 00:00:00 2001 From: Brian Swetland Date: Wed, 27 Oct 2010 15:40:23 -0700 Subject: [PATCH] disable console in user builds Also, run console as shell/log instead of root/root. Change-Id: I6104f1edddfd5e11843ff41d7839d0c296e6a6f9 --- rootdir/init.rc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index 271727361..8227273af 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -277,12 +277,18 @@ on boot ## Daemon processes to be run by init. ## -service console /system/bin/sh - console - service ueventd /sbin/ueventd critical +service console /system/bin/sh + console + disabled + user shell + group log + +on property:ro.secure=0 + start console + # adbd is controlled by the persist.service.adb.enable system property service adbd /sbin/adbd disabled