Verify the package compatibility with libvintf.

verify_package_compatibility() is added to parse the compatibility entry
(compatibility.zip) in a given OTA package. If entry is present, the
information is sent to libvintf to check the compatibility.

This CL doesn't actually call libvintf, since the API there is not
available yet.

Bug: 36597505
Test: Doesn't break the install with existing packages (i.e. w/o the
      compatibility entry).
Test: recovery_component_test
Change-Id: I3903ffa5f6ba33a5c0d761602ade6290c6752596
This commit is contained in:
Tao Bao
2017-04-12 14:52:00 -07:00
parent 5d9fb40ef7
commit 62e0bc7586
6 changed files with 159 additions and 5 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ enum ErrorCode {
kLowBattery = 20,
kZipVerificationFailure,
kZipOpenFailure,
kBootreasonInBlacklist
kBootreasonInBlacklist,
kPackageCompatibilityFailure,
};
enum CauseCode {