adapt window param change for stop boot animation

Signed-off-by: xiahaiqin <xiahaiqin1@huawei.com>
Change-Id: I6d76a8dc10b40f965fbc47d67bc4efe76d7eea1c
This commit is contained in:
xiahaiqin 2022-08-15 18:43:38 +08:00
parent be4a9c3cee
commit 751870bde7
2 changed files with 5 additions and 3 deletions

View File

@ -212,10 +212,10 @@ void BootAnimation::CheckExitAnimation()
system::SetParameter("bootevent.bootanimation.started", "true");
setBootEvent_ = true;
}
std::string windowInit = system::GetParameter("persist.window.boot.inited", "0");
if (windowInit == "1") {
std::string windowInit = system::GetParameter("bootevent.wms.fullscreen.ready", "false");
if (windowInit == "true") {
PostTask(std::bind(&AppExecFwk::EventRunner::Stop, runner_));
LOGI("CheckExitAnimation read windowInit is 1");
LOGI("CheckExitAnimation read windowInit is true");
return;
}
}

View File

@ -19,6 +19,8 @@
}, {
"name" : "bootanimation",
"path" : ["/system/bin/bootanimation"],
"bootevents": "bootevent.bootanimation.started",
"importance" : -20,
"once" : 1,
"uid" : "graphics",
"gid" : ["graphics", "system", "shell", "uhid", "root"],