From 7d15b33b938f457a29068a4c71006a01462630bf Mon Sep 17 00:00:00 2001 From: Tianjie Date: Sat, 27 Feb 2021 19:01:23 -0800 Subject: [PATCH] walleye: 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-common.rc | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/init-common.rc b/init-common.rc index 3b6d4a4..167ceaa 100644 --- a/init-common.rc +++ b/init-common.rc @@ -55,19 +55,6 @@ service vendor.darkboot /vendor/bin/misc_writer --set-dark-theme --override-vend disabled oneshot -# Clear the dark theme magic in /misc partition. -service vendor.darkboot_clear --clear-dark-theme --override-vendor-space-offset 12360 - 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.darkboot - -# 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.darkboot_clear - -on property:persist.sys.theme=0 - start vendor.darkboot_clear