From e2b04b71ae3792e2d8d2fda537343549ebfcc8bb Mon Sep 17 00:00:00 2001 From: Keun-young Park Date: Wed, 19 Apr 2017 10:46:31 -0700 Subject: [PATCH] do not start shutdown animation from init - init will only keep animation related services as shutdown critical. - external component like system server can start shutdown animation. bug: 37500823 Test: reboot Change-Id: Ief328306eba7e3b15402ae27e6236767095f508c --- init/reboot.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/init/reboot.cpp b/init/reboot.cpp index 4d65437de..80a6bd2ab 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -341,18 +341,9 @@ void DoReboot(unsigned int cmd, const std::string& reason, const std::string& re Service* bootAnim = ServiceManager::GetInstance().FindServiceByName("bootanim"); Service* surfaceFlinger = ServiceManager::GetInstance().FindServiceByName("surfaceflinger"); if (bootAnim != nullptr && surfaceFlinger != nullptr && surfaceFlinger->IsRunning()) { - property_set("service.bootanim.exit", "0"); - // Could be in the middle of animation. Stop and start so that it can pick - // up the right mode. - bootAnim->Stop(); - // start all animation classes if stopped. ServiceManager::GetInstance().ForEachServiceInClass("animation", [](Service* s) { - s->Start(); s->SetShutdownCritical(); // will not check animation class separately }); - bootAnim->Start(); - surfaceFlinger->SetShutdownCritical(); - bootAnim->SetShutdownCritical(); } // optional shutdown step