1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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="MTS precondition configs">
17
18    <option name="plan" value="mts-preconditions" />
19
20    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.DynamicConfigPusher">
21        <option name="target" value="host" />
22        <!-- the name under which to find the configuration -->
23        <option name="config-filename" value="mts"/>
24        <option name="extract-from-resource" value="true" />
25        <!-- the name of the resource inside the jar -->
26        <option name="dynamic-resource-name" value="mts-tradefed" />
27    </target_preparer>
28
29
30    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.StayAwakePreparer" />
31
32    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.SettingsPreparer">
33        <option name="device-setting" value="verifier_verify_adb_installs"/>
34        <option name="setting-type" value="global"/>
35        <option name="set-value" value="0"/>
36    </target_preparer>
37
38    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.WifiCheck" />
39
40    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
41        <option name="run-command" value="rm -rf /sdcard/device-info-files" />
42        <option name="run-command" value="rm -rf /sdcard/report-log-files" />
43    </target_preparer>
44
45    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.DeviceInfoCollector">
46        <option name="apk" value="CtsDeviceInfo.apk"/>
47        <option name="package" value="com.android.compatibility.common.deviceinfo"/>
48        <option name="src-dir" value="/sdcard/device-info-files/"/>
49        <option name="dest-dir" value="device-info-files/"/>
50        <option name="temp-dir" value="temp-device-info-files/"/>
51        <option name="throw-error" value="false"/>
52    </target_preparer>
53</configuration>
54