1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2021 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<manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.android.cts.packagemanager.verify.domain.declaringapp"> 19 20 <application android:label="Declaring Test App" android:testOnly="true"> 21 <uses-library android:name="android.test.runner" /> 22 <activity android:name=".DeclaringActivity" android:exported="true"> 23 24 <!-- Normal success case, declaring valid domain with autoVerify --> 25 <intent-filter android:autoVerify="true"> 26 <action android:name="android.intent.action.VIEW" /> 27 28 <category android:name="android.intent.category.BROWSABLE" /> 29 <category android:name="android.intent.category.DEFAULT" /> 30 31 <data android:scheme="http" /> 32 <data android:scheme="https" /> 33 <data android:host="com.android.cts.packagemanager.verify.domain.1.pmctstesting" /> 34 <data android:host="invalid1" /> 35 </intent-filter> 36 37 <!-- Valid intent-filter, but missing autoVerify --> 38 <intent-filter> 39 <action android:name="android.intent.action.VIEW" /> 40 41 <category android:name="android.intent.category.BROWSABLE" /> 42 <category android:name="android.intent.category.DEFAULT" /> 43 44 <data android:scheme="http" /> 45 <data android:host="com.android.cts.packagemanager.verify.domain.2.pmctstesting" /> 46 <data android:host="invalid2." /> 47 </intent-filter> 48 49 <!-- Missing http, still accepted --> 50 <intent-filter android:autoVerify="true"> 51 <action android:name="android.intent.action.VIEW" /> 52 53 <category android:name="android.intent.category.BROWSABLE" /> 54 <category android:name="android.intent.category.DEFAULT" /> 55 56 <data android:scheme="https" /> 57 <data android:host="com.android.cts.packagemanager.verify.domain.3.pmctstesting" /> 58 <data android:host=".invalid3" /> 59 </intent-filter> 60 61 <!-- Missing DEFAULT, rejected --> 62 <intent-filter android:autoVerify="true"> 63 <action android:name="android.intent.action.VIEW" /> 64 <category android:name="android.intent.category.BROWSABLE" /> 65 66 <data android:scheme="https" /> 67 <data android:host="com.android.cts.packagemanager.verify.domain.4.pmctstesting" /> 68 <data android:host="invalid4" /> 69 </intent-filter> 70 71 <!-- Missing BROWSABLE, rejected --> 72 <intent-filter android:autoVerify="true"> 73 <action android:name="android.intent.action.VIEW" /> 74 <category android:name="android.intent.category.DEFAULT" /> 75 76 <data android:scheme="https" /> 77 <data android:host="com.android.cts.packagemanager.verify.domain.5.pmctstesting" /> 78 <data android:host="invalid5" /> 79 </intent-filter> 80 81 <!-- Missing VIEW, rejected --> 82 <intent-filter android:autoVerify="true"> 83 <category android:name="android.intent.category.BROWSABLE" /> 84 <category android:name="android.intent.category.DEFAULT" /> 85 86 <data android:scheme="https" /> 87 <data android:host="com.android.cts.packagemanager.verify.domain.6.pmctstesting" /> 88 <data android:host="invalid6" /> 89 </intent-filter> 90 </activity> 91 </application> 92 93 <instrumentation 94 android:name="androidx.test.runner.AndroidJUnitRunner" 95 android:targetPackage="com.android.cts.packagemanager.verify.domain.declaringapp1" /> 96 97 <queries> 98 <intent> 99 <action android:name="android.intent.action.VIEW" /> 100 <data android:scheme="https" /> 101 </intent> 102 <intent> 103 <action android:name="android.intent.action.VIEW" /> 104 <data android:scheme="http" /> 105 </intent> 106 </queries> 107 108</manifest> 109 110