Skip to content

Commit e593e5c

Browse files
author
Dianne Hackborn
committed
Fix issie #23116383: Include security patch level in Settings
Change-Id: I46303c064d1365781a2c8a05bd6087518afb2aec
1 parent 38ffb0c commit e593e5c

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

CleanSpec.mk

+2
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)
369369
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/*)
370370
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/*)
371371

372+
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)
373+
372374
# ************************************************
373375
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
374376
# ************************************************

core/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ endif
204204
BUILD_DISPLAY_ID="$(BUILD_DISPLAY_ID)" \
205205
BUILD_NUMBER="$(BUILD_NUMBER)" \
206206
PLATFORM_VERSION="$(PLATFORM_VERSION)" \
207+
PLATFORM_SECURITY_PATCH="$(PLATFORM_SECURITY_PATCH)" \
208+
PLATFORM_BASE_OS="$(PLATFORM_BASE_OS)" \
207209
PLATFORM_SDK_VERSION="$(PLATFORM_SDK_VERSION)" \
208210
PLATFORM_PREVIEW_SDK_VERSION="$(PLATFORM_PREVIEW_SDK_VERSION)" \
209211
PLATFORM_VERSION_CODENAME="$(PLATFORM_VERSION_CODENAME)" \

core/version_defaults.mk

+17
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# DEFAULT_APP_TARGET_SDK
2525
# BUILD_ID
2626
# BUILD_NUMBER
27+
# SECURITY_PATCH
2728
#
2829

2930
# Look for an optional file containing overrides of the defaults,
@@ -97,6 +98,22 @@ ifeq "" "$(DEFAULT_APP_TARGET_SDK)"
9798
endif
9899
endif
99100

101+
ifeq "" "$(PLATFORM_SECURITY_PATCH)"
102+
# Used to indicate the security patch that has been applied to the device.
103+
# Can be an arbitrary string, but must be a single word.
104+
#
105+
# If there is no $PLATFORM_SECURITY_PATCH set, keep it empty.
106+
PLATFORM_SECURITY_PATCH :=
107+
endif
108+
109+
ifeq "" "$(PLATFORM_BASE_OS)"
110+
# Used to indicate the base os applied to the device.
111+
# Can be an arbitrary string, but must be a single word.
112+
#
113+
# If there is no $PLATFORM_BASE_OS set, keep it empty.
114+
PLATFORM_BASE_OS :=
115+
endif
116+
100117
ifeq "" "$(BUILD_ID)"
101118
# Used to signify special builds. E.g., branches and/or releases,
102119
# like "M5-RC7". Can be an arbitrary string, but must be a single

tools/buildinfo.sh

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
1111
echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME"
1212
echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES"
1313
echo "ro.build.version.release=$PLATFORM_VERSION"
14+
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
15+
echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
1416
echo "ro.build.date=`date`"
1517
echo "ro.build.date.utc=`date +%s`"
1618
echo "ro.build.type=$TARGET_BUILD_TYPE"

0 commit comments

Comments
 (0)