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
diff --git a/update_prebuilts/update_prebuilts.py b/update_prebuilts/update_prebuilts.py
index 4e17773..e0394ce 100755
--- a/update_prebuilts/update_prebuilts.py
+++ b/update_prebuilts/update_prebuilts.py
@@ -540,7 +540,14 @@
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' %