Home | History | Annotate | Download | only in shim_priv_upgrade
      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 
     17 <!-- Manifest for the privileged CTS shim upgrade -->
     18 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:tools="http://schemas.android.com/tools"
     20     package="com.android.cts.priv.ctsshim" >
     21 
     22     <uses-sdk android:minSdkVersion="24"
     23         android:targetSdkVersion="24" />
     24 
     25     <application
     26         android:hasCode="false"
     27         tools:ignore="AllowBackup,MissingApplicationIcon" >
     28 
     29         <!-- These activities don't actually exist; define them just to test the filters !-->
     30 
     31         <!-- install test; [some] high priority filters granted -->
     32         <activity android:name=".InstallPriority">
     33             <!-- normal actions; priority will be granted -->
     34             <intent-filter android:priority="100">
     35                 <action android:name="android.intent.action.SEARCH" />
     36                 <category android:name="android.intent.category.INFO" />
     37             </intent-filter>
     38 
     39             <!-- protected actions; priority will be denied -->
     40             <intent-filter android:priority="100">
     41                 <action android:name="android.intent.action.VIEW" />
     42                 <category android:name="android.intent.category.BROWSABLE" />
     43             </intent-filter>
     44             <intent-filter android:priority="100">
     45                 <action android:name="android.intent.action.SEND" />
     46             </intent-filter>
     47             <intent-filter android:priority="100">
     48                 <action android:name="android.intent.action.SEND_MULTIPLE" />
     49             </intent-filter>
     50             <intent-filter android:priority="100">
     51                 <action android:name="android.intent.action.SENDTO" />
     52             </intent-filter>
     53         </activity>
     54 
     55         <!-- upgrade test; single, equivalent filter -->
     56         <activity android:name=".UpgradeMatch">
     57             <intent-filter android:priority="500">
     58                 <action android:name="com.android.cts.action.MATCH" />
     59                 <category android:name="android.intent.category.INFO" />
     60             </intent-filter>
     61         </activity>
     62 
     63         <!-- upgrade test; multiple, equivalent filters -->
     64         <activity android:name=".UpgradeMatchMultiple">
     65             <intent-filter android:priority="500">
     66                 <action android:name="com.android.cts.action.MATCH_MULTIPLE" />
     67             </intent-filter>
     68         </activity>
     69 
     70         <!-- upgrade test; lower priority is okay -->
     71         <activity android:name=".UpgradeLowerPriority">
     72             <intent-filter android:priority="75">
     73                 <action android:name="com.android.cts.action.LOWER_PRIORITY" />
     74                 <category android:name="android.intent.category.INFO" />
     75             </intent-filter>
     76         </activity>
     77 
     78         <!-- upgrade test; action subset is "equivalent" -->
     79         <activity android:name=".UpgradeActionSubset">
     80             <intent-filter android:priority="100">
     81                 <action android:name="com.android.cts.action.ACTION_SUB_2" />
     82                 <category android:name="android.intent.category.DEFAULT" />
     83             </intent-filter>
     84         </activity>
     85 
     86         <!-- upgrade test; category subset is "equivalent" -->
     87         <activity android:name=".UpgradeCategorySubset">
     88             <intent-filter android:priority="100">
     89                 <action android:name="com.android.cts.action.CATEGORY_SUB" />
     90                 <category android:name="android.intent.category.INFO" />
     91             </intent-filter>
     92         </activity>
     93 
     94         <!-- upgrade test; scheme subset is "equivalent" -->
     95         <activity android:name=".UpgradeSchemeSubset">
     96             <intent-filter android:priority="100">
     97                 <action android:name="com.android.cts.action.SCHEME_SUB" />
     98                 <data android:scheme="flubber" />
     99             </intent-filter>
    100         </activity>
    101 
    102         <!-- upgrade test; authority subset is "equivalent" -->
    103         <activity android:name=".UpgradeAuthoritySubset">
    104             <intent-filter android:priority="100">
    105                 <action android:name="com.android.cts.action.AUTHORITY_SUB" />
    106                 <data android:host="goo.gl" android:port="443" />
    107             </intent-filter>
    108         </activity>
    109 
    110         <!-- upgrade test; new activity cannot get >0 priority -->
    111         <activity android:name=".UpgradeNewActivity">
    112             <intent-filter android:priority="100">
    113                 <action android:name="com.android.cts.action.NEW_ACTIVITY" />
    114                 <category android:name="android.intent.category.INFO" />
    115             </intent-filter>
    116         </activity>
    117 
    118         <!-- upgrade test; new action cannot get >0 priority -->
    119         <activity android:name=".UpgradeNewAction">
    120             <intent-filter android:priority="100">
    121                 <action android:name="com.android.cts.action.NEW_ACTION" />
    122                 <action android:name="com.android.cts.action.NEW_ACTION_2" />
    123             </intent-filter>
    124         </activity>
    125 
    126         <!-- upgrade test; new category cannot get >0 priority -->
    127         <activity android:name=".UpgradeNewCategory">
    128             <intent-filter android:priority="100">
    129                 <action android:name="com.android.cts.action.NEW_CATEGORY" />
    130                 <category android:name="android.intent.category.INFO" />
    131                 <category android:name="android.intent.category.DEFAULT" />
    132                 <category android:name="android.intent.category.DOODLE" />
    133             </intent-filter>
    134         </activity>
    135 
    136         <!-- upgrade test; new scheme cannot get >0 priority -->
    137         <activity android:name=".UpgradeNewScheme">
    138             <intent-filter android:priority="100">
    139                 <action android:name="com.android.cts.action.NEW_SCHEME" />
    140                 <data android:scheme="content" />
    141                 <data android:scheme="flubber" />
    142                 <data android:scheme="zoodle" />
    143                 <data android:scheme="zowie" />
    144             </intent-filter>
    145         </activity>
    146 
    147         <!-- upgrade test; new authority cannot get >0 priority -->
    148         <activity android:name=".UpgradeNewAuthority">
    149             <intent-filter android:priority="100">
    150                 <action android:name="com.android.cts.action.NEW_AUTHORITY" />
    151                 <data android:host="www.google.com" android:port="80" />
    152                 <data android:host="www.google.com" android:port="8080" />
    153                 <data android:host="mail.google.com" android:port="80" />
    154                 <data android:host="goo.gl" android:port="443" />
    155                 <data android:host="www.google.com" android:port="443" />
    156             </intent-filter>
    157         </activity>
    158 
    159         <uses-library android:name="android.test.runner" />
    160     </application>
    161 
    162 </manifest>
    163 
    164