diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py index 936ef888dc2b9dd8cb035a4f3f2f4412c39fb90d..d262db963a85bc45b5b2377ca7aaaef201f95c59 100755 --- a/tools/releasetools/sign_target_files_apks.py +++ b/tools/releasetools/sign_target_files_apks.py @@ -520,7 +520,7 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info, for info in input_tf_zip.infolist(): filename = info.filename - if filename.startswith("IMAGES/"): + if filename.startswith("IMAGES/") and not filename.endswith("vendor.img"): continue # Skip OTA-specific images (e.g. split super images), which will be @@ -1404,7 +1404,7 @@ def main(argv): common.ZipClose(output_zip) # Skip building userdata.img and cache.img when signing the target files. - new_args = ["--is_signing"] + new_args = ["--is_signing", "--add_missing"] # add_img_to_target_files builds the system image from scratch, so the # recovery patch is guaranteed to be regenerated there. if OPTIONS.rebuild_recovery: