blob: 9bf454c297680e5e3c60ff72b735b15da747d38d [file] [log] [blame]
Todd Kennedy5585dd92016-03-29 13:07:01 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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 for the privileged CTS shim -->
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Todd Kennedy20047d72016-04-20 14:07:07 -070019 xmlns:tools="http://schemas.android.com/tools"
Todd Kennedy51e458e2016-06-03 10:16:12 -070020 package="com.android.cts.priv.ctsshim" >
21
22 <uses-sdk android:minSdkVersion="24"
23 android:targetSdkVersion="24" />
Todd Kennedy20047d72016-04-20 14:07:07 -070024
Todd Kennedy0d0b59c2016-06-14 12:35:39 -070025 <restrict-update
Todd Kennedy20047d72016-04-20 14:07:07 -070026 android:hash="__HASH__" />
27
28 <application
29 android:hasCode="false"
Winston Man0e68a3e2017-09-05 15:12:35 +010030 android:multiArch="true"
Todd Kennedy20047d72016-04-20 14:07:07 -070031 tools:ignore="AllowBackup,MissingApplicationIcon" >
Todd Kennedy5585dd92016-03-29 13:07:01 -070032
33 <!-- These activities don't actually exist; define them just to test the filters !-->
34
35 <!-- install test; [some] high priority filters granted -->
36 <activity android:name=".InstallPriority">
37 <!-- normal actions; priority will be granted -->
38 <intent-filter android:priority="100">
39 <action android:name="android.intent.action.SEARCH" />
40 <category android:name="android.intent.category.INFO" />
41 </intent-filter>
42
43 <!-- protected actions; priority will be denied -->
44 <intent-filter android:priority="100">
45 <action android:name="android.intent.action.VIEW" />
46 <category android:name="android.intent.category.BROWSABLE" />
47 </intent-filter>
48 <intent-filter android:priority="100">
49 <action android:name="android.intent.action.SEND" />
50 </intent-filter>
51 <intent-filter android:priority="100">
52 <action android:name="android.intent.action.SEND_MULTIPLE" />
53 </intent-filter>
54 <intent-filter android:priority="100">
55 <action android:name="android.intent.action.SENDTO" />
56 </intent-filter>
57 </activity>
58
59 <!-- upgrade test; single, equivalent filter -->
60 <activity android:name=".UpgradeMatch">
61 <intent-filter android:priority="100">
62 <action android:name="com.android.cts.action.MATCH" />
63 <category android:name="android.intent.category.INFO" />
64 </intent-filter>
65 </activity>
66
67 <!-- upgrade test; multiple, equivalent filters -->
68 <activity android:name=".UpgradeMatchMultiple">
69 <intent-filter android:priority="100">
70 <action android:name="com.android.cts.action.MATCH_MULTIPLE" />
71 <category android:name="android.intent.category.INFO" />
72 </intent-filter>
73
74 <intent-filter android:priority="150">
75 <action android:name="com.android.cts.action.MATCH_MULTIPLE" />
76 <category android:name="android.intent.category.DEFAULT" />
77 <data android:scheme="http" />
78 <data android:scheme="https" />
79 <data android:host="www.google.com" android:port="80" />
80 <data android:host="www.google.com" android:port="8080" />
81 <data android:host="goo.gl" android:port="443" />
82 </intent-filter>
83 </activity>
84
85 <!-- upgrade test; lower priority -->
86 <activity android:name=".UpgradeLowerPriority">
87 <intent-filter android:priority="100">
88 <action android:name="com.android.cts.action.LOWER_PRIORITY" />
89 <category android:name="android.intent.category.INFO" />
90 </intent-filter>
91 </activity>
92
93 <!-- upgrade test; action subset -->
94 <activity android:name=".UpgradeActionSubset">
95 <intent-filter android:priority="100">
96 <action android:name="com.android.cts.action.ACTION_SUB" />
97 <action android:name="com.android.cts.action.ACTION_SUB_2" />
98 <action android:name="com.android.cts.action.ACTION_SUB_3" />
99 <category android:name="android.intent.category.DEFAULT" />
100 </intent-filter>
101 </activity>
102
103 <!-- upgrade test; category subset -->
104 <activity android:name=".UpgradeCategorySubset">
105 <intent-filter android:priority="100">
106 <action android:name="com.android.cts.action.CATEGORY_SUB" />
107 <category android:name="android.intent.category.INFO" />
108 <category android:name="android.intent.category.DEFAULT" />
109 </intent-filter>
110 </activity>
111
112 <!-- upgrade test; scheme subset -->
113 <activity android:name=".UpgradeSchemeSubset">
114 <intent-filter android:priority="100">
115 <action android:name="com.android.cts.action.SCHEME_SUB" />
116 <data android:scheme="content" />
117 <data android:scheme="flubber" />
118 <data android:scheme="zoodle" />
119 </intent-filter>
120 </activity>
121
122 <!-- upgrade test; authority subset -->
123 <activity android:name=".UpgradeAuthoritySubset">
124 <intent-filter android:priority="100">
125 <action android:name="com.android.cts.action.AUTHORITY_SUB" />
126 <data android:host="www.google.com" android:port="80" />
127 <data android:host="www.google.com" android:port="8080" />
128 <data android:host="mail.google.com" android:port="80" />
129 <data android:host="goo.gl" android:port="443" />
130 </intent-filter>
131 </activity>
132
133
134 <!-- upgrade test; new action -->
135 <activity android:name=".UpgradeNewAction">
136 <intent-filter android:priority="100">
137 <action android:name="com.android.cts.action.NEW_ACTION" />
138 <category android:name="android.intent.category.DEFAULT" />
139 </intent-filter>
140 </activity>
141
142 <!-- upgrade test; new category -->
143 <activity android:name=".UpgradeNewCategory">
144 <intent-filter android:priority="100">
145 <action android:name="com.android.cts.action.NEW_CATEGORY" />
146 <category android:name="android.intent.category.DEFAULT" />
147 </intent-filter>
148 </activity>
149
150 <!-- upgrade test; new scheme -->
151 <activity android:name=".UpgradeNewScheme">
152 <intent-filter android:priority="100">
153 <action android:name="com.android.cts.action.NEW_SCHEME" />
154 <data android:scheme="content" />
155 </intent-filter>
156 </activity>
157
158 <!-- upgrade test; new authority -->
159 <activity android:name=".UpgradeNewAuthority">
160 <intent-filter android:priority="100">
161 <action android:name="com.android.cts.action.NEW_AUTHORITY" />
162 <data android:host="www.google.com" android:port="80" />
163 </intent-filter>
164 </activity>
165
166 </application>
167</manifest>
168