Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 880e4432 authored by Iavor-Valentin Iftime's avatar Iavor-Valentin Iftime
Browse files

Copy vendor & odm .map files when using vendor_otatools

  Copy IMAGES/vendor.map and IMAGES/odm.map files when building vendor images
using vendor otatools. Fixes validate_target_files failure.

Bug: 220126689
Bug: 186097910

Test: sign_target_files_apks \
        --vendor_otatools=otatools_vendor_dir \
	--vendor_partitions=vendor,odm \
	merged-target_files.zip \
	signed-target_files.zip

Change-Id: Iaf904c90761b3830cf81af2561695c81bfc6c70d
parent ce8629fd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1341,8 +1341,10 @@ def BuildVendorPartitions(output_zip_path):
      output_zip_path, "a", compression=zipfile.ZIP_DEFLATED,
      allowZip64=True) as output_zip:
    for p in OPTIONS.vendor_partitions:
      path = "IMAGES/{}.img".format(p)
      common.ZipWrite(output_zip, os.path.join(vendor_tempdir, path), path)
      img_file_path = "IMAGES/{}.img".format(p)
      map_file_path = "IMAGES/{}.map".format(p)
      common.ZipWrite(output_zip, os.path.join(vendor_tempdir, img_file_path), img_file_path)
      common.ZipWrite(output_zip, os.path.join(vendor_tempdir, map_file_path), map_file_path)


def main(argv):