summaryrefslogtreecommitdiff
path: root/init.hardware.rc
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-06-05 10:17:43 -0700
committerSteven Moreland <smoreland@google.com>2018-06-05 21:18:26 +0000
commit04db8fa124aabd443b3068ae50dc2282f31f0a1a (patch)
tree1422f2383ab118d477024953d22c294a3dbbeda2 /init.hardware.rc
parent8195d669c422665e0e0efe462b7843b3eb323ae3 (diff)
Start logd early
Crosshatch has system-as-root and therefore starts daemons earlier than the rest of Android typically expects. One of the caveats that wasn't expected or handled correctly is that logd must start before the rest of these daemons otherwise their logs will be missed. Therefore we start logd at the beginning of the `on init` trigger. Bug: 89689596 Test: see hwservicemanager logd consistently while true; do adb reboot && adb wait-for-device && adb logcat -b all -d | grep "hwservicemanager is ready now." || echo NOPE; done 01-21 05:17:01.193 582 582 I hwservicemanager: hwservicemanager is ready now. 01-21 05:17:23.083 583 583 I hwservicemanager: hwservicemanager is ready now. 01-21 05:17:45.178 583 583 I hwservicemanager: hwservicemanager is ready now. ... Change-Id: If381afa13390130890d0a7b2b1aed036c4e6f15c
Diffstat (limited to 'init.hardware.rc')
-rw-r--r--init.hardware.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.hardware.rc b/init.hardware.rc
index e9293e9..f8958ea 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -55,6 +55,8 @@ on early-fs
start vold
on init
+ start logd
+
# QSEE rpmb listener need symlink for bootdevice
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice