[attestation] Add API to check AVF RKP Hal presence in VM Attestation
This cl adds a new API in VirtualMachineManager to check whether
remote attestation is supported on a device.
Since Remote Attestation is a strongly recommended feature for Android
V, the new API is needed to determine whether we should proceed with
the Remote Attestation CTS tests.
Bug: 329652894
Test: atest MicrodroidTests
Change-Id: I0941914e7a5f1a483705d3faf7091b47ada41b1f
diff --git a/virtualizationmanager/src/aidl.rs b/virtualizationmanager/src/aidl.rs
index ea05bdb..d0d3878 100644
--- a/virtualizationmanager/src/aidl.rs
+++ b/virtualizationmanager/src/aidl.rs
@@ -313,6 +313,11 @@
fn enableTestAttestation(&self) -> binder::Result<()> {
GLOBAL_SERVICE.enableTestAttestation()
}
+
+ fn isRemoteAttestationSupported(&self) -> binder::Result<bool> {
+ check_manage_access()?;
+ GLOBAL_SERVICE.isRemoteAttestationSupported()
+ }
}
impl VirtualizationService {