Use vendor/etc/ueventd.rc on microdroid

... because vendors should be able to extend ueventd.rc for their own
devices (in microdroid) and microdroid's system.img can't be amended.

Bug: N/A
Test: boot microdroid
Change-Id: I7ceaf3f87453c8e29f9d9bf03d4d1866185d4fec
This commit is contained in:
Inseob Kim 2023-11-20 18:34:27 +09:00
parent 142f8129ec
commit 52d8fe9b04

View file

@ -297,6 +297,10 @@ void ColdBoot::Run() {
}
static UeventdConfiguration GetConfiguration() {
if (IsMicrodroid()) {
return ParseConfig({"/system/etc/ueventd.rc", "/vendor/etc/ueventd.rc"});
}
auto hardware = android::base::GetProperty("ro.hardware", "");
struct LegacyPathInfo {