Skip to content

Commit a232f4d

Browse files
Zach Jangandi34
authored andcommitted
DO NOT MERGE - Backport of ag/748221 - Security Patch Level in Settings
CL#2/3 b/23946860 Change-Id: I42a2aaf26cf458d1775b11029789330cdd85b3a3
1 parent b34d556 commit a232f4d

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

core/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ $(INSTALLED_BUILD_PROP_TARGET): $(BUILDINFO_SH) $(INTERNAL_BUILD_ID_MAKEFILE) $(
181181
BUILD_DISPLAY_ID="$(BUILD_DISPLAY_ID)" \
182182
BUILD_NUMBER="$(BUILD_NUMBER)" \
183183
PLATFORM_VERSION="$(PLATFORM_VERSION)" \
184+
PLATFORM_SECURITY_PATCH="$(PLATFORM_SECURITY_PATCH)" \
184185
PLATFORM_SDK_VERSION="$(PLATFORM_SDK_VERSION)" \
185186
PLATFORM_VERSION_CODENAME="$(PLATFORM_VERSION_CODENAME)" \
186187
BUILD_VERSION_TAGS="$(BUILD_VERSION_TAGS)" \

core/version_defaults.mk

Lines changed: 9 additions & 0 deletions
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,
@@ -75,6 +76,14 @@ ifeq "" "$(DEFAULT_APP_TARGET_SDK)"
7576
endif
7677
endif
7778

79+
ifeq "" "$(PLATFORM_SECURITY_PATCH)"
80+
# Used to indicate the security patch that has been applied to the device.
81+
# Can be an arbitrary string, but must be a single word.
82+
#
83+
# If there is no $PLATFORM_SECURITY_PATCH set, keep it empty.
84+
PLATFORM_SECURITY_PATCH := 2015-11-01
85+
endif
86+
7887
ifeq "" "$(BUILD_ID)"
7988
# Used to signify special builds. E.g., branches and/or releases,
8089
# like "M5-RC7". Can be an arbitrary string, but must be a single

tools/buildinfo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ echo "ro.build.version.incremental=$BUILD_NUMBER"
99
echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION"
1010
echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME"
1111
echo "ro.build.version.release=$PLATFORM_VERSION"
12+
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
1213
echo "ro.build.date=`date`"
1314
echo "ro.build.date.utc=`date +%s`"
1415
echo "ro.build.type=$TARGET_BUILD_TYPE"

0 commit comments

Comments
 (0)