Even though libapkverify doesn't do much verification for now, having
it in use would make CI detect errors in the future.
TODO:
- zipfuse should wait until APK is verified.
- boot should abort when verification fails.
Bug: 190343842
Test: MicrodroidHostTestCases
Change-Id: I221be1c7d9a0bfcd312593d3958f950311b67af5
apkverify doesn't need all zip features. ziputil provides zip_sections()
to discover the layout of a zip file.
Bug: 190343842
Test: cargo test
Change-Id: Ib6354828cebe819fd3f48265089815ccf29f18ea
`verify(apk)` is an entry for a Signature Verification of APK/APEX.
For now, it only parses signing block and does barely no verification
yet. Verification will be implemented in follow-up changes.
Cargo.toml is added for `cargo test`, but will be removed when
Android.bp is added.
Bug: 190343842
Test: cargo test
Change-Id: Ib95128e021e8da50a015d302c9c394a8b5a98957