Commit Graph

4 Commits

Author SHA1 Message Date
Alan Stokes 6472ccd6e5 Migrate to Rust 2021 edition
I only wanted this in one place, but thought we might as well do it
all in one go.

In a couple of places I added an explicit edition instead of using the
default (whatever that is).

See https://doc.rust-lang.org/edition-guide/rust-2021/index.html.

Test: find . -name "Android.bp" -type f|xargs grep edition | grep -v 2021
Test: atest ComposHostTestCases MicrodroidHostTestCases
Change-Id: I4de050078b303cc5614d230e0d36d5454d60a807
2022-08-31 14:40:53 +01:00
Alice Wang 3356d6da92 Add util methods to get payload vbmeta image hash
The methods will be used later to build avmdtool.

Test: libapexutil_rust.test
Change-Id: I28bde2f57cb2c4e05f4cd4be5abf52cb6f788003
2022-07-18 11:28:22 +00:00
Andrew Scull 381272544b Extract library for VBMeta image handling
The APEX handling library included VBMeta image verification and parsing
but split this out to its own library so that it can be used by other
components too. The new library hides the libavb FFI to provide a safe
interface.

The library is not complete, it only knows about hashtree descriptors
and its root digest, but other aspects can be exposed as there is need
for them.

Test: atest libvbmeta_rust.test
Test: atest libapexutil_rust.test
Bug: 234564414
Change-Id: Ie176b816f63d2ff7f75deab6c07e1f9bb2e54594
2022-06-23 12:32:57 +00:00
Andrew Scull 11638791c0 Move APEX handling to a library
Make a library for APEX handling using the microdroid_manager logic as
the basis. Other components are going to need to be able to extract the
keys from APEXs so make the logic reusable and available to host tools.

Test: atest microdroid_manager_test
Test: atest libapexutil_rust.test
Change-Id: I36abf21b59b67046b1464bf47f7be40186926410
2022-04-29 12:15:29 +00:00