[API] Wrap raw binder_rpc_unstable calls in vm_payload
Bug: 243513370
Test: atest MicrodroidTests
Change-Id: Idb1885a7c39080fd21fa6968e8bf062d935317fb
diff --git a/tests/testapk/src/native/testbinary.cpp b/tests/testapk/src/native/testbinary.cpp
index 5d6ca8b..d57d224 100644
--- a/tests/testapk/src/native/testbinary.cpp
+++ b/tests/testapk/src/native/testbinary.cpp
@@ -30,7 +30,6 @@
#include <vm_main.h>
#include <vm_payload.h>
-#include <binder_rpc_unstable.hpp>
#include <string>
using android::base::ErrnoError;
@@ -122,8 +121,8 @@
abort();
}
};
- if (!RunVsockRpcServerCallback(testService->asBinder().get(), testService->SERVICE_PORT,
- callback, nullptr)) {
+ if (!AVmPayload_runVsockRpcServer(testService->asBinder().get(), testService->SERVICE_PORT,
+ callback, nullptr)) {
return Error() << "RPC Server failed to run";
}