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