From e106f0aaeb1f2eb2fedc04082917d954e4a5eba5 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 15 Dec 2020 18:34:47 +0000 Subject: [PATCH] Add boot animation progress system property. Test: m Bug: 175686819 Change-Id: Ic2757054b908e2c7ff51e256e8683616df74fb33 --- init/reboot.cpp | 1 + rootdir/init.rc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/init/reboot.cpp b/init/reboot.cpp index 49baf9e68..f4e12b94d 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -655,6 +655,7 @@ static void DoReboot(unsigned int cmd, const std::string& reason, const std::str if (do_shutdown_animation) { SetProperty("service.bootanim.exit", "0"); + SetProperty("service.bootanim.progress", "0"); // Could be in the middle of animation. Stop and start so that it can pick // up the right mode. boot_anim->Stop(); diff --git a/rootdir/init.rc b/rootdir/init.rc index d033afcf5..a233fbe70 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -1072,6 +1072,7 @@ on property:vold.decrypt=trigger_restart_framework class_start main class_start late_start setprop service.bootanim.exit 0 + setprop service.bootanim.progress 0 start bootanim on property:vold.decrypt=trigger_shutdown_framework @@ -1173,6 +1174,7 @@ on userspace-reboot-requested setprop sys.user.0.ce_available "" setprop sys.shutdown.requested "" setprop service.bootanim.exit "" + setprop service.bootanim.progress "" on userspace-reboot-fs-remount # Make sure that vold is running.