Merge "Migrate keystore2's Rust system library bindings to bionic."
diff --git a/authfs/src/file.rs b/authfs/src/file.rs
index 033dbd6..44d5000 100644
--- a/authfs/src/file.rs
+++ b/authfs/src/file.rs
@@ -35,7 +35,7 @@
new_spibinder(binder_rpc_unstable_bindgen::RpcClient(cid, RPC_SERVICE_PORT) as *mut AIBinder)
};
if let Some(ibinder) = ibinder {
- Ok(IVirtFdService::try_from(ibinder).map_err(|e| {
+ Ok(<dyn IVirtFdService>::try_from(ibinder).map_err(|e| {
io::Error::new(
io::ErrorKind::AddrNotAvailable,
format!("Cannot connect to RPC service: {}", e),
diff --git a/compos/src/pvm_exec.rs b/compos/src/pvm_exec.rs
index 987a198..03fbf72 100644
--- a/compos/src/pvm_exec.rs
+++ b/compos/src/pvm_exec.rs
@@ -57,7 +57,7 @@
new_spibinder(binder_rpc_unstable_bindgen::RpcClient(cid, VSOCK_PORT) as *mut AIBinder)
};
if let Some(ibinder) = ibinder {
- ICompService::try_from(ibinder).context("Cannot connect to RPC service")
+ <dyn ICompService>::try_from(ibinder).context("Cannot connect to RPC service")
} else {
bail!("Invalid raw AIBinder")
}
diff --git a/microdroid/Android.bp b/microdroid/Android.bp
index 5fb5ab4..a5b2898 100644
--- a/microdroid/Android.bp
+++ b/microdroid/Android.bp
@@ -5,6 +5,7 @@
microdroid_shell_and_utilities = [
"reboot",
"sh",
+ "strace",
"toolbox",
"toybox",
]
diff --git a/tests/hostside/helper/java/android/virt/test/VirtualizationTestCaseBase.java b/tests/hostside/helper/java/android/virt/test/VirtualizationTestCaseBase.java
index 4cb9dc0..988b1ad 100644
--- a/tests/hostside/helper/java/android/virt/test/VirtualizationTestCaseBase.java
+++ b/tests/hostside/helper/java/android/virt/test/VirtualizationTestCaseBase.java
@@ -273,7 +273,8 @@
disconnected = ret.equals("failed to connect to " + MICRODROID_SERIAL);
if (disconnected) {
// adb demands us to disconnect if the prior connection was a failure.
- runOnHost("adb", "disconnect", MICRODROID_SERIAL);
+ // b/194375443: this somtimes fails, thus 'try*'.
+ tryRunOnHost("adb", "disconnect", MICRODROID_SERIAL);
}
}