1*b7c941bbSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*b7c941bbSAndroid Build Coastguard Worker<!-- Copyright (C) 2016 The Android Open Source Project
3*b7c941bbSAndroid Build Coastguard Worker
4*b7c941bbSAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
5*b7c941bbSAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
6*b7c941bbSAndroid Build Coastguard Worker     You may obtain a copy of the License at
7*b7c941bbSAndroid Build Coastguard Worker
8*b7c941bbSAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
9*b7c941bbSAndroid Build Coastguard Worker
10*b7c941bbSAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
11*b7c941bbSAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
12*b7c941bbSAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*b7c941bbSAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
14*b7c941bbSAndroid Build Coastguard Worker     limitations under the License.
15*b7c941bbSAndroid Build Coastguard Worker-->
16*b7c941bbSAndroid Build Coastguard Worker
17*b7c941bbSAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18*b7c941bbSAndroid Build Coastguard Worker     package="com.android.cts.ephemeralapp1">
19*b7c941bbSAndroid Build Coastguard Worker    <uses-sdk android:minSdkVersion="24"
20*b7c941bbSAndroid Build Coastguard Worker         android:targetSdkVersion="26"/>
21*b7c941bbSAndroid Build Coastguard Worker
22*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="com.android.alarm.permission.SET_ALARM"/>
23*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
24*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
25*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.CAMERA"/>
26*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.INSTANT_APP_FOREGROUND_SERVICE"/>
27*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.INTERNET"/>
28*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
29*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.READ_PHONE_NUMBERS"/>
30*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.VIBRATE"/>
31*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.WAKE_LOCK"/>
32*b7c941bbSAndroid Build Coastguard Worker
33*b7c941bbSAndroid Build Coastguard Worker    <application android:label="@string/app_name">
34*b7c941bbSAndroid Build Coastguard Worker        <uses-library android:name="android.test.runner"/>
35*b7c941bbSAndroid Build Coastguard Worker        <activity android:name=".EphemeralActivity"
36*b7c941bbSAndroid Build Coastguard Worker             android:theme="@android:style/Theme.NoDisplay"
37*b7c941bbSAndroid Build Coastguard Worker             android:exported="true">
38*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: normal app can start w/o knowing about this activity -->
39*b7c941bbSAndroid Build Coastguard Worker            <intent-filter android:autoVerify="true">
40*b7c941bbSAndroid Build Coastguard Worker                <action android:name="android.intent.action.VIEW"/>
41*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.DEFAULT"/>
42*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.BROWSABLE"/>
43*b7c941bbSAndroid Build Coastguard Worker                <data android:scheme="https"/>
44*b7c941bbSAndroid Build Coastguard Worker                <data android:host="cts.google.com"/>
45*b7c941bbSAndroid Build Coastguard Worker                <data android:path="/ephemeral"/>
46*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
47*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: ephemeral apps can see this activity using query methods -->
48*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: normal apps can't see this activity using query methods -->
49*b7c941bbSAndroid Build Coastguard Worker            <intent-filter android:priority="0">
50*b7c941bbSAndroid Build Coastguard Worker                <action android:name="com.android.cts.ephemeraltest.QUERY"/>
51*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.DEFAULT"/>
52*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
53*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: ephemeral apps can start this activity using directed intent -->
54*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: normal apps can't start this activity using directed intent -->
55*b7c941bbSAndroid Build Coastguard Worker            <intent-filter android:priority="0">
56*b7c941bbSAndroid Build Coastguard Worker                <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL"/>
57*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.DEFAULT"/>
58*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
59*b7c941bbSAndroid Build Coastguard Worker            <intent-filter>
60*b7c941bbSAndroid Build Coastguard Worker                <action android:name="android.intent.action.SEARCH"/>
61*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
62*b7c941bbSAndroid Build Coastguard Worker            <meta-data android:name="default-url"
63*b7c941bbSAndroid Build Coastguard Worker                 android:value="https://ephemeralapp1.cts.android.com/search"/>
64*b7c941bbSAndroid Build Coastguard Worker            <meta-data android:name="android.app.searchable"
65*b7c941bbSAndroid Build Coastguard Worker                 android:resource="@xml/searchable"/>
66*b7c941bbSAndroid Build Coastguard Worker        </activity>
67*b7c941bbSAndroid Build Coastguard Worker        <activity android:name=".EphemeralResult"
68*b7c941bbSAndroid Build Coastguard Worker             android:theme="@android:style/Theme.NoDisplay"
69*b7c941bbSAndroid Build Coastguard Worker             android:exported="true">
70*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: allow sending results from other instant apps -->
71*b7c941bbSAndroid Build Coastguard Worker            <intent-filter android:autoVerify="true">
72*b7c941bbSAndroid Build Coastguard Worker                <action android:name="android.intent.action.VIEW"/>
73*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.DEFAULT"/>
74*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.BROWSABLE"/>
75*b7c941bbSAndroid Build Coastguard Worker                <data android:scheme="https"/>
76*b7c941bbSAndroid Build Coastguard Worker                <data android:host="cts.google.com"/>
77*b7c941bbSAndroid Build Coastguard Worker                <data android:path="/result"/>
78*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
79*b7c941bbSAndroid Build Coastguard Worker        </activity>
80*b7c941bbSAndroid Build Coastguard Worker        <provider android:name=".SearchSuggestionProvider"
81*b7c941bbSAndroid Build Coastguard Worker             android:authorities="com.android.cts.ephemeralapp1.Search"/>
82*b7c941bbSAndroid Build Coastguard Worker
83*b7c941bbSAndroid Build Coastguard Worker        <activity android:name=".EphemeralActivity2"
84*b7c941bbSAndroid Build Coastguard Worker             android:theme="@android:style/Theme.NoDisplay"
85*b7c941bbSAndroid Build Coastguard Worker             android:exported="true">
86*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: ephemeral apps can start this activity using directed intent -->
87*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: normal apps can't start this activity using directed intent -->
88*b7c941bbSAndroid Build Coastguard Worker            <intent-filter android:priority="0">
89*b7c941bbSAndroid Build Coastguard Worker                <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL_PRIVATE"/>
90*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.DEFAULT"/>
91*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
92*b7c941bbSAndroid Build Coastguard Worker        </activity>
93*b7c941bbSAndroid Build Coastguard Worker        <activity android:name=".EphemeralActivity3"
94*b7c941bbSAndroid Build Coastguard Worker             android:theme="@android:style/Theme.NoDisplay">
95*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: ephemeral apps can start this activity using directed intent -->
96*b7c941bbSAndroid Build Coastguard Worker        </activity>
97*b7c941bbSAndroid Build Coastguard Worker        <activity android:name=".WebViewTestActivity"/>
98*b7c941bbSAndroid Build Coastguard Worker        <service android:name=".EphemeralService"
99*b7c941bbSAndroid Build Coastguard Worker             android:exported="true">
100*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: ephemeral apps can see this service using query methods -->
101*b7c941bbSAndroid Build Coastguard Worker            <intent-filter android:priority="0">
102*b7c941bbSAndroid Build Coastguard Worker                <action android:name="com.android.cts.ephemeraltest.QUERY"/>
103*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.DEFAULT"/>
104*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
105*b7c941bbSAndroid Build Coastguard Worker            <!-- TEST: ephemeral apps can start this service using directed intent -->
106*b7c941bbSAndroid Build Coastguard Worker            <intent-filter android:priority="-10">
107*b7c941bbSAndroid Build Coastguard Worker                <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL"/>
108*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.DEFAULT"/>
109*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
110*b7c941bbSAndroid Build Coastguard Worker        </service>
111*b7c941bbSAndroid Build Coastguard Worker
112*b7c941bbSAndroid Build Coastguard Worker        <provider android:name=".EphemeralProvider"
113*b7c941bbSAndroid Build Coastguard Worker             android:authorities="com.android.cts.ephemeralapp1.provider"
114*b7c941bbSAndroid Build Coastguard Worker             android:exported="true">
115*b7c941bbSAndroid Build Coastguard Worker            <intent-filter android:priority="0">
116*b7c941bbSAndroid Build Coastguard Worker                <action android:name="com.android.cts.ephemeraltest.QUERY"/>
117*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
118*b7c941bbSAndroid Build Coastguard Worker        </provider>
119*b7c941bbSAndroid Build Coastguard Worker        <service android:name=".SomeService"/>
120*b7c941bbSAndroid Build Coastguard Worker
121*b7c941bbSAndroid Build Coastguard Worker        <activity android:name=".StartForResultActivity"
122*b7c941bbSAndroid Build Coastguard Worker             android:exported="false"/>
123*b7c941bbSAndroid Build Coastguard Worker
124*b7c941bbSAndroid Build Coastguard Worker    </application>
125*b7c941bbSAndroid Build Coastguard Worker
126*b7c941bbSAndroid Build Coastguard Worker    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
127*b7c941bbSAndroid Build Coastguard Worker         android:targetPackage="com.android.cts.ephemeralapp1"/>
128*b7c941bbSAndroid Build Coastguard Worker</manifest>
129