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
David Brazdil 5f7c3c72c4 Move AVF tests to avf-pre/postsubmit test group
AVF presubmit test config currently runs all tests in the 'presubmit'
group. However, in presubmit the test configs are invoked with all
TEST_MAPPING paths from all affected CLs. Our test config can therefore
run tests from TEST_MAPPINGs outside of the Virtualization repo.

To work around this problem, move all Virtualization tests to
'avf-presubmit' group. Test config running in presubmit will still be
invoked with TEST_MAPPINGs from various repos but only our tests will
match the group.

Rename the postsubmit group to 'avf-postsubmit' for consistency.

Bug: 236755822
Test: atest --test-mapping packages/modules/Virtualization:avf-presubmit
Test: atest --test-mapping packages/modules/Virtualization:avf-postsubmit
Change-Id: I7be5781bef4b6e060a69724c7b4256423adc649c
2022-08-19 15:40:57 +00: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