Respect VABC Xor prop in ota_from_target_files
Test: generate ota on a non-vabc xor target, make sure it's not used Change-Id: Ibdbcfe3775c96848c37c7f580121583d4bd57fce
This commit is contained in:
@@ -448,6 +448,13 @@ class BuildInfo(object):
|
|||||||
vendor_prop.GetProp("ro.virtual_ab.compression.enabled") == "true"
|
vendor_prop.GetProp("ro.virtual_ab.compression.enabled") == "true"
|
||||||
return vabc_enabled
|
return vabc_enabled
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_vabc_xor(self):
|
||||||
|
vendor_prop = self.info_dict.get("vendor.build.prop")
|
||||||
|
vabc_xor_enabled = vendor_prop and \
|
||||||
|
vendor_prop.GetProp("ro.virtual_ab.compression.xor.enabled") == "true"
|
||||||
|
return vabc_xor_enabled
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def vendor_suppressed_vabc(self):
|
def vendor_suppressed_vabc(self):
|
||||||
vendor_prop = self.info_dict.get("vendor.build.prop")
|
vendor_prop = self.info_dict.get("vendor.build.prop")
|
||||||
|
@@ -1091,6 +1091,9 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
|
|||||||
if target_info.vendor_suppressed_vabc:
|
if target_info.vendor_suppressed_vabc:
|
||||||
logger.info("Vendor suppressed VABC. Disabling")
|
logger.info("Vendor suppressed VABC. Disabling")
|
||||||
OPTIONS.disable_vabc = True
|
OPTIONS.disable_vabc = True
|
||||||
|
if not target_info.is_vabc_xor or OPTIONS.disable_vabc:
|
||||||
|
logger.info("VABC XOR Not supported, disabling")
|
||||||
|
OPTIONS.enable_vabc_xor = False
|
||||||
additional_args = []
|
additional_args = []
|
||||||
|
|
||||||
# Prepare custom images.
|
# Prepare custom images.
|
||||||
|
Reference in New Issue
Block a user