diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-02 02:10:25 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-02 03:07:51 +0000 |
commit | 4b4b88434f705290e90c21fb3cce14164a1842ac (patch) | |
tree | ad839c6f675c6f6322e3fad52834ed7ae0bcb135 | |
parent | ee78fdb7226b39cab28ba8bf0b3c4ffee78399e0 (diff) | |
parent | 02746dd9f6a1bc390835f4294fa00931b112d289 (diff) | |
download | build-aml_net_331710000.tar.gz |
Make change and version bump to aml_net_331710000 for mainline module file: Noneaml_net_331710000
Snap for 9671667 from 02746dd9f6a1bc390835f4294fa00931b112d289 to mainline-networking-release
Change-Id: I8d9a3411093dafe56f1a4f67b589997a1174a318
-rw-r--r-- | core/build_id.mk | 2 | ||||
-rw-r--r-- | core/version_defaults.mk | 2 | ||||
-rw-r--r-- | tools/releasetools/common.py | 20 |
3 files changed, 17 insertions, 7 deletions
diff --git a/core/build_id.mk b/core/build_id.mk index aca1abbe59..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=331610000 +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, |