0e63e61eb54b893cd8f58f0e031b28511cd13866 |
|
21-Jun-2017 |
Tom Cherry <tomcherry@google.com> |
Revert "init: poll in first stage mount if required devices are not found" Bug: 62864413 This reverts commit 5f4e8eac8a0db87a43ed7a930103f4241c22d479. Change-Id: I6f35b920bb52875c8ef430d3e20b205fda5165e8
/system/core/init/ueventd.cpp
|
5f4e8eac8a0db87a43ed7a930103f4241c22d479 |
|
20-Jun-2017 |
Tom Cherry <tomcherry@google.com> |
init: poll in first stage mount if required devices are not found First stage mount in init currently attempts to regenerate uevents for specific devices to create the corresponding dev nodes. However, this is racy as first stage mount happens early in the boot process and it's possible that some of these devices have not yet been created by the kernel. To fix this issue, init will poll on the uevent socket for up to 10 seconds waiting for the kernel to create the required device. It will return false and panic if this 10 second timeout passes. Note that the same uevent socket is used in the uevent regeneration and the polling code, so there is no race if the device is created after the uevent regeneration and before polling starts; the first poll will pick up the device. Bug: 62681642 Bug: 62682821 Test: Boot bullhead Test: Boot sailfish Test: Boot hikey + hotplug/unplug sdcard Merged-In: I4a6ff043eb7115b729ca4954ebc6c9e000132993 Change-Id: I4a6ff043eb7115b729ca4954ebc6c9e000132993
/system/core/init/ueventd.cpp
|
e249097f6d85be2680b9a2898ff67548d47f9a70 |
|
29-Mar-2017 |
Tom Cherry <tomcherry@google.com> |
init: replace property_get with its android::base equivalent Slowly try to decouple property_service.cpp from the rest of init. Test: Boot bullhead Change-Id: I267ae0b057bca0bf657b97cb8bfbb18199282729 (cherry picked from commit ccf23537eeacfa47e5f18dd3b75089886d177c1b)
/system/core/init/ueventd.cpp
|
bf298e6d0c8e1a20df7af7f856d9ca6781c9ed44 |
|
03-Feb-2017 |
Sandeep Patil <sspatil@google.com> |
ueventd: source ueventd configs from vendor and odm While keeping the old /ueventd.$ro.hardware.rc configuration for devices without early mount or vendor,odm split b/34967636 Test: Boot angler and sailfish without regressions Change-Id: I8d671911fd23fb1c0b5624ae209bad86137c88b7 Signed-off-by: Sandeep Patil <sspatil@google.com>
/system/core/init/ueventd.cpp
|
09bd41d097b15421a6dd7b547fadbb46928b9150 |
|
16-Nov-2016 |
Ting-Yuan Huang <laszio@google.com> |
init: fix memory leaks It's possible that node is not freed before return. Test: make WITH_TIDY=1 mmma system/core/init Change-Id: I648eea9dda006d2b2239e169785190817ad31352
/system/core/init/ueventd.cpp
|
171a829c39d9298432505fe943ad7128aeefe2b2 |
|
30-Jun-2016 |
Elliott Hughes <enh@google.com> |
Make klog_fd thread-safe and make klog_init a no-op. I'll come back and remove klog_init when I've removed other calls to it. Change-Id: Iad7fd26d853b4ddc54e9abd44516b6f138cbbfcb Test: booted N9, looked at "adb shell dmesg" output.
/system/core/init/ueventd.cpp
|
f86b5a6b90619e02d1d034ef7b0adc3b439f4abb |
|
25-Jun-2016 |
Elliott Hughes <enh@google.com> |
Move init to libbase logging. Change-Id: Ibfbefeff587a69e948978a037c555fd12a5ade6a
/system/core/init/ueventd.cpp
|
3195116e9718a4159f4149bcdc0d2a85339fcbf5 |
|
25-Jun-2016 |
Elliott Hughes <enh@google.com> |
Remove MTD cruft from init. Bug: http://b/29250988 Change-Id: I38ab263192944e4ff291fd91b25db163a8848d75
/system/core/init/ueventd.cpp
|
5b5a8ace61e089a207036115b73da8f27f0fba04 |
|
07-Apr-2016 |
William Roberts <william.c.roberts@intel.com> |
ueventd: convert to use pwd family of functions Switch ueventd to use the grp.h and pwd.h family of functions for converting strings to uids. This removes the need for using android_filesystem_config.h. Change-Id: I25a6f536bb11683d5cd69a0d7b348d25a272dd3b Bug: 27999086 Signed-off-by: William Roberts <william.c.roberts@intel.com>
/system/core/init/ueventd.cpp
|
4f71319df011d796a60a43fc1bc68e16fbf7d321 |
|
05-Dec-2015 |
Elliott Hughes <enh@google.com> |
Track rename of base/ to android-base/. Change-Id: Idf9444fece4aa89c93e15640de59a91f6e758ccf
/system/core/init/ueventd.cpp
|
74edcea90e31a3795e58aa1b2bbe96032f0bcd61 |
|
24-Jul-2015 |
Yabin Cui <yabinc@google.com> |
init: Let property_get return std::string. Bug: 22654233 Change-Id: Id6091f58432f75e966b9871256049fbe17766c10
/system/core/init/ueventd.cpp
|
da40c00137f75543a69972f1be506e2d14a41845 |
|
28-Mar-2015 |
Elliott Hughes <enh@google.com> |
Log more timing information from init. Also make important events in init's life NOTICE rather than INFO, and ensure that NOTICE events actually make it to the kernel log. Also fix the logging so that if you have a printf format string error, the compiler now catches it. Also give messages from init, ueventd, and watchdogd distinct tags. (Previously they'd all call themselves "init", and dmesg doesn't include pids, so you couldn't untangle them.) Also include the tag in SELinux messages. Bug: 19544788 Change-Id: Ica6daea065bfdb80155c52c0b06f346a7df208fe
/system/core/init/ueventd.cpp
|
74b34f3cb79aa8f2c5ba6a9dcc46d0dd84cdac86 |
|
28-Feb-2015 |
Rom Lemarchand <romlem@android.com> |
Remove /proc/cpuinfo parsing - Clean up the paths for ro.revision and ro.hardware parsing - Use ro.hardwre in ueventd instead of parsing the kernel command line (cherry-pick of 38b340a52f8e864650db8bae1eb88d5c00485db0.) Bug: 19366018 Change-Id: I018a293f3d46e736a8b65132b5b00b0f7c20edae
/system/core/init/ueventd.cpp
|
c0e919c92062360a69b771722677d041c9998403 |
|
04-Feb-2015 |
Elliott Hughes <enh@google.com> |
Stop using #if for conditional compilation. Use regular 'if' to prevent bitrot. Also remove remaining typedefs. Change-Id: I2e6ca928e2db29b88b643cf990ff05cfb0be94a6
/system/core/init/ueventd.cpp
|
2145779c871d4a9f632a8afbfc2adc5bea185a45 |
|
04-Feb-2015 |
Elliott Hughes <enh@google.com> |
Fix clang "ueventd.cpp:111:1: error: no return statement in function returning non-void". Change-Id: I69c9e5534975bffa0fbf98ca4af50400f6b94aa0
/system/core/init/ueventd.cpp
|
f3cf438714aa1284d8a58e2f3b108ba93f6d3abb |
|
04-Feb-2015 |
Elliott Hughes <enh@google.com> |
Build init as C++. This is just the minimal change to keep it building. Change-Id: I245c5b8413a1db114576c81462eb5737f5ffcef2
/system/core/init/ueventd.cpp
|