Merge "Emulator: start logcat -Q as logd user instead of root"
diff --git a/init.goldfish.rc b/init.goldfish.rc
index 233548d..ae8aeaf 100644
--- a/init.goldfish.rc
+++ b/init.goldfish.rc
@@ -89,8 +89,11 @@
 # if it does, it redirects its output to the device
 # named by the androidboot.console kernel option
 # if not, is simply exits immediately
-
+# logd user added to prevent logcat from logging content.
+# log group added to support access to read logs socket.
 service goldfish-logcat /system/bin/logcat -Q
+    user logd
+    group log
     oneshot
 
 service fingerprintd /system/bin/fingerprintd
diff --git a/init.ranchu.rc b/init.ranchu.rc
index f1a1761..c4a77fa 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -74,8 +74,11 @@
 # if it does, it redirects its output to the device
 # named by the androidboot.console kernel option
 # if not, is simply exits immediately
-
+# logd user added to prevent logcat from logging content.
+# log group added to support access to read logs socket.
 service goldfish-logcat /system/bin/logcat -Q
+    user logd
+    group log
     oneshot
 
 service fingerprintd /system/bin/fingerprintd