[test] Use on-demand key provisioning in AvfRkpdVmAttestationTestApp
This cl replaces the active key provisioning step in
AvfRkpdVmAttestationTestApp to on-demand, which is implicit during
the retrieval of the remotely provisioning key. This allows the
target AvfRkpdVmAttestationTestApp to remove the dependency on
rkpdapp.
Bug: 330299127
Test: atest AvfRkpdVmAttestationTestApp
Change-Id: I90d3274ac8b64db1d62f6d21d9aafe35fd664de4
diff --git a/service_vm/test_apk/AndroidManifest.rkpd.xml b/service_vm/test_apk/AndroidManifest.rkpd.xml
index 6ecc5a9..369a456 100644
--- a/service_vm/test_apk/AndroidManifest.rkpd.xml
+++ b/service_vm/test_apk/AndroidManifest.rkpd.xml
@@ -17,8 +17,15 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.virt.rkpd.vm_attestation.testapp">
+ <uses-permission android:name="android.permission.MANAGE_VIRTUAL_MACHINE" />
+ <uses-permission android:name="android.permission.USE_CUSTOM_VIRTUAL_MACHINE" />
+
+ <!-- Required to check the network access -->
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+ <uses-permission android:name="android.permission.INTERNET" />
+
<instrumentation
android:name="androidx.test.runner.AndroidJUnitRunner"
- android:targetPackage="com.android.rkpdapp"
+ android:targetPackage="com.android.virt.rkpd.vm_attestation.testapp"
android:label="AVF rkpd app integration tests" />
</manifest>