1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 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<!-- 17 ! Test that APKs with targetSdkVersion > 29 do not have access to the android.test.base APIs by 18 ! default. 19 !--> 20<configuration description="Config for CTS Android Test Base Current API Signature test cases"> 21 <option name="test-suite-tag" value="cts" /> 22 <option name="config-descriptor:metadata" key="component" value="systems" /> 23 <option name="config-descriptor:metadata" key="parameter" value="instant_app" /> 24 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> 25 <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> 26 <option name="config-descriptor:metadata" key="parameter" value="no_foldable_states" /> 27 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 28 <option name="cleanup-apks" value="true" /> 29 <option name="test-file-name" value="CtsAndroidTestBaseCurrentApiSignatureTestCases.apk" /> 30 </target_preparer> 31 <test class="com.android.tradefed.testtype.AndroidJUnitTest" > 32 <option name="package" value="android.signature.cts.api.android_test_base_current" /> 33 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> 34 <option name="class" value="android.signature.cts.api.current.test.SignatureTest" /> 35 <!-- 36 ! android.test.base, android.test.mock and android.test.runner classes must NOT be 37 ! accessible to this test as the android.test.base classes are no longer provided by 38 ! default and the other libraries were never provided by default. 39 !--> 40 <option name="instrumentation-arg" key="unexpected-api-files" value="android-test-base-current.api.gz,android-test-runner-current.api.gz,android-test-mock-current.api.gz" /> 41 <option name="runtime-hint" value="5s" /> 42 <!-- Disable hidden API checks (http://b/171459260). --> 43 <option name="hidden-api-checks" value="false" /> 44 </test> 45</configuration> 46