aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustav Sennton <gsennton@google.com>2016-05-27 14:07:54 +0100
committerGustav Sennton <gsennton@google.com>2016-06-03 09:11:34 +0000
commit81ee18670d9c0745aabc2453e049142269504e2d (patch)
tree53fff01f2725d18f6595c530b92774d62cc448be
parent888a6238810b4c3c00108cb92f9755e74acd9ecf (diff)
downloadbuild-81ee18670d9c0745aabc2453e049142269504e2d.tar.gz
Add variable PRODUCT_SHIPPING_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. Bug: 26381401 Change-Id: I9dfeaf423146c35f57e69ac26c27e8a9e205bc4f
-rw-r--r--core/product.mk1
-rw-r--r--core/product_config.mk6
2 files changed, 7 insertions, 0 deletions
diff --git a/core/product.mk b/core/product.mk
index 5b6a86c8e9..94cc2e390a 100644
--- a/core/product.mk
+++ b/core/product.mk
@@ -122,6 +122,7 @@ _product_var_list := \
PRODUCT_DEX_PREOPT_BOOT_FLAGS \
PRODUCT_SYSTEM_BASE_FS_PATH \
PRODUCT_VENDOR_BASE_FS_PATH \
+ PRODUCT_SHIPPING_API_LEVEL \
diff --git a/core/product_config.mk b/core/product_config.mk
index c0a1a9d6d4..ed38bc8fbf 100644
--- a/core/product_config.mk
+++ b/core/product_config.mk
@@ -351,6 +351,12 @@ PRODUCT_COPY_FILES := \
PRODUCT_PROPERTY_OVERRIDES := \
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_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
+
# A list of property assignments, like "key = value", with zero or more
# whitespace characters on either side of the '='.
# used for adding properties to default.prop