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 <uses-sdk 20 android:minSdkVersion="24" android:targetSdkVersion="26" /> 21 22 <uses-permission android:name="com.android.alarm.permission.SET_ALARM" /> 23 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> 24 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 25 <uses-permission android:name="android.permission.CAMERA" /> 26 <uses-permission android:name="android.permission.INSTANT_APP_FOREGROUND_SERVICE" /> 27 <uses-permission android:name="android.permission.INTERNET" /> 28 <uses-permission android:name="android.permission.RECORD_AUDIO" /> 29 <uses-permission android:name="android.permission.READ_PHONE_NUMBERS" /> 30 <uses-permission android:name="android.permission.VIBRATE" /> 31 <uses-permission android:name="android.permission.WAKE_LOCK" /> 32 33 <application 34 android:label="@string/app_name"> 35 <uses-library android:name="android.test.runner" /> 36 <activity 37 android:name=".EphemeralActivity" 38 android:theme="@android:style/Theme.NoDisplay" > 39 <!-- TEST: normal app can start w/o knowing about this activity --> 40 <intent-filter> 41 <action android:name="android.intent.action.VIEW" /> 42 <category android:name="android.intent.category.DEFAULT" /> 43 <category android:name="android.intent.category.BROWSABLE" /> 44 <data android:scheme="https" /> 45 <data android:host="cts.google.com" /> 46 <data android:path="/ephemeral" /> 47 </intent-filter> 48 <!-- TEST: ephemeral apps can see this activity using query methods --> 49 <!-- TEST: normal apps can't see this activity using query methods --> 50 <intent-filter android:priority="0"> 51 <action android:name="com.android.cts.ephemeraltest.QUERY" /> 52 <category android:name="android.intent.category.DEFAULT" /> 53 </intent-filter> 54 <!-- TEST: ephemeral apps can start this activity using directed intent --> 55 <!-- TEST: normal apps can't start this activity using directed intent --> 56 <intent-filter android:priority="0"> 57 <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL" /> 58 <category android:name="android.intent.category.DEFAULT" /> 59 </intent-filter> 60 <intent-filter> 61 <action android:name="android.intent.action.SEARCH" /> 62 </intent-filter> 63 <meta-data android:name="default-url" 64 android:value="https://ephemeralapp1.cts.android.com/search" /> 65 <meta-data 66 android:name="android.app.searchable" 67 android:resource="@xml/searchable" /> 68 </activity> 69 <activity 70 android:name=".EphemeralResult" 71 android:theme="@android:style/Theme.NoDisplay" > 72 <!-- TEST: allow sending results from other instant apps --> 73 <intent-filter> 74 <action android:name="android.intent.action.VIEW" /> 75 <category android:name="android.intent.category.DEFAULT" /> 76 <category android:name="android.intent.category.BROWSABLE" /> 77 <data android:scheme="https" /> 78 <data android:host="cts.google.com" /> 79 <data android:path="/result" /> 80 </intent-filter> 81 </activity> 82 <provider android:name=".SearchSuggestionProvider" 83 android:authorities="com.android.cts.ephemeralapp1.Search" /> 84 85 <activity 86 android:name=".EphemeralActivity2" 87 android:theme="@android:style/Theme.NoDisplay"> 88 <!-- TEST: ephemeral apps can start this activity using directed intent --> 89 <!-- TEST: normal apps can't start this activity using directed intent --> 90 <intent-filter android:priority="0"> 91 <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL_PRIVATE" /> 92 <category android:name="android.intent.category.DEFAULT" /> 93 </intent-filter> 94 </activity> 95 <activity 96 android:name=".EphemeralActivity3" 97 android:theme="@android:style/Theme.NoDisplay"> 98 <!-- TEST: ephemeral apps can start this activity using directed intent --> 99 </activity> 100 <activity android:name=".WebViewTestActivity" /> 101 <service 102 android:name=".EphemeralService"> 103 <!-- TEST: ephemeral apps can see this service using query methods --> 104 <intent-filter android:priority="0"> 105 <action android:name="com.android.cts.ephemeraltest.QUERY" /> 106 <category android:name="android.intent.category.DEFAULT" /> 107 </intent-filter> 108 <!-- TEST: ephemeral apps can start this service using directed intent --> 109 <intent-filter android:priority="-10"> 110 <action android:name="com.android.cts.ephemeraltest.START_EPHEMERAL" /> 111 <category android:name="android.intent.category.DEFAULT" /> 112 </intent-filter> 113 </service> 114 115 <provider 116 android:name=".EphemeralProvider" 117 android:authorities="com.android.cts.ephemeralapp1.provider" 118 android:exported="true"> 119 <intent-filter android:priority="0"> 120 <action android:name="com.android.cts.ephemeraltest.QUERY" /> 121 </intent-filter> 122 </provider> 123 <service android:name=".SomeService"/> 124 </application> 125 126 <instrumentation 127 android:name="androidx.test.runner.AndroidJUnitRunner" 128 android:targetPackage="com.android.cts.ephemeralapp1" /> 129</manifest> 130