Add PLATFORM_DISPLAY_VERSION
Add PLATFORM_DISPLAY_VERSION to version_defaults.mk that will propagate to the ro.build.version.release_or_preview_display property and be shown as the Android version for preview releases by Settings. Bug: 221950960 Test: manual Change-Id: I697cc59f77f92aa98a8a2573662797e6d3bd2042
This commit is contained in:
@@ -262,6 +262,7 @@ $(gen_from_buildinfo_sh): $(INTERNAL_BUILD_ID_MAKEFILE) $(API_FINGERPRINT) | $(B
|
|||||||
BOARD_BUILD_SYSTEM_ROOT_IMAGE="$(BOARD_BUILD_SYSTEM_ROOT_IMAGE)" \
|
BOARD_BUILD_SYSTEM_ROOT_IMAGE="$(BOARD_BUILD_SYSTEM_ROOT_IMAGE)" \
|
||||||
BOARD_USE_VBMETA_DIGTEST_IN_FINGERPRINT="$(BOARD_USE_VBMETA_DIGTEST_IN_FINGERPRINT)" \
|
BOARD_USE_VBMETA_DIGTEST_IN_FINGERPRINT="$(BOARD_USE_VBMETA_DIGTEST_IN_FINGERPRINT)" \
|
||||||
PLATFORM_VERSION="$(PLATFORM_VERSION)" \
|
PLATFORM_VERSION="$(PLATFORM_VERSION)" \
|
||||||
|
PLATFORM_DISPLAY_VERSION="$(PLATFORM_DISPLAY_VERSION)" \
|
||||||
PLATFORM_VERSION_LAST_STABLE="$(PLATFORM_VERSION_LAST_STABLE)" \
|
PLATFORM_VERSION_LAST_STABLE="$(PLATFORM_VERSION_LAST_STABLE)" \
|
||||||
PLATFORM_SECURITY_PATCH="$(PLATFORM_SECURITY_PATCH)" \
|
PLATFORM_SECURITY_PATCH="$(PLATFORM_SECURITY_PATCH)" \
|
||||||
PLATFORM_BASE_OS="$(PLATFORM_BASE_OS)" \
|
PLATFORM_BASE_OS="$(PLATFORM_BASE_OS)" \
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#
|
#
|
||||||
# Guarantees that the following are defined:
|
# Guarantees that the following are defined:
|
||||||
# PLATFORM_VERSION
|
# PLATFORM_VERSION
|
||||||
|
# PLATFORM_DISPLAY_VERSION
|
||||||
# PLATFORM_SDK_VERSION
|
# PLATFORM_SDK_VERSION
|
||||||
# PLATFORM_VERSION_CODENAME
|
# PLATFORM_VERSION_CODENAME
|
||||||
# DEFAULT_APP_TARGET_SDK
|
# DEFAULT_APP_TARGET_SDK
|
||||||
@@ -54,6 +55,11 @@ PLATFORM_VERSION_LAST_STABLE := 12
|
|||||||
# release build. If this is a final release build, it is simply "REL".
|
# release build. If this is a final release build, it is simply "REL".
|
||||||
PLATFORM_VERSION_CODENAME.TP1A := Tiramisu
|
PLATFORM_VERSION_CODENAME.TP1A := Tiramisu
|
||||||
|
|
||||||
|
# This is the user-visible version. In a final release build it should
|
||||||
|
# be empty to use PLATFORM_VERSION as the user-visible version. For
|
||||||
|
# a preview release it can be set to a user-friendly value like `12 Preview 1`
|
||||||
|
PLATFORM_DISPLAY_VERSION :=
|
||||||
|
|
||||||
ifndef PLATFORM_SDK_VERSION
|
ifndef PLATFORM_SDK_VERSION
|
||||||
# This is the canonical definition of the SDK version, which defines
|
# This is the canonical definition of the SDK version, which defines
|
||||||
# the set of APIs and functionality available in the platform. It
|
# the set of APIs and functionality available in the platform. It
|
||||||
|
@@ -108,6 +108,10 @@ ifndef PLATFORM_VERSION
|
|||||||
endif
|
endif
|
||||||
.KATI_READONLY := PLATFORM_VERSION
|
.KATI_READONLY := PLATFORM_VERSION
|
||||||
|
|
||||||
|
ifndef PLATFORM_DISPLAY_VERSION
|
||||||
|
PLATFORM_DISPLAY_VERSION := $(PLATFORM_VERSION)
|
||||||
|
endif
|
||||||
|
.KATI_READONLY := PLATFORM_DISPLAY_VERSION
|
||||||
|
|
||||||
ifeq (REL,$(PLATFORM_VERSION_CODENAME))
|
ifeq (REL,$(PLATFORM_VERSION_CODENAME))
|
||||||
PLATFORM_PREVIEW_SDK_VERSION := 0
|
PLATFORM_PREVIEW_SDK_VERSION := 0
|
||||||
|
@@ -19,6 +19,7 @@ echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES"
|
|||||||
echo "ro.build.version.known_codenames=$PLATFORM_VERSION_KNOWN_CODENAMES"
|
echo "ro.build.version.known_codenames=$PLATFORM_VERSION_KNOWN_CODENAMES"
|
||||||
echo "ro.build.version.release=$PLATFORM_VERSION_LAST_STABLE"
|
echo "ro.build.version.release=$PLATFORM_VERSION_LAST_STABLE"
|
||||||
echo "ro.build.version.release_or_codename=$PLATFORM_VERSION"
|
echo "ro.build.version.release_or_codename=$PLATFORM_VERSION"
|
||||||
|
echo "ro.build.version.release_or_preview_display=$PLATFORM_DISPLAY_VERSION"
|
||||||
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
|
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
|
||||||
echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
|
echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
|
||||||
echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION"
|
echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION"
|
||||||
|
Reference in New Issue
Block a user