• Home
  • Raw
  • Download

Lines Matching refs:OPTIONS

254 OPTIONS = ota_utils.OPTIONS  variable
255 OPTIONS.verify = False
256 OPTIONS.patch_threshold = 0.95
257 OPTIONS.wipe_user_data = False
258 OPTIONS.extra_script = None
259 OPTIONS.worker_threads = multiprocessing.cpu_count() // 2
260 if OPTIONS.worker_threads == 0:
261 OPTIONS.worker_threads = 1
262 OPTIONS.two_step = False
263 OPTIONS.include_secondary = False
264 OPTIONS.block_based = True
265 OPTIONS.updater_binary = None
266 OPTIONS.oem_dicts = None
267 OPTIONS.oem_source = None
268 OPTIONS.oem_no_mount = False
269 OPTIONS.full_radio = False
270 OPTIONS.full_bootloader = False
272 OPTIONS.cache_size = None
273 OPTIONS.stash_threshold = 0.8
274 OPTIONS.log_diff = None
275 OPTIONS.payload_signer = None
276 OPTIONS.payload_signer_args = []
277 OPTIONS.payload_signer_maximum_signature_size = None
278 OPTIONS.extracted_input = None
279 OPTIONS.skip_postinstall = False
280 OPTIONS.skip_compatibility_check = False
281 OPTIONS.disable_fec_computation = False
282 OPTIONS.disable_verity_computation = False
283 OPTIONS.partial = None
284 OPTIONS.custom_images = {}
285 OPTIONS.disable_vabc = False
286 OPTIONS.spl_downgrade = False
287 OPTIONS.vabc_downgrade = False
323 if OPTIONS.payload_signer is None:
325 private_key = OPTIONS.package_key + OPTIONS.private_key_suffix
326 pw = OPTIONS.key_passwords[OPTIONS.package_key]
340 self.signer = OPTIONS.payload_signer
341 self.signer_args = OPTIONS.payload_signer_args
342 if OPTIONS.payload_signer_maximum_signature_size:
344 OPTIONS.payload_signer_maximum_signature_size)
393 if OPTIONS.verbose:
417 if OPTIONS.disable_fec_computation:
419 if OPTIONS.disable_verity_computation:
475 if OPTIONS.wipe_user_data:
1046 if not OPTIONS.no_signing:
1055 assert "ab_partitions" in OPTIONS.source_info_dict, \
1057 assert "ab_partitions" in OPTIONS.target_info_dict, \
1059 target_info = common.BuildInfo(OPTIONS.target_info_dict, OPTIONS.oem_dicts)
1060 source_info = common.BuildInfo(OPTIONS.source_info_dict, OPTIONS.oem_dicts)
1067 OPTIONS.disable_vabc = True
1070 assert "ab_partitions" in OPTIONS.info_dict, \
1072 target_info = common.BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
1077 OPTIONS.disable_vabc = True
1081 if OPTIONS.custom_images:
1083 target_file, OPTIONS.custom_images)
1085 if OPTIONS.retrofit_dynamic_partitions:
1089 elif OPTIONS.partial:
1091 OPTIONS.partial)
1093 elif OPTIONS.skip_postinstall:
1107 if OPTIONS.downgrade:
1118 if OPTIONS.disable_vabc:
1142 if OPTIONS.include_secondary:
1146 target_file, OPTIONS.skip_postinstall)
1205 OPTIONS.package_key = a
1207 OPTIONS.incremental_source = a
1209 OPTIONS.full_radio = True
1211 OPTIONS.full_bootloader = True
1213 OPTIONS.wipe_user_data = True
1215 OPTIONS.downgrade = True
1216 OPTIONS.wipe_user_data = True
1218 OPTIONS.downgrade = True
1220 OPTIONS.oem_source = a.split(',')
1222 OPTIONS.oem_no_mount = True
1224 OPTIONS.extra_script = a
1227 OPTIONS.worker_threads = int(a)
1232 OPTIONS.two_step = True
1234 OPTIONS.include_secondary = True
1236 OPTIONS.no_signing = True
1238 OPTIONS.verify = True
1240 OPTIONS.block_based = True
1242 OPTIONS.updater_binary = a
1245 OPTIONS.stash_threshold = float(a)
1250 OPTIONS.log_diff = a
1252 OPTIONS.payload_signer = a
1254 OPTIONS.payload_signer_args = shlex.split(a)
1256 OPTIONS.payload_signer_maximum_signature_size = a
1261 OPTIONS.payload_signer_maximum_signature_size = a
1263 OPTIONS.extracted_input = a
1265 OPTIONS.skip_postinstall = True
1267 OPTIONS.retrofit_dynamic_partitions = True
1269 OPTIONS.skip_compatibility_check = True
1271 OPTIONS.output_metadata_path = a
1273 OPTIONS.disable_fec_computation = True
1275 OPTIONS.disable_verity_computation = True
1277 OPTIONS.force_non_ab = True
1279 OPTIONS.boot_variable_file = a
1284 OPTIONS.partial = partitions
1287 OPTIONS.custom_images[custom_partition] = custom_image
1289 OPTIONS.disable_vabc = True
1291 OPTIONS.spl_downgrade = True
1292 OPTIONS.wipe_user_data = True
1294 OPTIONS.vabc_downgrade = True
1354 if OPTIONS.extracted_input is not None:
1355 OPTIONS.info_dict = common.LoadInfoDict(OPTIONS.extracted_input)
1357 OPTIONS.info_dict = ParseInfoDict(args[0])
1359 if OPTIONS.wipe_user_data:
1360 if not OPTIONS.vabc_downgrade:
1366 OPTIONS.disable_vabc = True
1370 if OPTIONS.incremental_source is None:
1378 common.DumpInfoDict(OPTIONS.info_dict)
1381 if OPTIONS.incremental_source is not None:
1382 OPTIONS.target_info_dict = OPTIONS.info_dict
1383 OPTIONS.source_info_dict = ParseInfoDict(OPTIONS.incremental_source)
1386 common.DumpInfoDict(OPTIONS.source_info_dict)
1388 if OPTIONS.partial:
1389 OPTIONS.info_dict['ab_partitions'] = \
1391 set(OPTIONS.info_dict['ab_partitions']) & set(OPTIONS.partial)
1393 if OPTIONS.source_info_dict:
1394 OPTIONS.source_info_dict['ab_partitions'] = \
1396 set(OPTIONS.source_info_dict['ab_partitions']) &
1397 set(OPTIONS.partial)
1401 OPTIONS.oem_dicts = _LoadOemDicts(OPTIONS.oem_source)
1405 if (OPTIONS.source_info_dict and
1406 OPTIONS.source_info_dict.get("use_dynamic_partitions") != "true" and
1407 OPTIONS.target_info_dict.get("use_dynamic_partitions") == "true"):
1408 if OPTIONS.target_info_dict.get("dynamic_partition_retrofit") != "true":
1414 OPTIONS.retrofit_dynamic_partitions = True
1417 if OPTIONS.retrofit_dynamic_partitions:
1418 OPTIONS.skip_postinstall = True
1420 ab_update = OPTIONS.info_dict.get("ab_update") == "true"
1421 allow_non_ab = OPTIONS.info_dict.get("allow_non_ab") == "true"
1422 if OPTIONS.force_non_ab:
1427 generate_ab = not OPTIONS.force_non_ab and ab_update
1432 if not OPTIONS.no_signing or generate_ab:
1433 if OPTIONS.package_key is None:
1434 OPTIONS.package_key = OPTIONS.info_dict.get(
1438 OPTIONS.key_passwords = common.GetKeyPasswords([OPTIONS.package_key])
1439 private_key_path = OPTIONS.package_key + OPTIONS.private_key_suffix
1447 if OPTIONS.source_info_dict:
1448 source_build_prop = OPTIONS.source_info_dict["build.prop"]
1449 target_build_prop = OPTIONS.target_info_dict["build.prop"]
1453 if is_spl_downgrade and not OPTIONS.spl_downgrade and not OPTIONS.downgrade:
1461 elif not is_spl_downgrade and OPTIONS.spl_downgrade:
1470 source_file=OPTIONS.incremental_source)
1476 source_file=OPTIONS.incremental_source)
1479 if OPTIONS.incremental_source is not None and OPTIONS.log_diff:
1484 OPTIONS.incremental_source, TARGET_DIFFING_UNZIP_PATTERN)
1486 with open(OPTIONS.log_diff, 'w') as out_file: