1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<configuration description="Config for Ad Services Jetpack tests"> 18 <option name="test-tag" value="AdServicesJetpackTests-1.1.0-beta04-S" /> 19 20 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 21 <option name="cleanup-apks" value="true"/> 22 <option name="test-file-name" value="AdServicesJetpackTests-1.1.0-beta04-S.apk"/> 23 </target_preparer> 24 25 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 26 <option name="run-command" value="setprop log.tag.adservices VERBOSE"/> 27 <option name="run-command" value="setprop log.tag.adservices.topics VERBOSE"/> 28 <option name="run-command" value="setprop log.tag.adservices.fledge VERBOSE"/> 29 <option name="run-command" value="setprop log.tag.adservices.measurement VERBOSE"/> 30 31 <!-- Disable kill switches to ignore the effect of actual PH values. --> 32 <option name="run-command" value="device_config put adservices global_kill_switch false" /> 33 <option name="run-command" 34 value="device_config put adservices fledge_select_ads_kill_switch false" /> 35 <option name="run-command" 36 value="device_config put adservices 37 fledge_custom_audience_service_kill_switch false" /> 38 <option name="run-command" 39 value="device_config put adservices measurement_kill_switch false" /> 40 <option name="run-command" 41 value="device_config put adservices adid_kill_switch false" /> 42 <option name="run-command" 43 value="device_config put adservices appsetid_kill_switch false" /> 44 <option name="run-command" 45 value="device_config put adservices topics_kill_switch false" /> 46 <option name="run-command" value="device_config put adservices enable_back_compat true"/> 47 48 <!-- Override Consent notification to debug mode to grant user consent --> 49 <option name="run-command" 50 value="setprop debug.adservices.consent_notified_debug_mode true"/> 51 <option name="teardown-command" 52 value="setprop debug.adservices.consent_notified_debug_mode false"/> 53 54 <!-- Override Consent Manager to debug mode to grant user consent --> 55 <option name="run-command" 56 value="setprop debug.adservices.consent_manager_debug_mode true" /> 57 <option name="teardown-command" 58 value="setprop debug.adservices.consent_manager_debug_mode false"/> 59 60 <!-- Force enable enrollment checks for FLEDGE when testing enrollment --> 61 <option name="run-command" 62 value="device_config put adservices disable_fledge_enrollment_check false"/> 63 64 <!-- Increase the allowed API queries per second --> 65 <option name="run-command" 66 value="device_config put adservices sdk_request_permits_per_second 1000" /> 67 <option name="teardown-command" 68 value="device_config put adservices sdk_request_permits_per_second 1" /> 69 70 <!-- Temporarily enable enrollment seed for testing --> 71 <option name="run-command" 72 value="device_config put adservices enable_enrollment_test_seed true" /> 73 <option name="teardown-command" 74 value="device_config put adservices enable_enrollment_test_seed false" /> 75 76 <!-- Temporarily disable Device Config sync --> 77 <option name="run-command" value="device_config set_sync_disabled_for_tests persistent" /> 78 <option name="teardown-command" value="device_config set_sync_disabled_for_tests none" /> 79 </target_preparer> 80 81 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 82 <option name="hidden-api-checks" value="false" /> <!-- Allow hidden API uses --> 83 <option name="package" value="com.android.adservices.tests.jetpack"/> 84 </test> 85</configuration> 86