summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-11-13 14:41:40 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-11-13 14:41:40 -0800
commit15a03608d27aaaa1fd9f4f90306400104f9a9ce3 (patch)
tree890d84ddf308e6595a288678de877cdce352e73e
parentc4bd2d04ec7da9c000d8adf79ee50742381900e8 (diff)
parent84b6521e2ab54be24dc03f6711ee7a6e07e56e81 (diff)
downloadbonito-15a03608d27aaaa1fd9f4f90306400104f9a9ce3.tar.gz
Use more specific option to set dark mode am: 1c949af533 am: 52d44bb02c
am: 84b6521e2a Change-Id: Ibdd576fff013dee9cc8f2c8a71e214d74acad77a
-rw-r--r--BoardConfig-common.mk3
-rw-r--r--init.hardware.rc10
2 files changed, 4 insertions, 9 deletions
diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk
index 95ec76ba..a9f3d7ba 100644
--- a/BoardConfig-common.mk
+++ b/BoardConfig-common.mk
@@ -92,9 +92,6 @@ TARGET_RECOVERY_FSTAB := device/google/bonito/fstab.hardware
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
TARGET_RECOVERY_UI_LIB := \
librecovery_ui_pixel \
- libnos_citadel_for_recovery \
- libnos_for_recovery \
- libbootloader_message \
libfstab
# system.img
diff --git a/init.hardware.rc b/init.hardware.rc
index 0c7e6f4e..97c028ba 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -892,15 +892,13 @@ on property:sys.boot_completed=1
on property:vendor.fps.init.succeed=true && property:init.svc.vendor.fps_hal=stopped
start init-fingerprint-sh
-# Write the dark theme magic (`theme-dark`, or 0x7468656d652d6461726b in hex string) to /misc
-# partition. Offset 0 in vendor space is effectively offset 2048 in /misc partition.
-service vendor.theme_set /vendor/bin/misc_writer --vendor-space-offset 0 --hex-string 0x7468656d652d6461726b
+# Write the dark theme magic to /misc partition.
+service vendor.theme_set /vendor/bin/misc_writer --set-dark-theme
disabled
oneshot
-# Clear the 10-byte dark theme magic in /misc partition. Offset 0 in vendor space is effectively
-# offset 2048 in /misc partition.
-service vendor.theme_clear /vendor/bin/misc_writer --vendor-space-offset 0 --hex-string 0x00000000000000000000
+# Clear the dark theme magic in /misc partition.
+service vendor.theme_clear /vendor/bin/misc_writer --clear-dark-theme
disabled
oneshot