Add variable PRODUCT_SHIPPING_API_LEVEL and make files with the
new read only product property ro.product.first_api_level. PRODUCT_SHIPPING_API_LEVEL declares which API level a device first shipped with. We use this variable to set a read-only property that can be used in CTS/GTS tests. Change-Id: If54202075d3b92ed380655cde8b3fc50c5ba73b3
This commit is contained in:
@@ -120,7 +120,7 @@ _product_var_list := \
|
|||||||
PRODUCT_DEX_PREOPT_MODULE_CONFIGS \
|
PRODUCT_DEX_PREOPT_MODULE_CONFIGS \
|
||||||
PRODUCT_DEX_PREOPT_DEFAULT_FLAGS \
|
PRODUCT_DEX_PREOPT_DEFAULT_FLAGS \
|
||||||
PRODUCT_DEX_PREOPT_BOOT_FLAGS \
|
PRODUCT_DEX_PREOPT_BOOT_FLAGS \
|
||||||
|
PRODUCT_SHIPPING_API_LEVEL \
|
||||||
|
|
||||||
define dump-product
|
define dump-product
|
||||||
$(info ==== $(1) ====)\
|
$(info ==== $(1) ====)\
|
||||||
|
@@ -355,6 +355,12 @@ PRODUCT_PROPERTY_OVERRIDES := \
|
|||||||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES := \
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES := \
|
||||||
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEFAULT_PROPERTY_OVERRIDES))
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEFAULT_PROPERTY_OVERRIDES))
|
||||||
|
|
||||||
|
PRODUCT_SHIPPING_API_LEVEL := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SHIPPING_API_LEVEL))
|
||||||
|
ifdef PRODUCT_SHIPPING_API_LEVEL
|
||||||
|
ADDITIONAL_BUILD_PROPERTIES += \
|
||||||
|
ro.product.first_api_level=$(PRODUCT_SHIPPING_API_LEVEL)
|
||||||
|
endif
|
||||||
|
|
||||||
# Should we use the default resources or add any product specific overlays
|
# Should we use the default resources or add any product specific overlays
|
||||||
PRODUCT_PACKAGE_OVERLAYS := \
|
PRODUCT_PACKAGE_OVERLAYS := \
|
||||||
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGE_OVERLAYS))
|
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGE_OVERLAYS))
|
||||||
|
3
target/product/product_launched_with_l.mk
Normal file
3
target/product/product_launched_with_l.mk
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#PRODUCT_SHIPPING_API_LEVEL indicates the first api level, device has been commercially launced on.
|
||||||
|
PRODUCT_SHIPPING_API_LEVEL := 21
|
||||||
|
|
2
target/product/product_launched_with_l_mr1.mk
Normal file
2
target/product/product_launched_with_l_mr1.mk
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#PRODUCT_SHIPPING_API_LEVEL indicates the first api level, device has been commercially launced on.
|
||||||
|
PRODUCT_SHIPPING_API_LEVEL := 22
|
2
target/product/product_launched_with_m.mk
Normal file
2
target/product/product_launched_with_m.mk
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#PRODUCT_SHIPPING_API_LEVEL indicates the first api level, device has been commercially launced on.
|
||||||
|
PRODUCT_SHIPPING_API_LEVEL := 23
|
2
target/product/product_launched_with_n.mk
Normal file
2
target/product/product_launched_with_n.mk
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#PRODUCT_SHIPPING_API_LEVEL indicates the first api level, device has been commercially launced on.
|
||||||
|
PRODUCT_SHIPPING_API_LEVEL := 24
|
Reference in New Issue
Block a user