From d30897eaf750ff081b54617296b526254d18d863 Mon Sep 17 00:00:00 2001 From: JonesqPacMan Date: Sun, 21 Jan 2024 14:30:49 +0700 Subject: [PATCH] add some OTA Partitions list and some libraries --- device.mk | 47 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/device.mk b/device.mk index 5e2aa57..1bc13ce 100644 --- a/device.mk +++ b/device.mk @@ -18,24 +18,46 @@ DEVICE_PATH := device/xiaomi/plato # API PRODUCT_SHIPPING_API_LEVEL := 31 -PRODUCT_TARGET_VNDK_VERSION := 31 +PRODUCT_TARGET_VNDK_VERSION := 34 # A/B AB_OTA_UPDATER := true ENABLE_VIRTUAL_AB := true +TARGET_ENFORCE_AB_OTA_PARTITION_LIST := true AB_OTA_PARTITIONS += \ + apusys \ + audio_dsp \ boot \ + ccu \ + dpm \ dtbo \ - system \ - product \ - vendor \ + gpueb \ + gz \ + lk \ + logo \ + mcf_ota \ + mcupm \ + md1img \ + mvpu_algo \ odm \ odm_dlkm \ + pi_img \ + preloader_raw \ + product \ + scp \ + spmfw \ + sspm \ + system \ + system_ext \ + tee \ vbmeta \ + vbmeta_system \ + vbmeta_vendor \ + vcp \ + vendor \ vendor_boot \ vendor_dlkm \ - vbmeta_system \ - vbmeta_vendor + mi_ext PRODUCT_PACKAGES += \ update_engine \ @@ -57,10 +79,16 @@ AB_OTA_POSTINSTALL_CONFIG += \ # Additional Target Libraries TARGET_RECOVERY_DEVICE_MODULES += \ - android.hardware.keymaster@4.1 + android.hardware.keymaster@4.1 \ + android.hardware.vibrator-V1-ndk_platform \ + libion \ + libxml2 TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES += \ - $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@4.1.so + $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@4.1.so \ + $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator-V1-ndk_platform.so \ + $(TARGET_OUT_SHARED_LIBRARIES)/libion.so \ + $(TARGET_OUT_SHARED_LIBRARIES)/libxml2.so # Bootctrl PRODUCT_PACKAGES += \ @@ -105,5 +133,8 @@ PRODUCT_PACKAGES += \ PRODUCT_EXTRA_RECOVERY_KEYS += \ $(DEVICE_PATH)/security/miui_releasekey +# Hidl Service +PRODUCT_ENFORCE_VINTF_MANIFEST := true + # Soong namespaces PRODUCT_SOONG_NAMESPACES += $(DEVICE_PATH)