From 7264bee975bdd35eac256e4939fa7dfd8962c2ac Mon Sep 17 00:00:00 2001 From: Keun-young Park Date: Thu, 18 May 2017 13:28:32 -0700 Subject: [PATCH] add ueventd to shutdown critial process - In some devices, some drivers still try to load firmware while shutting down, and crashes the kernel. So keep ueventd to prevent such case. bug: 38203024 Test: reboots Change-Id: I4f1910723254ccb69f8e9c78e8727fbd8c7eed3e --- init/reboot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/reboot.cpp b/init/reboot.cpp index 838406d8d..cdfc69801 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -331,7 +331,7 @@ void DoReboot(unsigned int cmd, const std::string& reason, const std::string& re // keep debugging tools until non critical ones are all gone. const std::set kill_after_apps{"tombstoned", "logd", "adbd"}; // watchdogd is a vendor specific component but should be alive to complete shutdown safely. - const std::set to_starts{"watchdogd", "vold"}; + const std::set to_starts{"watchdogd", "vold", "ueventd"}; ServiceManager::GetInstance().ForEachService([&kill_after_apps, &to_starts](Service* s) { if (kill_after_apps.count(s->name())) { s->SetShutdownCritical();