Disable verity for VABC updates on android R

Bug: 230277030
Test: th
Change-Id: I2872c490c852fb7d3784721e191ece80b4b1fd58
This commit is contained in:
Kelvin Zhang
2022-05-04 16:44:52 -07:00
parent c01930f7d7
commit a9a87ec204
2 changed files with 13 additions and 0 deletions

View File

@@ -454,6 +454,11 @@ class BuildInfo(object):
vendor_prop.GetProp("ro.virtual_ab.compression.enabled") == "true"
return vabc_enabled
@property
def is_android_r(self):
system_prop = self.info_dict.get("system.build.prop")
return system_prop and system_prop.GetProp("ro.build.version.release") == "11"
@property
def is_vabc_xor(self):
vendor_prop = self.info_dict.get("vendor.build.prop")