summaryrefslogtreecommitdiffstats
path: root/update_prebuilts
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2020-07-10 19:17:54 -0700
committerColin Cross <ccross@android.com>2020-07-10 20:11:27 -0700
commitd338d70251f561d83b95fee549e0148a35aebf37 (patch)
tree704f97935e3465d571ad880a923c72917597ff39 /update_prebuilts
parent7a4e7440a9474f89da558aaf53f8808071530987 (diff)
downloadplatform_prebuilts_sdk-d338d70251f561d83b95fee549e0148a35aebf37.tar.gz
platform_prebuilts_sdk-d338d70251f561d83b95fee549e0148a35aebf37.tar.bz2
platform_prebuilts_sdk-d338d70251f561d83b95fee549e0148a35aebf37.zip
Add api prebuilts used by lint
Add annotations.zip and api-versions.xml to prebuilts for use by lint in unbundled builds. Bug: 153485543 Test: m TARGET_BUILD_APPS=Gallery2 lint-check Change-Id: I1a62cdc31ae5c56ee5fbeefa34b69df2014c7bfb
Diffstat (limited to 'update_prebuilts')
-rwxr-xr-xupdate_prebuilts/update_prebuilts.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/update_prebuilts/update_prebuilts.py b/update_prebuilts/update_prebuilts.py
index 4e17773ad..e0394ce93 100755
--- a/update_prebuilts/update_prebuilts.py
+++ b/update_prebuilts/update_prebuilts.py
@@ -540,7 +540,14 @@ def update_framework(build_id, sdk_dir):
return False
with zipfile.ZipFile(artifact_path) as zipFile:
- for filename in ['android.jar', 'framework.aidl', 'uiautomator.jar', 'core-for-system-modules.jar']:
+ extra_files = [
+ 'android.jar',
+ 'framework.aidl',
+ 'uiautomator.jar',
+ 'core-for-system-modules.jar',
+ 'data/annotations.zip',
+ 'data/api-versions.xml']
+ for filename in extra_files:
matches = list(filter(lambda path: filename in path, zipFile.namelist()))
if len(matches) != 1:
print_e('Expected 1 file named \'%s\' in zip %s, found %d' %