1*b7c941bbSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?> 2*b7c941bbSAndroid Build Coastguard Worker<!-- 3*b7c941bbSAndroid Build Coastguard Worker * Copyright (C) 2015 The Android Open Source Project 4*b7c941bbSAndroid Build Coastguard Worker * 5*b7c941bbSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 6*b7c941bbSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 7*b7c941bbSAndroid Build Coastguard Worker * You may obtain a copy of the License at 8*b7c941bbSAndroid Build Coastguard Worker * 9*b7c941bbSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 10*b7c941bbSAndroid Build Coastguard Worker * 11*b7c941bbSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 12*b7c941bbSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 13*b7c941bbSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*b7c941bbSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 15*b7c941bbSAndroid Build Coastguard Worker * limitations under the License. 16*b7c941bbSAndroid Build Coastguard Worker --> 17*b7c941bbSAndroid Build Coastguard Worker 18*b7c941bbSAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android" 19*b7c941bbSAndroid Build Coastguard Worker package="android.netlegacy22.permission.cts"> 20*b7c941bbSAndroid Build Coastguard Worker 21*b7c941bbSAndroid Build Coastguard Worker <uses-permission android:name="android.permission.INJECT_EVENTS"/> 22*b7c941bbSAndroid Build Coastguard Worker <uses-permission android:name="android.permission.INTERNET"/> 23*b7c941bbSAndroid Build Coastguard Worker <application> 24*b7c941bbSAndroid Build Coastguard Worker <uses-library android:name="android.test.runner"/> 25*b7c941bbSAndroid Build Coastguard Worker <activity android:name="android.permission.cts.PermissionStubActivity" 26*b7c941bbSAndroid Build Coastguard Worker android:label="PermissionStubActivity" 27*b7c941bbSAndroid Build Coastguard Worker android:exported="true"> 28*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 29*b7c941bbSAndroid Build Coastguard Worker <action android:name="android.intent.action.MAIN"/> 30*b7c941bbSAndroid Build Coastguard Worker <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"/> 31*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 32*b7c941bbSAndroid Build Coastguard Worker </activity> 33*b7c941bbSAndroid Build Coastguard Worker </application> 34*b7c941bbSAndroid Build Coastguard Worker 35*b7c941bbSAndroid Build Coastguard Worker <!-- 36*b7c941bbSAndroid Build Coastguard Worker The CTS stubs package cannot be used as the target application here, 37*b7c941bbSAndroid Build Coastguard Worker since that requires many permissions to be set. Instead, specify this 38*b7c941bbSAndroid Build Coastguard Worker package itself as the target and include any stub activities needed. 39*b7c941bbSAndroid Build Coastguard Worker 40*b7c941bbSAndroid Build Coastguard Worker This test package uses the default InstrumentationTestRunner, because 41*b7c941bbSAndroid Build Coastguard Worker the InstrumentationCtsTestRunner is only available in the stubs 42*b7c941bbSAndroid Build Coastguard Worker package. That runner cannot be added to this package either, since it 43*b7c941bbSAndroid Build Coastguard Worker relies on hidden APIs. 44*b7c941bbSAndroid Build Coastguard Worker --> 45*b7c941bbSAndroid Build Coastguard Worker <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 46*b7c941bbSAndroid Build Coastguard Worker android:targetPackage="android.netlegacy22.permission.cts" 47*b7c941bbSAndroid Build Coastguard Worker android:label="CTS tests of legacy android.net permissions as of API 22"> 48*b7c941bbSAndroid Build Coastguard Worker </instrumentation> 49*b7c941bbSAndroid Build Coastguard Worker 50*b7c941bbSAndroid Build Coastguard Worker</manifest> 51