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
(cherry picked from commit 7264bee975)
Change-Id: Ifc725f906de01eba552c782b8ec0d7bd11d089d0
This commit is contained in:
parent
eb9694a2d1
commit
9c91d90294
1 changed files with 1 additions and 1 deletions
|
|
@ -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<std::string> kill_after_apps{"tombstoned", "logd", "adbd"};
|
||||
// watchdogd is a vendor specific component but should be alive to complete shutdown safely.
|
||||
const std::set<std::string> to_starts{"watchdogd", "vold"};
|
||||
const std::set<std::string> to_starts{"watchdogd", "vold", "ueventd"};
|
||||
ServiceManager::GetInstance().ForEachService([&kill_after_apps, &to_starts](Service* s) {
|
||||
if (kill_after_apps.count(s->name())) {
|
||||
s->SetShutdownCritical();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue