From dc1f6dadef1fab6e672a30721f6f4cbf1b117043 Mon Sep 17 00:00:00 2001 From: Akilesh Kailash Date: Wed, 23 Mar 2022 18:53:52 +0000 Subject: update_verifier: Verify blocks Check if the block verification was already done by snapuserd daemon - If so, skip the verification process. If daemon failed to verify the block, update_verifier will fallback and continue the verification. Bug: 193863442 Test: OTA Signed-off-by: Akilesh Kailash Change-Id: I18946fb730376f19cce0738bd6765d5f5d0248b6 --- update_verifier/include/update_verifier/update_verifier.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'update_verifier/include') diff --git a/update_verifier/include/update_verifier/update_verifier.h b/update_verifier/include/update_verifier/update_verifier.h index 4c64b1ea1..0cccc9075 100644 --- a/update_verifier/include/update_verifier/update_verifier.h +++ b/update_verifier/include/update_verifier/update_verifier.h @@ -21,6 +21,7 @@ #include #include +#include #include "otautil/rangeset.h" // The update verifier performs verification upon the first boot to a new slot on A/B devices. @@ -68,4 +69,8 @@ class UpdateVerifier { // The function to read the device property; default value: android::base::GetProperty() std::function property_reader_; + + // Check if snapuserd daemon has already completed the update verification + // Applicable only for VABC with userspace snapshots + bool CheckVerificationStatus(); }; -- cgit v1.2.3