From e40685c57d78fec8eb448d605d192cb89a892238 Mon Sep 17 00:00:00 2001 From: Tianjie Date: Sat, 27 Feb 2021 19:01:23 -0800 Subject: [PATCH] taimen: Use light boot animation on first boot only Today, the dark boot follows the Dark Theme mode in Settings. Now the UI team decide to always use dark boot after the device is provisioned. So users will see fewer disturbances when a scheduled update is taken at night Bug: 181339788 Test: flash a Pixel -> boot -> dark theme is set; boot again -> observe dark boot Change-Id: Id4989e4e78471bcefc2730ba7d9adc36f5ac9c75 --- init-taimen.rc | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/init-taimen.rc b/init-taimen.rc index da5ccaf..7ec9984 100644 --- a/init-taimen.rc +++ b/init-taimen.rc @@ -58,19 +58,6 @@ service vendor.theme_set /vendor/bin/misc_writer --set-dark-theme disabled oneshot -# Clear the dark theme magic in /misc partition. -service vendor.theme_clear /vendor/bin/misc_writer --clear-dark-theme - disabled - oneshot - -# Set the dark boot flag on dark mode (UiModeManager.MODE_NIGHT_YES == 2). -on property:persist.sys.theme=2 +# Set dark boot flag when the device is provisioned. +on property:persist.sys.device_provisioned=1 start vendor.theme_set - -# Clear the dark theme flag on light mode (UiModeManager.MODE_NIGHT_NO == 1) or auto mode -# (UiModeManager.MODE_NIGHT_AUTO == 0). -on property:persist.sys.theme=1 - start vendor.theme_clear - -on property:persist.sys.theme=0 - start vendor.theme_clear