sm7325-common: Adapt to virtual A/B

dubai is virtual A/B where-as berlin is not

Based on the logic from
https://github.com/LineageOS/android_device_xiaomi_sm8250-common

Change-Id: Ibadfd452365c799b290d32fd5afabc046b9f9c41
This commit is contained in:
Marc Bourgoin 2022-08-17 03:42:08 -06:00
commit 219c25e9e1
2 changed files with 13 additions and 1 deletions

View file

@ -41,6 +41,11 @@ PRODUCT_PACKAGES += \
WifiResTarget
# A/B
ifeq ($(TARGET_IS_VAB),true)
# Inherit virtual_ab_ota product
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
endif
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \