[attestation] Rename test_apk to demo_apk for Vm attestation
A separate test_apk will be added in a subsequent cl for e2e test.
Specifically, the demo_apk calls the real request attestation API
and interacts with RKPD to retrieve the real remotely provisioned
keys; while the test_apk will call the request attestation API
for testing only and will not trigger RKPD, a mock key will be used
in this case.
Test: Run VmAttestationDemoApp manually
Change-Id: I5e02dc071d167156e98088829227e83300899461
diff --git a/service_vm/demo_apk/Android.bp b/service_vm/demo_apk/Android.bp
new file mode 100644
index 0000000..5644819
--- /dev/null
+++ b/service_vm/demo_apk/Android.bp
@@ -0,0 +1,34 @@
+package {
+ default_team: "trendy_team_virtualization",
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+android_app {
+ name: "VmAttestationDemoApp",
+ installable: true,
+ jni_libs: ["libvm_attestation_payload"],
+ jni_uses_platform_apis: true,
+ use_embedded_native_libs: true,
+ sdk_version: "system_current",
+ compile_multilib: "first",
+ apex_available: ["com.android.virt"],
+}
+
+rust_defaults {
+ name: "vm_attestation_payload_defaults",
+ crate_name: "vm_attestation_payload",
+ defaults: ["avf_build_flags_rust"],
+ srcs: ["src/main.rs"],
+ prefer_rlib: true,
+ rustlibs: [
+ "libandroid_logger",
+ "libanyhow",
+ "liblog_rust",
+ "libvm_payload_bindgen",
+ ],
+}
+
+rust_ffi {
+ name: "libvm_attestation_payload",
+ defaults: ["vm_attestation_payload_defaults"],
+}