raviole: Add build_flags based properties for SMR/EMR build

Flag: build.RELEASE_IS_SMR
Flag: build.RELEASE_IS_EMR
Flag: build.RELEASE_BASE_OS_ORIOLE
Flag: build.RELEASE_BASE_OS_RAVEN
Bug: 155105803
Change-Id: I79f963805e5f96c05c3c388a4b0b70be30f9ce8a
This commit is contained in:
Lokesh Kumar Goel 2024-04-06 00:05:53 +00:00
parent 3f6f5bdb38
commit efffce035f
2 changed files with 38 additions and 0 deletions

View file

@ -203,6 +203,25 @@ endif
PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.build.svn=$(TARGET_SVN)
# Set device family property for SMR builds
PRODUCT_PROPERTY_OVERRIDES += \
ro.build.device_family=O6R4B9
# Set build properties for SMR builds
ifeq ($(RELEASE_IS_SMR), true)
ifneq (,$(RELEASE_BASE_OS_ORIOLE))
PRODUCT_BASE_OS := $(RELEASE_BASE_OS_ORIOLE)
endif
endif
# Set build properties for EMR builds
ifeq ($(RELEASE_IS_EMR), true)
ifneq (,$(RELEASE_BASE_OS_ORIOLE))
PRODUCT_PROPERTY_OVERRIDES += \
ro.build.version.emergency_base_os=$(RELEASE_BASE_OS_ORIOLE)
endif
endif
# Set support hide display cutout feature
PRODUCT_PRODUCT_PROPERTIES += \
ro.support_hide_display_cutout=true