Add core-for-system-modules.jar to update_prebuilts.py
Fetch core-for-system-modules.jar when updating platform SDKs.
Bug: 117069453
Test: update_prebuilts.py -f 30 6441176
Change-Id: I621937adc6ffd7328ac1e605f4989562ed96c498
Merged-In: I621937adc6ffd7328ac1e605f4989562ed96c498
diff --git a/update_prebuilts/update_prebuilts.py b/update_prebuilts/update_prebuilts.py
index b30c173..582ca03 100755
--- a/update_prebuilts/update_prebuilts.py
+++ b/update_prebuilts/update_prebuilts.py
@@ -668,7 +668,7 @@
return False
with zipfile.ZipFile(artifact_path) as zipFile:
- for filename in ['android.jar', 'framework.aidl', 'uiautomator.jar']:
+ for filename in ['android.jar', 'framework.aidl', 'uiautomator.jar', 'core-for-system-modules.jar']:
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' %