aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-01 02:52:07 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-01 03:49:46 +0000
commitd17da05e82f8ab06c34d9d92d1d37749e2e4259e (patch)
treead839c6f675c6f6322e3fad52834ed7ae0bcb135
parent4699736de727af9be51ba45db37d72e2e3c23b56 (diff)
parent02746dd9f6a1bc390835f4294fa00931b112d289 (diff)
downloadbuild-d17da05e82f8ab06c34d9d92d1d37749e2e4259e.tar.gz
Make change and version bump to aml_wif_331710000 for mainline module file: None
Snap for 9665772 from 02746dd9f6a1bc390835f4294fa00931b112d289 to mainline-wifi-release Change-Id: Ic7e18aceae642fde87b413309a8f5aebe612c5a2
-rw-r--r--core/build_id.mk2
-rw-r--r--core/version_defaults.mk2
-rw-r--r--tools/releasetools/common.py20
3 files changed, 17 insertions, 7 deletions
diff --git a/core/build_id.mk b/core/build_id.mk
index 68bfb2eff2..b06e3bdec7 100644
--- a/core/build_id.mk
+++ b/core/build_id.mk
@@ -18,4 +18,4 @@
# (like "CRB01"). It must be a single word, and is
# capitalized by convention.
-BUILD_ID=331613000
+BUILD_ID=331710000
diff --git a/core/version_defaults.mk b/core/version_defaults.mk
index 8ff52bef57..649032b60f 100644
--- a/core/version_defaults.mk
+++ b/core/version_defaults.mk
@@ -103,7 +103,7 @@ ifndef PLATFORM_SECURITY_PATCH
# It must be of the form "YYYY-MM-DD" on production devices.
# It must match one of the Android Security Patch Level strings of the Public Security Bulletins.
# If there is no $PLATFORM_SECURITY_PATCH set, keep it empty.
- PLATFORM_SECURITY_PATCH := 2023-03-01
+ PLATFORM_SECURITY_PATCH := 2023-04-01
endif
include $(BUILD_SYSTEM)/version_util.mk
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py
index 418d8daa85..ec49b0d36f 100644
--- a/tools/releasetools/common.py
+++ b/tools/releasetools/common.py
@@ -2309,12 +2309,22 @@ def GetMinSdkVersionInt(apk_name, codename_to_api_level_map):
try:
return int(version)
except ValueError:
- # Not a decimal number. Codename?
- if version in codename_to_api_level_map:
- return codename_to_api_level_map[version]
+ # Not a decimal number.
+ #
+ # It could be either a straight codename, e.g.
+ # UpsideDownCake
+ #
+ # Or a codename with API fingerprint SHA, e.g.
+ # UpsideDownCake.e7d3947f14eb9dc4fec25ff6c5f8563e
+ #
+ # Extract the codename and try and map it to a version number.
+ split = version.split(".")
+ codename = split[0]
+ if codename in codename_to_api_level_map:
+ return codename_to_api_level_map[codename]
raise ExternalError(
- "Unknown minSdkVersion: '{}'. Known codenames: {}".format(
- version, codename_to_api_level_map))
+ "Unknown codename: '{}' from minSdkVersion: '{}'. Known codenames: {}".format(
+ codename, version, codename_to_api_level_map))
def SignFile(input_name, output_name, key, password, min_api_level=None,