summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Shih <adamshih@google.com>2023-06-15 01:10:47 +0000
committerAdam Shih <adamshih@google.com>2023-06-15 01:10:47 +0000
commit7073dbb54d83648ef2f9dfd811776dd5c06d4b4d (patch)
treea6f442eba168310a88707d45fb20952ad3f9ec73
parent7823c3cfea7323c6740e73dd293d5251b1f7e643 (diff)
downloadpixel-7073dbb54d83648ef2f9dfd811776dd5c06d4b4d.tar.gz
Revert "avoid root permission"android14-dev
This reverts commit 9434635578bae56804cb27725f621f5160c80a7a. Reason for revert: this sysprop is actually used by the bootloader+boot animation to determine which boot image+animation to display (light color if first boot, dark/themed colors after device is provisioned). Bug: 286445211 Change-Id: I95e060682a6bc2b10560913d61ba57a8226f97eb
-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