1# Write the dark theme magic to /misc partition. 2service vendor.theme_set /vendor/bin/misc_writer --set-dark-theme 3 disabled 4 oneshot 5 6# Set dark boot flag when the device is provisioned. 7on property:persist.sys.device_provisioned=1 8 start vendor.theme_set 9 10# Set or clear the warm reset flag upon the change of system property. The flag itself is set 11on init && property:ro.boot.slot_successful=no 12 write /sys/module/msm_poweroff/parameters/warm_reset 1 13 14# by writing a sysfs file; and the file will be read by kernel. 15on property:ota.warm_reset=1 16 write /sys/module/msm_poweroff/parameters/warm_reset 1 17 18on property:ota.warm_reset=0 19 write /sys/module/msm_poweroff/parameters/warm_reset 0 20 21on init 22 copy_per_line /dev/cpuctl/tasks /dev/cpuctl/system/tasks 23 24# Migrate tasks again in case kernel threads are created during boot 25on property:sys.boot_completed=1 26 copy_per_line /dev/cpuctl/tasks /dev/cpuctl/system/tasks 27