Skip to content

Commit

Permalink
add some OTA Partitions list and some libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
JonesqPacMan committed Jan 21, 2024
1 parent 41b7a07 commit d30897e
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 += \
Expand Down Expand Up @@ -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)

0 comments on commit d30897e

Please sign in to comment.