diff options
author | Tianjie <xunchang@google.com> | 2021-02-27 19:04:00 -0800 |
---|---|---|
committer | Tianjie <xunchang@google.com> | 2021-02-27 19:13:35 -0800 |
commit | b2f76bbc07d0ddcf1c736b396a46d2ab9e91a063 (patch) | |
tree | 1d797e53f2286e96e91331084a5024ae41cbf309 /common | |
parent | 69ce4a6f54a15ef05045ba436ec1117421daff50 (diff) |
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.
Light boot is still used on the first boot after a factory reset.
Bug: 181339788
Test: flash a Pixel -> boot -> dark theme is set;
boot again -> observe dark boot
Change-Id: I5c0e675fb31e844fe3830d78bb2378ebc17e49e4
Diffstat (limited to 'common')
-rw-r--r-- | common/init.pixel.rc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/common/init.pixel.rc b/common/init.pixel.rc index 1e4be6b..dc499c3 100644 --- a/common/init.pixel.rc +++ b/common/init.pixel.rc @@ -3,23 +3,10 @@ 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 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 boot 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 - # Set or clear the warm reset flag upon the change of system property. The flag itself is set on init && property:ro.boot.slot_successful=no write /sys/module/msm_poweroff/parameters/warm_reset 1 |