Merge "Use misc_info.txt to check for VABC"

This commit is contained in:
Treehugger Robot
2023-05-01 22:30:19 +00:00
committed by Gerrit Code Review

View File

@@ -450,10 +450,7 @@ class BuildInfo(object):
@property @property
def is_vabc(self): def is_vabc(self):
vendor_prop = self.info_dict.get("vendor.build.prop") return self.info_dict.get("virtual_ab_compression") == "true"
vabc_enabled = vendor_prop and \
vendor_prop.GetProp("ro.virtual_ab.compression.enabled") == "true"
return vabc_enabled
@property @property
def is_android_r(self): def is_android_r(self):
@@ -1396,7 +1393,8 @@ def RunHostInitVerifier(product_out, partition_map):
def AppendAVBSigningArgs(cmd, partition): def AppendAVBSigningArgs(cmd, partition):
"""Append signing arguments for avbtool.""" """Append signing arguments for avbtool."""
# e.g., "--key path/to/signing_key --algorithm SHA256_RSA4096" # e.g., "--key path/to/signing_key --algorithm SHA256_RSA4096"
key_path = ResolveAVBSigningPathArgs(OPTIONS.info_dict.get("avb_" + partition + "_key_path")) key_path = ResolveAVBSigningPathArgs(
OPTIONS.info_dict.get("avb_" + partition + "_key_path"))
algorithm = OPTIONS.info_dict.get("avb_" + partition + "_algorithm") algorithm = OPTIONS.info_dict.get("avb_" + partition + "_algorithm")
if key_path and algorithm: if key_path and algorithm:
cmd.extend(["--key", key_path, "--algorithm", algorithm]) cmd.extend(["--key", key_path, "--algorithm", algorithm])