Loading tools/releasetools/ota_from_target_files +13 −5 Original line number Diff line number Diff line Loading @@ -94,6 +94,7 @@ OPTIONS.extra_script = None OPTIONS.aslr_mode = True OPTIONS.worker_threads = 3 OPTIONS.two_step = False OPTIONS.no_signing = False def MostPopularKey(d, default): """Given a dict, return the key corresponding to the largest Loading Loading @@ -968,6 +969,8 @@ def main(argv): OPTIONS.worker_threads = int(a) elif o in ("-2", "--two_step"): OPTIONS.two_step = True elif o in ("--no_signing"): OPTIONS.no_signing = True else: return False return True Loading @@ -983,6 +986,7 @@ def main(argv): "worker_threads=", "aslr_mode=", "two_step", "no_signing", ], extra_option_handler=option_handler) Loading Loading @@ -1029,6 +1033,9 @@ def main(argv): if OPTIONS.device_specific is not None: OPTIONS.device_specific = os.path.abspath(OPTIONS.device_specific) if OPTIONS.no_signing: output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED) else: temp_zip_file = tempfile.NamedTemporaryFile() output_zip = zipfile.ZipFile(temp_zip_file, "w", compression=zipfile.ZIP_DEFLATED) Loading @@ -1055,6 +1062,7 @@ def main(argv): output_zip.close() if not OPTIONS.no_signing: SignOutput(temp_zip_file.name, args[1]) temp_zip_file.close() Loading Loading
tools/releasetools/ota_from_target_files +13 −5 Original line number Diff line number Diff line Loading @@ -94,6 +94,7 @@ OPTIONS.extra_script = None OPTIONS.aslr_mode = True OPTIONS.worker_threads = 3 OPTIONS.two_step = False OPTIONS.no_signing = False def MostPopularKey(d, default): """Given a dict, return the key corresponding to the largest Loading Loading @@ -968,6 +969,8 @@ def main(argv): OPTIONS.worker_threads = int(a) elif o in ("-2", "--two_step"): OPTIONS.two_step = True elif o in ("--no_signing"): OPTIONS.no_signing = True else: return False return True Loading @@ -983,6 +986,7 @@ def main(argv): "worker_threads=", "aslr_mode=", "two_step", "no_signing", ], extra_option_handler=option_handler) Loading Loading @@ -1029,6 +1033,9 @@ def main(argv): if OPTIONS.device_specific is not None: OPTIONS.device_specific = os.path.abspath(OPTIONS.device_specific) if OPTIONS.no_signing: output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED) else: temp_zip_file = tempfile.NamedTemporaryFile() output_zip = zipfile.ZipFile(temp_zip_file, "w", compression=zipfile.ZIP_DEFLATED) Loading @@ -1055,6 +1062,7 @@ def main(argv): output_zip.close() if not OPTIONS.no_signing: SignOutput(temp_zip_file.name, args[1]) temp_zip_file.close() Loading