blob: 023e93e1449ee9c3447e320ea5d2a2f2f12bf297 [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
Todd Kennedy20047d72016-04-20 14:07:07 -070017<!-- Manifest for the privileged CTS shim upgrade -->
Todd Kennedy5585dd92016-03-29 13:07:01 -070018<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
25 <application
26 android:hasCode="false"
Winston Man0e68a3e2017-09-05 15:12:35 +010027 android:multiArch="true"
Todd Kennedy20047d72016-04-20 14:07:07 -070028 tools:ignore="AllowBackup,MissingApplicationIcon" >
Todd Kennedy5585dd92016-03-29 13:07:01 -070029
30 <!-- These activities don't actually exist; define them just to test the filters !-->
31
32 <!-- install test; [some] high priority filters granted -->
33 <activity android:name=".InstallPriority">
34 <!-- normal actions; priority will be granted -->
35 <intent-filter android:priority="100">
36 <action android:name="android.intent.action.SEARCH" />
37 <category android:name="android.intent.category.INFO" />
38 </intent-filter>
39
40 <!-- protected actions; priority will be denied -->
41 <intent-filter android:priority="100">
42 <action android:name="android.intent.action.VIEW" />
43 <category android:name="android.intent.category.BROWSABLE" />
44 </intent-filter>
45 <intent-filter android:priority="100">
46 <action android:name="android.intent.action.SEND" />
47 </intent-filter>
48 <intent-filter android:priority="100">
49 <action android:name="android.intent.action.SEND_MULTIPLE" />
50 </intent-filter>
51 <intent-filter android:priority="100">
52 <action android:name="android.intent.action.SENDTO" />
53 </intent-filter>
54 </activity>
55
56 <!-- upgrade test; single, equivalent filter -->
57 <activity android:name=".UpgradeMatch">
Todd Kennedy20047d72016-04-20 14:07:07 -070058 <intent-filter android:priority="500">
Todd Kennedy5585dd92016-03-29 13:07:01 -070059 <action android:name="com.android.cts.action.MATCH" />
60 <category android:name="android.intent.category.INFO" />
61 </intent-filter>
62 </activity>
63
64 <!-- upgrade test; multiple, equivalent filters -->
65 <activity android:name=".UpgradeMatchMultiple">
Todd Kennedy20047d72016-04-20 14:07:07 -070066 <intent-filter android:priority="500">
Todd Kennedy5585dd92016-03-29 13:07:01 -070067 <action android:name="com.android.cts.action.MATCH_MULTIPLE" />
Todd Kennedy5585dd92016-03-29 13:07:01 -070068 </intent-filter>
69 </activity>
70
Todd Kennedy20047d72016-04-20 14:07:07 -070071 <!-- upgrade test; lower priority is okay -->
Todd Kennedy5585dd92016-03-29 13:07:01 -070072 <activity android:name=".UpgradeLowerPriority">
Todd Kennedy20047d72016-04-20 14:07:07 -070073 <intent-filter android:priority="75">
Todd Kennedy5585dd92016-03-29 13:07:01 -070074 <action android:name="com.android.cts.action.LOWER_PRIORITY" />
75 <category android:name="android.intent.category.INFO" />
76 </intent-filter>
77 </activity>
78
Todd Kennedy20047d72016-04-20 14:07:07 -070079 <!-- upgrade test; action subset is "equivalent" -->
Todd Kennedy5585dd92016-03-29 13:07:01 -070080 <activity android:name=".UpgradeActionSubset">
81 <intent-filter android:priority="100">
Todd Kennedy5585dd92016-03-29 13:07:01 -070082 <action android:name="com.android.cts.action.ACTION_SUB_2" />
Todd Kennedy5585dd92016-03-29 13:07:01 -070083 <category android:name="android.intent.category.DEFAULT" />
84 </intent-filter>
85 </activity>
86
Todd Kennedy20047d72016-04-20 14:07:07 -070087 <!-- upgrade test; category subset is "equivalent" -->
Todd Kennedy5585dd92016-03-29 13:07:01 -070088 <activity android:name=".UpgradeCategorySubset">
89 <intent-filter android:priority="100">
90 <action android:name="com.android.cts.action.CATEGORY_SUB" />
91 <category android:name="android.intent.category.INFO" />
Todd Kennedy5585dd92016-03-29 13:07:01 -070092 </intent-filter>
93 </activity>
94
Todd Kennedy20047d72016-04-20 14:07:07 -070095 <!-- upgrade test; scheme subset is "equivalent" -->
Todd Kennedy5585dd92016-03-29 13:07:01 -070096 <activity android:name=".UpgradeSchemeSubset">
97 <intent-filter android:priority="100">
98 <action android:name="com.android.cts.action.SCHEME_SUB" />
Todd Kennedy5585dd92016-03-29 13:07:01 -070099 <data android:scheme="flubber" />
Todd Kennedy5585dd92016-03-29 13:07:01 -0700100 </intent-filter>
101 </activity>
102
Todd Kennedy20047d72016-04-20 14:07:07 -0700103 <!-- upgrade test; authority subset is "equivalent" -->
Todd Kennedy5585dd92016-03-29 13:07:01 -0700104 <activity android:name=".UpgradeAuthoritySubset">
105 <intent-filter android:priority="100">
106 <action android:name="com.android.cts.action.AUTHORITY_SUB" />
Todd Kennedy5585dd92016-03-29 13:07:01 -0700107 <data android:host="goo.gl" android:port="443" />
108 </intent-filter>
109 </activity>
110
Todd Kennedy20047d72016-04-20 14:07:07 -0700111 <!-- upgrade test; new activity cannot get >0 priority -->
112 <activity android:name=".UpgradeNewActivity">
113 <intent-filter android:priority="100">
114 <action android:name="com.android.cts.action.NEW_ACTIVITY" />
115 <category android:name="android.intent.category.INFO" />
116 </intent-filter>
117 </activity>
Todd Kennedy5585dd92016-03-29 13:07:01 -0700118
Todd Kennedy20047d72016-04-20 14:07:07 -0700119 <!-- upgrade test; new action cannot get >0 priority -->
Todd Kennedy5585dd92016-03-29 13:07:01 -0700120 <activity android:name=".UpgradeNewAction">
121 <intent-filter android:priority="100">
122 <action android:name="com.android.cts.action.NEW_ACTION" />
Todd Kennedy20047d72016-04-20 14:07:07 -0700123 <action android:name="com.android.cts.action.NEW_ACTION_2" />
Todd Kennedy5585dd92016-03-29 13:07:01 -0700124 </intent-filter>
125 </activity>
126
Todd Kennedy20047d72016-04-20 14:07:07 -0700127 <!-- upgrade test; new category cannot get >0 priority -->
Todd Kennedy5585dd92016-03-29 13:07:01 -0700128 <activity android:name=".UpgradeNewCategory">
129 <intent-filter android:priority="100">
130 <action android:name="com.android.cts.action.NEW_CATEGORY" />
Todd Kennedy20047d72016-04-20 14:07:07 -0700131 <category android:name="android.intent.category.INFO" />
Todd Kennedy5585dd92016-03-29 13:07:01 -0700132 <category android:name="android.intent.category.DEFAULT" />
Todd Kennedy20047d72016-04-20 14:07:07 -0700133 <category android:name="android.intent.category.DOODLE" />
Todd Kennedy5585dd92016-03-29 13:07:01 -0700134 </intent-filter>
135 </activity>
136
Todd Kennedy20047d72016-04-20 14:07:07 -0700137 <!-- upgrade test; new scheme cannot get >0 priority -->
Todd Kennedy5585dd92016-03-29 13:07:01 -0700138 <activity android:name=".UpgradeNewScheme">
139 <intent-filter android:priority="100">
140 <action android:name="com.android.cts.action.NEW_SCHEME" />
141 <data android:scheme="content" />
Todd Kennedy20047d72016-04-20 14:07:07 -0700142 <data android:scheme="flubber" />
143 <data android:scheme="zoodle" />
144 <data android:scheme="zowie" />
Todd Kennedy5585dd92016-03-29 13:07:01 -0700145 </intent-filter>
146 </activity>
147
Todd Kennedy20047d72016-04-20 14:07:07 -0700148 <!-- upgrade test; new authority cannot get >0 priority -->
Todd Kennedy5585dd92016-03-29 13:07:01 -0700149 <activity android:name=".UpgradeNewAuthority">
150 <intent-filter android:priority="100">
151 <action android:name="com.android.cts.action.NEW_AUTHORITY" />
152 <data android:host="www.google.com" android:port="80" />
Todd Kennedy20047d72016-04-20 14:07:07 -0700153 <data android:host="www.google.com" android:port="8080" />
154 <data android:host="mail.google.com" android:port="80" />
155 <data android:host="goo.gl" android:port="443" />
156 <data android:host="www.google.com" android:port="443" />
Todd Kennedy5585dd92016-03-29 13:07:01 -0700157 </intent-filter>
158 </activity>
159
Todd Kennedy20047d72016-04-20 14:07:07 -0700160 <uses-library android:name="android.test.runner" />
Todd Kennedy5585dd92016-03-29 13:07:01 -0700161 </application>
Todd Kennedy20047d72016-04-20 14:07:07 -0700162
Todd Kennedy5585dd92016-03-29 13:07:01 -0700163</manifest>
164