Move vm_payload to libs/libvm_payload

Bug: 352458998
Test: pass TH
Change-Id: Ibb1364410c12e3b4daaa9f81d4ec830ccdbf475f
diff --git a/libs/libvm_payload/stub/readme.txt b/libs/libvm_payload/stub/readme.txt
new file mode 100644
index 0000000..15b8743
--- /dev/null
+++ b/libs/libvm_payload/stub/readme.txt
@@ -0,0 +1,17 @@
+The stub.c file here is a checked-in version of a generated code file.
+
+It is not needed when building a payload client in the Android build
+system. The build system will automatically generated it (from
+libvm_payload.map.txt) and then compile it to form the stub version of
+libvm_payload.so. Clients link against the stub, but at runtime they
+will use the real libvm_payload.so provided by Microdroid.
+
+This file is here to support non-Android build systems, to allow a
+suitable stub libvm_payload.so to be built.
+
+To update this file, something like the following should work:
+
+lunch aosp_arm64-eng
+m MicrodroidTestNativeLib
+
+The generated stub file can then be found at out/soong/.intermediates/packages/modules/Virtualization/libs/libvm_payload/libvm_payload/android_arm64_armv8-a_shared_current/gen/stub.c
diff --git a/libs/libvm_payload/stub/stub.c b/libs/libvm_payload/stub/stub.c
new file mode 100644
index 0000000..ad7f8b0
--- /dev/null
+++ b/libs/libvm_payload/stub/stub.c
@@ -0,0 +1,15 @@
+void AVmPayload_notifyPayloadReady() {}
+void AVmPayload_runVsockRpcServer() {}
+void AVmPayload_getVmInstanceSecret() {}
+void AVmPayload_getDiceAttestationChain() {}
+void AVmPayload_getDiceAttestationCdi() {}
+void AVmPayload_getApkContentsPath() {}
+void AVmPayload_getEncryptedStoragePath() {}
+void AVmPayload_requestAttestation() {}
+void AVmPayload_requestAttestationForTesting() {}
+void AVmAttestationResult_getPrivateKey() {}
+void AVmAttestationResult_sign() {}
+void AVmAttestationResult_free() {}
+void AVmAttestationStatus_toString() {}
+void AVmAttestationResult_getCertificateCount() {}
+void AVmAttestationResult_getCertificateAt() {}