1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright 2024 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<configuration description="Accessor demo test"> 17 <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" /> 18 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> 19 <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> 20 21 <!-- Install APEX begins --> 22 <!-- Step 0: adb reboot, so PushFilePreparer can remount system if needed --> 23 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"> 24 <option name="force-root" value="true"/> 25 </target_preparer> 26 <!-- Step 1: Push for the very first install. --> 27 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> 28 <option name="abort-on-push-failure" value="true" /> 29 <!-- Disclaimer: 'remount-system' remounts all partitions (adb remount), 30 but do so after checking the verity of /system partition. 31 This works for now, but may misbehave in the future. --> 32 <option name="remount-system" value="true" /> 33 <option name="push-file" key="com.android.virt.accessor_demo.apex" value="/system_ext/apex/com.android.virt.accessor_demo.apex" /> 34 </target_preparer> 35 <!-- Step 2: Reboot for pushed APEX to be installed. --> 36 <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer" /> 37 38 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> 39 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> 40 <option name="abort-on-push-failure" value="true" /> 41 <option name="push-file" key="vm_accessor_test" value="/data/local/tmp/vm_accessor_test" /> 42 </target_preparer> 43 44 <!-- TODO(b/346763236): Remove this --> 45 <target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer" /> 46 47 <test class="com.android.tradefed.testtype.rust.RustBinaryTest" > 48 <option name="test-device-path" value="/data/local/tmp" /> 49 <option name="module-name" value="vm_accessor_test" /> 50 </test> 51</configuration> 52