summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-15 23:17:47 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-15 23:17:47 +0000
commitb8fc6c97a76a75b19d9d3293baf9234910c5c929 (patch)
treea6f442eba168310a88707d45fb20952ad3f9ec73
parent8b1a0da9e4a47e7d2b0e6f8bac03ac498a829a57 (diff)
parent7073dbb54d83648ef2f9dfd811776dd5c06d4b4d (diff)
downloadpixel-android14-tests-release.tar.gz
Change-Id: I9c72b2abc4e0e9ccb99af5b632a91ab0c3dd5410
-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