[getService] Retry get_interface in keystore2
This cl retries to the get_interface function in keystore2 when
it connects to the KeyMint TA.
This is needed because when KeyMint TA runs in VM, it can take
several retries for the host to connect to the Trusty VM.
A timeout longer than the 5-second timeout in getService is
needed to handle this.
Bug: 355194622
Test: CF is gets booted with KeyMint TA in VM
Change-Id: I3b8a2aee77ad2e6111239898f165bc5bfd3ad479
diff --git a/keystore2/Android.bp b/keystore2/Android.bp
index 28bdfea..c482e84 100644
--- a/keystore2/Android.bp
+++ b/keystore2/Android.bp
@@ -30,7 +30,10 @@
"keystore2_use_latest_aidl_rust",
"structured_log_rust_defaults",
],
-
+ cfgs: select(release_flag("RELEASE_AVF_ENABLE_EARLY_VM"), {
+ true: ["early_vm"],
+ default: [],
+ }),
rustlibs: [
"android.hardware.security.rkp-V3-rust",
"android.hardware.security.secureclock-V1-rust",