Prevent VABC from being disabled on release-key builds

VABC is mandated now, and plain VAB will be unsupported later.

Test: th
Change-Id: Iad19433c06b25246d4f7bffe5599035836e36076
This commit is contained in:
Kelvin Zhang
2023-09-27 09:33:52 -07:00
parent 0fda62973b
commit 2f9a9ae64b
2 changed files with 9 additions and 1 deletions

View File

@@ -449,6 +449,11 @@ class BuildInfo(object):
system_prop = self.info_dict.get("system.build.prop")
return system_prop and system_prop.GetProp("ro.build.version.release") == "11"
@property
def is_release_key(self):
system_prop = self.info_dict.get("build.prop")
return system_prop and system_prop.GetProp("ro.build.tags") == "release-key"
@property
def vabc_compression_param(self):
return self.get("virtual_ab_compression_method", "")