| on early-init | |
| mount_all /vendor/etc/fstab.persist --early | |
| on fs | |
| mount_all /vendor/etc/fstab.firmware --early | |
| on late-fs | |
| mount_all /vendor/etc/fstab.firmware --late | |
| on property:sys.boot_completed=1 | |
| swapon_all /vendor/etc/fstab.firmware | |
| # Write the dark theme magic to /misc partition. | |
| 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 | |
| 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 | |