summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/init.pixel.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/init.pixel.rc b/common/init.pixel.rc
index 640212c6..25b14fe6 100644
--- a/common/init.pixel.rc
+++ b/common/init.pixel.rc
@@ -1,3 +1,12 @@
+# Write the dark theme magic to /misc partition.
+service vendor.theme_set /vendor/bin/misc_writer --set-dark-theme
+ disabled
+ oneshot
+
+# Set dark boot flag when the device is provisioned.
+on property:persist.sys.device_provisioned=1
+ start vendor.theme_set
+
# 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