1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 Google Inc. 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="CATBOX Target Preparer Configuration"> 17 <!-- Target Preparers - Add System User and Disable By Default --> 18 <target_preparer class="com.android.tradefed.targetprep.RunOnSystemUserTargetPreparer"> 19 <option name="disable" value="true" /> 20 </target_preparer> 21 22 <!-- Target Preparers - Disable SELinux before Test Execution --> 23 <target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer" /> 24 25 <!-- Target Preparers - Clean the Device after Test Execution --> 26 <target_preparer class="com.android.tradefed.targetprep.DeviceCleaner"> 27 <option name="disable" value="true" /> 28 <option name="cleanup-action" value="FORMAT" /> 29 </target_preparer> 30 31 <!-- Target Preparers - Clean the Device before Test Execution --> 32 <target_preparer class="com.android.tradefed.targetprep.DeviceWiper"> 33 <option name="disable" value="true" /> 34 </target_preparer> 35 36 <!-- Target Preparers - Setup the Device --> 37 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> 38 <option name="disable" value="true" /> 39 <option name="screen-always-on" value="on" /> 40 <option name="screen-adaptive-brightness" value="off" /> 41 <option name="screen-saver" value="off" /> 42 <option name="set-secure-setting" key="location_mode" value="1" /> 43 </target_preparer> 44 45 <!-- Target Preparers - Install Apps --> 46 <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup" > 47 <option name="cleanup-apks" value="true" /> 48 </target_preparer> 49 50 <!-- Target Preparers - Run Shell Commands --> 51 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer" /> 52 53 <!-- Template for Account Log In --> 54 <template-include name="account-preparer" default="empty" /> 55</configuration> 56