Disable AvfRkpdVmAttestationTestApp when rkpd is disabled

This cl disables the test AvfRkpdVmAttestationTestApp when the
mainline module rkpd is not enabled to avoid the conflict
at installation.

Bug: 330177263
Test: Run AvfRkpdVmAttestationTestApp on main
Change-Id: I10c66a1d063ecd30e191d61e898ae477e679002d
diff --git a/service_vm/test_apk/AndroidTest.rkpd.xml b/service_vm/test_apk/AndroidTest.rkpd.xml
index 2c0380c..39eca32 100644
--- a/service_vm/test_apk/AndroidTest.rkpd.xml
+++ b/service_vm/test_apk/AndroidTest.rkpd.xml
@@ -28,4 +28,11 @@
     <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
         <option name="package" value="com.android.virt.rkpd.vm_attestation.testapp" />
     </test>
+
+    <!-- Only run if RKPD mainline module is installed -->
+    <object type="module_controller"
+            class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
+        <option name="enable" value="true" />
+        <option name="mainline-module-package-name" value="com.android.rkpd" />
+    </object>
 </configuration>