Home | History | Annotate | Download | only in EphemeralApp1
      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 xmlns:android="http://schemas.android.com/apk/res/android"
     18     package="com.android.cts.ephemeralapp1"
     19     android:targetSandboxVersion="2">
     20     <uses-sdk
     21         android:minSdkVersion="25" />
     22 
     23     <uses-permission android:name="com.android.alarm.permission.SET_ALARM" />
     24     <uses-permission android:name="android.permission.INTERNET" />
     25     <application
     26         android:label="@string/app_name">
     27         <uses-library android:name="android.test.runner" />
     28         <activity
     29             android:name=".EphemeralActivity"
     30             android:theme="@android:style/Theme.NoDisplay">
     31             <!-- TEST: normal app can start w/o knowing about this activity -->
     32             <intent-filter>
     33                 <action android:name="android.intent.action.VIEW" />
     34                 <category android:name="android.intent.category.DEFAULT" />
     35                 <category android:name="android.intent.category.BROWSABLE" />
     36                 <data android:scheme="https" />
     37                 <data android:host="cts.google.com" />
     38                 <data android:path="/ephemeral" />
     39             </intent-filter>
     40             <!-- TEST: ephemeral apps can see this activity using query methods -->
     41             <!-- TEST: normal apps can't see this activity using query methods -->
     42             <intent-filter android:priority="0">
     43                 <action android:name="com.android.cts.ephemeraltest.QUERY" />
     44                 <category android:name="android.intent.category.DEFAULT" />
     45             </intent-filter>
     46             <!-- TEST: ephemeral apps can start this activity using directed intent -->
     47             <!-- TEST: normal apps can't start this activity using directed intent -->
     48             <intent-filter android:priority="0">
     49                 <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL" />
     50                 <category android:name="android.intent.category.DEFAULT" />
     51             </intent-filter>
     52         </activity>
     53         <activity
     54             android:name=".EphemeralActivity2"
     55             android:theme="@android:style/Theme.NoDisplay">
     56             <!-- TEST: ephemeral apps can start this activity using directed intent -->
     57             <!-- TEST: normal apps can't start this activity using directed intent -->
     58             <intent-filter android:priority="0">
     59                 <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL_PRIVATE" />
     60                 <category android:name="android.intent.category.DEFAULT" />
     61             </intent-filter>
     62         </activity>
     63         <activity
     64             android:name=".EphemeralActivity3"
     65             android:theme="@android:style/Theme.NoDisplay">
     66             <!-- TEST: ephemeral apps can start this activity using directed intent -->
     67         </activity>
     68         <activity android:name=".WebViewTestActivity" />
     69         <service
     70             android:name=".EphemeralService">
     71             <!-- TEST: ephemeral apps can see this service using query methods -->
     72             <intent-filter android:priority="0">
     73                 <action android:name="com.android.cts.ephemeraltest.QUERY" />
     74                 <category android:name="android.intent.category.DEFAULT" />
     75             </intent-filter>
     76             <!-- TEST: ephemeral apps can start this service using directed intent -->
     77             <intent-filter android:priority="-10">
     78                 <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL" />
     79                 <category android:name="android.intent.category.DEFAULT" />
     80             </intent-filter>
     81         </service>
     82 
     83         <provider
     84             android:name=".EphemeralProvider"
     85             android:authorities="com.android.cts.ephemeralapp1.provider"
     86             android:exported="true">
     87             <intent-filter android:priority="0">
     88                 <action android:name="com.android.cts.ephemeraltest.QUERY" />
     89             </intent-filter>
     90         </provider>
     91     </application>
     92 
     93     <instrumentation
     94         android:name="android.support.test.runner.AndroidJUnitRunner"
     95         android:targetPackage="com.android.cts.ephemeralapp1" />
     96 </manifest>
     97