Lines Matching refs:info_dict
454 def AppendAssertions(script, info_dict, oem_dict=None):
455 oem_props = info_dict.get("oem_fingerprint_properties")
457 device = GetBuildProp("ro.product.device", info_dict)
482 def GetOemProperty(name, oem_props, oem_dict, info_dict):
485 return GetBuildProp(name, info_dict)
488 def CalculateFingerprint(oem_props, oem_dict, info_dict):
490 return GetBuildProp("ro.build.fingerprint", info_dict)
492 GetOemProperty("ro.product.brand", oem_props, oem_dict, info_dict),
493 GetOemProperty("ro.product.name", oem_props, oem_dict, info_dict),
494 GetOemProperty("ro.product.device", oem_props, oem_dict, info_dict),
495 GetBuildProp("ro.build.thumbprint", info_dict))
498 def GetImage(which, tmpdir, info_dict):
524 tmpdir, info_dict, block_list=mappath)
527 tmpdir, info_dict, block_list=mappath)
543 script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
545 oem_props = OPTIONS.info_dict.get("oem_fingerprint_properties")
546 recovery_mount_options = OPTIONS.info_dict.get("recovery_mount_options")
558 OPTIONS.info_dict),
560 OPTIONS.info_dict),
561 "post-timestamp": GetBuildProp("ro.build.date.utc", OPTIONS.info_dict),
566 input_version=OPTIONS.info_dict["recovery_api_version"],
571 info_dict=OPTIONS.info_dict)
579 ts = GetBuildProp("ro.build.date.utc", OPTIONS.info_dict)
580 ts_text = GetBuildProp("ro.build.date", OPTIONS.info_dict)
583 AppendAssertions(script, OPTIONS.info_dict, oem_dict)
609 if not OPTIONS.info_dict.get("multistage_support", None):
611 fs = OPTIONS.info_dict["fstab"]["/misc"]
628 oem_props, oem_dict, OPTIONS.info_dict))
641 if "selinux_fc" in OPTIONS.info_dict:
642 WritePolicyConfig(OPTIONS.info_dict["selinux_fc"], output_zip)
644 recovery_mount_options = OPTIONS.info_dict.get("recovery_mount_options")
654 system_tgt = GetImage("system", OPTIONS.input_tmp, OPTIONS.info_dict)
687 vendor_tgt = GetImage("vendor", OPTIONS.input_tmp, OPTIONS.info_dict)
702 common.CheckSize(boot_img.data, "boot.img", OPTIONS.info_dict)
763 def GetBuildProp(prop, info_dict):
764 """Return the fingerprint of the build of a given target-files info_dict."""
766 return info_dict.get("build.prop", {})[prop]
796 oem_props = OPTIONS.info_dict.get("oem_fingerprint_properties")
843 info_dict=OPTIONS.source_info_dict)
871 if OPTIONS.info_dict:
874 OPTIONS.info_dict.get("blockimgdiff_versions", "1").split(","))
1099 script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
1101 oem_props = OPTIONS.info_dict.get("oem_fingerprint_properties")
1102 recovery_mount_options = OPTIONS.info_dict.get(
1112 target_fp = CalculateFingerprint(oem_props, oem_dict, OPTIONS.info_dict)
1116 OPTIONS.info_dict),
1117 "post-timestamp": GetBuildProp("ro.build.date.utc", OPTIONS.info_dict),
1122 input_version=OPTIONS.info_dict["recovery_api_version"],
1127 info_dict=OPTIONS.info_dict)
1129 AppendAssertions(script, OPTIONS.info_dict, oem_dict)
1138 "/boot", OPTIONS.info_dict)
1147 "/recovery", OPTIONS.info_dict)
1152 system_tgt = GetImage("system", OPTIONS.input_tmp, OPTIONS.info_dict)
1158 vendor_tgt = GetImage("vendor", OPTIONS.input_tmp, OPTIONS.info_dict)
1178 OPTIONS.package_key = OPTIONS.info_dict.get(
1200 oem_props = OPTIONS.info_dict.get("oem_fingerprint_properties", None)
1210 OPTIONS.info_dict),
1212 OPTIONS.info_dict),
1214 OPTIONS.info_dict),
1215 "post-timestamp": GetBuildProp("ro.build.date.utc", OPTIONS.info_dict),
1319 if OPTIONS.info_dict.get("verity") == "true":
1486 oem_props = OPTIONS.info_dict.get("oem_fingerprint_properties")
1533 info_dict=OPTIONS.source_info_dict)
2004 OPTIONS.info_dict = common.LoadInfoDict(input_zip)
2007 ab_update = OPTIONS.info_dict.get("ab_update") == "true"
2011 OPTIONS.target_info_dict = OPTIONS.info_dict
2018 common.DumpInfoDict(OPTIONS.info_dict)
2039 OPTIONS.info_dict = common.LoadInfoDict(input_zip, OPTIONS.target_tmp)
2043 common.DumpInfoDict(OPTIONS.info_dict)
2058 OPTIONS.device_specific = OPTIONS.info_dict.get("tool_extensions", None)
2063 if OPTIONS.info_dict.get("no_recovery") == "true":
2070 OPTIONS.package_key = OPTIONS.info_dict.get(
2086 cache_size = OPTIONS.info_dict.get("cache_size", None)
2105 OPTIONS.target_info_dict = OPTIONS.info_dict