Lines Matching refs:OPTIONS
24 from common import OPTIONS
39 partition_src = common.GetUserImage(name, OPTIONS.source_tmp, source_zip,
45 partition_tgt = common.GetUserImage(name, OPTIONS.target_tmp, target_zip,
83 tgt = common.GetUserImage(partition, OPTIONS.input_tmp, target_zip,
120 target_info = common.BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
128 if target_info.oem_props and not OPTIONS.oem_no_mount:
133 if not OPTIONS.no_signing:
146 input_tmp=OPTIONS.input_tmp,
148 info_dict=OPTIONS.info_dict)
150 assert HasRecoveryPatch(input_zip, info_dict=OPTIONS.info_dict)
157 target_info.WriteDeviceAssertions(script, OPTIONS.oem_no_mount)
186 OPTIONS.input_tmp, "RECOVERY")
187 if OPTIONS.two_step:
219 if OPTIONS.wipe_user_data:
228 info_dict=OPTIONS.info_dict,
232 write_verify_script=OPTIONS.verify)
237 write_verify_script=OPTIONS.verify)
239 CheckVintfIfTrebleEnabled(OPTIONS.input_tmp, target_info)
242 "boot.img", "boot.img", OPTIONS.input_tmp, "BOOT")
251 if OPTIONS.extra_script is not None:
252 script.AppendExtra(OPTIONS.extra_script)
256 if OPTIONS.wipe_user_data:
260 if OPTIONS.two_step:
278 script.AddToZip(input_zip, output_zip, input_path=OPTIONS.updater_binary)
292 target_info = common.BuildInfo(OPTIONS.target_info_dict, OPTIONS.oem_dicts)
293 source_info = common.BuildInfo(OPTIONS.source_info_dict, OPTIONS.oem_dicts)
305 if not OPTIONS.oem_no_mount:
310 if not OPTIONS.no_signing:
321 source_tmp=OPTIONS.source_tmp,
324 target_tmp=OPTIONS.target_tmp,
331 "/tmp/boot.img", "boot.img", OPTIONS.source_tmp, "BOOT", source_info)
333 "/tmp/boot.img", "boot.img", OPTIONS.target_tmp, "BOOT", target_info)
334 updating_boot = (not OPTIONS.two_step and
338 "/tmp/recovery.img", "recovery.img", OPTIONS.target_tmp, "RECOVERY")
346 CheckVintfIfTrebleEnabled(OPTIONS.target_tmp, target_info)
349 target_info.WriteDeviceAssertions(script, OPTIONS.oem_no_mount)
374 if OPTIONS.two_step:
446 if OPTIONS.two_step:
466 if OPTIONS.source_info_dict.get("use_dynamic_partitions") == "true":
467 if OPTIONS.target_info_dict.get("use_dynamic_partitions") != "true":
471 info_dict=OPTIONS.target_info_dict,
472 source_info_dict=OPTIONS.source_info_dict,
476 script, output_zip, write_verify_script=OPTIONS.verify)
481 write_verify_script=OPTIONS.verify)
483 if OPTIONS.two_step:
488 if not OPTIONS.two_step:
512 if OPTIONS.extra_script is not None:
513 script.AppendExtra(OPTIONS.extra_script)
515 if OPTIONS.wipe_user_data:
519 if OPTIONS.two_step:
529 if OPTIONS.downgrade:
530 script.AddToZip(source_zip, output_zip, input_path=OPTIONS.updater_binary)
532 script.AddToZip(target_zip, output_zip, input_path=OPTIONS.updater_binary)
549 if OPTIONS.info_dict.get("no_recovery") == "true":
554 cache_size = OPTIONS.info_dict.get("cache_size")
557 OPTIONS.cache_size = cache_size
559 if OPTIONS.extra_script is not None:
560 with open(OPTIONS.extra_script) as fp:
561 OPTIONS.extra_script = fp.read()
563 if OPTIONS.extracted_input is not None:
564 OPTIONS.input_tmp = OPTIONS.extracted_input
567 OPTIONS.input_tmp = common.UnzipTemp(target_file, UNZIP_PATTERN)
568 OPTIONS.target_tmp = OPTIONS.input_tmp
575 if OPTIONS.device_specific is None:
576 from_input = os.path.join(OPTIONS.input_tmp, "META", "releasetools.py")
579 OPTIONS.device_specific = from_input
581 OPTIONS.device_specific = OPTIONS.info_dict.get("tool_extensions")
583 if OPTIONS.device_specific is not None:
584 OPTIONS.device_specific = os.path.abspath(OPTIONS.device_specific)
596 OPTIONS.source_tmp = common.UnzipTemp(
597 OPTIONS.incremental_source, UNZIP_PATTERN)
657 OPTIONS.input_tmp, "OTA", recovery_two_step_img_name)