# ADDITIONAL_<partition>_PROPERTIES are properties that are determined by the # build system itself. Don't let it be defined from outside of the core build # system like Android.mk or <product>.mk files.
_additional_prop_var_names := \
ADDITIONAL_SYSTEM_PROPERTIES \
ADDITIONAL_VENDOR_PROPERTIES \
ADDITIONAL_ODM_PROPERTIES \
ADDITIONAL_PRODUCT_PROPERTIES
$(foreach name, $(_additional_prop_var_names),\
$(if $($(name)),\
$(error $(name) must not set before here. $($(name)))\
,)\
$(eval $(name) :=)\
)
_additional_prop_var_names :=
ifdef PRODUCT_SHIPPING_VENDOR_API_LEVEL # PRODUCT_SHIPPING_VENDOR_API_LEVEL was used to set ro.vendor.api_level # manually for testing. To prevent using this variable for product release, # remove this variable and show an error message.
$(error PRODUCT_SHIPPING_VENDOR_API_LEVEL is not available. ro.vendor.api_level\
property must not be set manually) endif
# Vendors with GRF must define BOARD_SHIPPING_API_LEVEL for the vendor API level. # This must not be defined for the non-GRF devices. # The values of the GRF properties will be verified by post_process_props.py
ifdef BOARD_SHIPPING_API_LEVEL
ADDITIONAL_VENDOR_PROPERTIES += \
ro.board.first_api_level=$(BOARD_SHIPPING_API_LEVEL) endif
# Build system set BOARD_API_LEVEL to show the api level of the vendor API surface. # This must not be altered outside of build system.
ifdef BOARD_API_LEVEL
ADDITIONAL_VENDOR_PROPERTIES += \
ro.board.api_level?=$(BOARD_API_LEVEL)
ifdef BOARD_API_LEVEL_PROP_OVERRIDE # This must be used only for testing purpose. Product must not be released # with the modified api level value.
$(warning BOARD_API_LEVEL_PROP_OVERRIDE can be defined only for testing purpose)
ADDITIONAL_VENDOR_PROPERTIES += \
ro.board.api_level=$(BOARD_API_LEVEL_PROP_OVERRIDE) endif endif # RELEASE_BOARD_API_LEVEL_FROZEN is true when the vendor API surface is frozen.
ifdef RELEASE_BOARD_API_LEVEL_FROZEN
ADDITIONAL_VENDOR_PROPERTIES += \
ro.board.api_frozen=$(RELEASE_BOARD_API_LEVEL_FROZEN) endif
# Set build prop. This prop is read by ota_from_target_files when generating OTA, # to decide if VABC should be disabled. ifeq ($(BOARD_DONT_USE_VABC_OTA),true)
ADDITIONAL_VENDOR_PROPERTIES += \
ro.vendor.build.dont_use_vabc=true endif
# Add the 16K developer args if it is defined for the product. ifneq (,$(filter true,$(PRODUCT_16K_DEVELOPER_OPTION)))
ADDITIONAL_VENDOR_PROPERTIES += \
ro.product.build.16k_page.enabled=true \
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.