diff options
| -rw-r--r-- | odrefresh/odrefresh.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odrefresh/odrefresh.cc b/odrefresh/odrefresh.cc index 7ea0105426..974b3c6a02 100644 --- a/odrefresh/odrefresh.cc +++ b/odrefresh/odrefresh.cc @@ -1262,7 +1262,9 @@ class OnDeviceRefresh final { void ReportNextBootAnimationProgress(uint32_t current_compilation) const { uint32_t number_of_compilations = config_.GetBootExtensionIsas().size() + systemserver_compilable_jars_.size(); - uint32_t value = (100 * current_compilation) / number_of_compilations; + // We arbitrarly show progress until 90%, expecting that our compilations + // take a large chunk of boot time. + uint32_t value = (90 * current_compilation) / number_of_compilations; android::base::SetProperty("service.bootanim.progress", std::to_string(value)); } |