Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 1 | <?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 Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 17 | <!-- Manifest for the privileged CTS shim upgrade --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 18 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 19 | xmlns:tools="http://schemas.android.com/tools" |
Todd Kennedy | 51e458e | 2016-06-03 10:16:12 -0700 | [diff] [blame] | 20 | package="com.android.cts.priv.ctsshim" > |
| 21 | |
| 22 | <uses-sdk android:minSdkVersion="24" |
| 23 | android:targetSdkVersion="24" /> |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 24 | |
| 25 | <application |
| 26 | android:hasCode="false" |
Winston Man | 0e68a3e | 2017-09-05 15:12:35 +0100 | [diff] [blame^] | 27 | android:multiArch="true" |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 28 | tools:ignore="AllowBackup,MissingApplicationIcon" > |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 29 | |
| 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 Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 58 | <intent-filter android:priority="500"> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 59 | <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 Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 66 | <intent-filter android:priority="500"> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 67 | <action android:name="com.android.cts.action.MATCH_MULTIPLE" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 68 | </intent-filter> |
| 69 | </activity> |
| 70 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 71 | <!-- upgrade test; lower priority is okay --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 72 | <activity android:name=".UpgradeLowerPriority"> |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 73 | <intent-filter android:priority="75"> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 74 | <action android:name="com.android.cts.action.LOWER_PRIORITY" /> |
| 75 | <category android:name="android.intent.category.INFO" /> |
| 76 | </intent-filter> |
| 77 | </activity> |
| 78 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 79 | <!-- upgrade test; action subset is "equivalent" --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 80 | <activity android:name=".UpgradeActionSubset"> |
| 81 | <intent-filter android:priority="100"> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 82 | <action android:name="com.android.cts.action.ACTION_SUB_2" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 83 | <category android:name="android.intent.category.DEFAULT" /> |
| 84 | </intent-filter> |
| 85 | </activity> |
| 86 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 87 | <!-- upgrade test; category subset is "equivalent" --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 88 | <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 Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 92 | </intent-filter> |
| 93 | </activity> |
| 94 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 95 | <!-- upgrade test; scheme subset is "equivalent" --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 96 | <activity android:name=".UpgradeSchemeSubset"> |
| 97 | <intent-filter android:priority="100"> |
| 98 | <action android:name="com.android.cts.action.SCHEME_SUB" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 99 | <data android:scheme="flubber" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 100 | </intent-filter> |
| 101 | </activity> |
| 102 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 103 | <!-- upgrade test; authority subset is "equivalent" --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 104 | <activity android:name=".UpgradeAuthoritySubset"> |
| 105 | <intent-filter android:priority="100"> |
| 106 | <action android:name="com.android.cts.action.AUTHORITY_SUB" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 107 | <data android:host="goo.gl" android:port="443" /> |
| 108 | </intent-filter> |
| 109 | </activity> |
| 110 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 111 | <!-- 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 Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 118 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 119 | <!-- upgrade test; new action cannot get >0 priority --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 120 | <activity android:name=".UpgradeNewAction"> |
| 121 | <intent-filter android:priority="100"> |
| 122 | <action android:name="com.android.cts.action.NEW_ACTION" /> |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 123 | <action android:name="com.android.cts.action.NEW_ACTION_2" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 124 | </intent-filter> |
| 125 | </activity> |
| 126 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 127 | <!-- upgrade test; new category cannot get >0 priority --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 128 | <activity android:name=".UpgradeNewCategory"> |
| 129 | <intent-filter android:priority="100"> |
| 130 | <action android:name="com.android.cts.action.NEW_CATEGORY" /> |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 131 | <category android:name="android.intent.category.INFO" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 132 | <category android:name="android.intent.category.DEFAULT" /> |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 133 | <category android:name="android.intent.category.DOODLE" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 134 | </intent-filter> |
| 135 | </activity> |
| 136 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 137 | <!-- upgrade test; new scheme cannot get >0 priority --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 138 | <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 Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 142 | <data android:scheme="flubber" /> |
| 143 | <data android:scheme="zoodle" /> |
| 144 | <data android:scheme="zowie" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 145 | </intent-filter> |
| 146 | </activity> |
| 147 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 148 | <!-- upgrade test; new authority cannot get >0 priority --> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 149 | <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 Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 153 | <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 Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 157 | </intent-filter> |
| 158 | </activity> |
| 159 | |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 160 | <uses-library android:name="android.test.runner" /> |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 161 | </application> |
Todd Kennedy | 20047d7 | 2016-04-20 14:07:07 -0700 | [diff] [blame] | 162 | |
Todd Kennedy | 5585dd9 | 2016-03-29 13:07:01 -0700 | [diff] [blame] | 163 | </manifest> |
| 164 | |