From 52d8fe9b042b737950683b74c8a075ee7cf20d9b Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Mon, 20 Nov 2023 18:34:27 +0900 Subject: [PATCH] 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 --- init/ueventd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init/ueventd.cpp b/init/ueventd.cpp index 586e2cf31..3f0d0e95b 100644 --- a/init/ueventd.cpp +++ b/init/ueventd.cpp @@ -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 {