From 2cb10aa20caccff3e651bf27540f082ac09c7f2b Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Mon, 3 Jun 2019 15:30:17 -0700 Subject: [PATCH] Include misc_writer. Bug: 113028175 Bug: 134157796 Bug: 134430124 Test: Build and flash taimen with the matching bootloader change. Check serial log regarding the start of vendor.darkboot service. Also read the value via `dd bs=1 skip=2048 if=/dev/block/sda5 count=32 | xxd` to confirm the change. Test: Trigger a factory reset via Settings. Check the value in /misc after the reset. Change-Id: I87c248e25450f520bdc6f1cab3d7f240e54394d0 --- device.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device.mk b/device.mk index 042fc6e5..2edb7b97 100755 --- a/device.mk +++ b/device.mk @@ -155,6 +155,10 @@ PRODUCT_PACKAGES_DEBUG += \ bootctl \ update_engine_client +# Write flags to the vendor space in /misc partition. +PRODUCT_PACKAGES += \ + misc_writer + PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \