Merge "Removing N from PLATFORM_VERSION_ALL_CODENAMES" into nyc-dev
diff --git a/core/product.mk b/core/product.mk
index 5b6a86c..94cc2e3 100644
--- a/core/product.mk
+++ b/core/product.mk
@@ -122,6 +122,7 @@
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 c0a1a9d..ed38bc8 100644
--- a/core/product_config.mk
+++ b/core/product_config.mk
@@ -351,6 +351,12 @@
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
diff --git a/core/version_defaults.mk b/core/version_defaults.mk
index 8cbba5a..856d3c2 100644
--- a/core/version_defaults.mk
+++ b/core/version_defaults.mk
@@ -43,7 +43,7 @@
# which is the version that we reveal to the end user.
# Update this value when the platform version changes (rather
# than overriding it somewhere else). Can be an arbitrary string.
- PLATFORM_VERSION := N
+ PLATFORM_VERSION := 7.0
endif
ifeq "" "$(PLATFORM_SDK_VERSION)"