1on early-init
2    mount_all /vendor/etc/fstab.persist --early
3
4on fs
5    mount_all /vendor/etc/fstab.firmware --early
6
7on late-fs
8    mount_all /vendor/etc/fstab.firmware --late
9
10on property:sys.boot_completed=1
11    swapon_all /vendor/etc/fstab.firmware
12
13# Write the dark theme magic to /misc partition.
14service vendor.theme_set /vendor/bin/misc_writer --set-dark-theme
15    disabled
16    oneshot
17
18# Clear the dark theme magic in /misc partition.
19service vendor.theme_clear /vendor/bin/misc_writer --clear-dark-theme
20    disabled
21    oneshot
22
23# Set dark boot flag on dark mode (UiModeManager.MODE_NIGHT_YES == 2).
24on property:persist.sys.theme=2
25    start vendor.theme_set
26
27# Clear the dark boot flag on light mode (UiModeManager.MODE_NIGHT_NO == 1) or auto mode
28# (UiModeManager.MODE_NIGHT_AUTO == 0).
29on property:persist.sys.theme=1
30    start vendor.theme_clear
31
32on property:persist.sys.theme=0
33    start vendor.theme_clear
34
35