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.normalapp"> 19 <uses-sdk 20 android:minSdkVersion="24" /> 21 22 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/> 23 <application 24 android:label="@string/app_name"> 25 <uses-library android:name="android.test.runner" /> 26 <activity 27 android:name=".NormalActivity" 28 android:theme="@android:style/Theme.NoDisplay"> 29 <!-- TEST: ephemeral apps can't see this activity using query methods --> 30 <intent-filter android:priority="-20"> 31 <action android:name="com.android.cts.ephemeraltest.QUERY" /> 32 <category android:name="android.intent.category.DEFAULT" /> 33 </intent-filter> 34 <!-- TEST: ephemeral apps can't start this activity using directed intent --> 35 <intent-filter> 36 <action android:name="com.android.cts.ephemeraltest.START_NORMAL" /> 37 <category android:name="android.intent.category.DEFAULT" /> 38 </intent-filter> 39 <intent-filter> 40 <action android:name="android.intent.action.SEARCH" /> 41 </intent-filter> 42 <meta-data android:name="default-url" 43 android:value="https://normalapp.cts.android.com/search" /> 44 <meta-data 45 android:name="android.app.searchable" 46 android:resource="@xml/searchable" /> 47 </activity> 48 <activity 49 android:name=".NormalWebActivity" 50 android:theme="@android:style/Theme.NoDisplay"> 51 <!-- TEST: implicitly exposes this activity to ephemeral apps --> 52 <intent-filter> 53 <action android:name="android.intent.action.VIEW" /> 54 <category android:name="android.intent.category.DEFAULT" /> 55 <category android:name="android.intent.category.BROWSABLE" /> 56 <data android:scheme="https" /> 57 <data android:host="cts.google.com" /> 58 <data android:path="/normal" /> 59 </intent-filter> 60 </activity> 61 <activity 62 android:name=".ExposedActivity" 63 android:visibleToInstantApps="true" 64 android:theme="@android:style/Theme.NoDisplay"> 65 <!-- TEST: ephemeral apps can see this activity using query methods --> 66 <intent-filter android:priority="-10"> 67 <action android:name="com.android.cts.ephemeraltest.QUERY" /> 68 <category android:name="android.intent.category.DEFAULT" /> 69 </intent-filter> 70 <!-- TEST: ephemeral apps can start this activity using directed intent --> 71 <intent-filter android:priority="-10"> 72 <action android:name="com.android.cts.ephemeraltest.START_EXPOSED" /> 73 <category android:name="android.intent.category.DEFAULT" /> 74 </intent-filter> 75 <intent-filter> 76 <action android:name="android.intent.action.SEARCH" /> 77 </intent-filter> 78 <meta-data android:name="default-url" 79 android:value="https://normalapp.cts.android.com/search" /> 80 <meta-data 81 android:name="android.app.searchable" 82 android:resource="@xml/searchable" /> 83 </activity> 84 <provider android:name=".SearchSuggestionProvider" 85 android:authorities="com.android.cts.normalapp.Search" /> 86 87 <service 88 android:name=".NormalService"> 89 <!-- TEST: ephemeral apps can't see this service using query methods --> 90 <intent-filter android:priority="-20"> 91 <action android:name="com.android.cts.ephemeraltest.QUERY" /> 92 <category android:name="android.intent.category.DEFAULT" /> 93 </intent-filter> 94 <!-- TEST: ephemeral apps can't start this service using directed intent --> 95 <intent-filter> 96 <action android:name="com.android.cts.ephemeraltest.START_NORMAL" /> 97 <category android:name="android.intent.category.DEFAULT" /> 98 </intent-filter> 99 </service> 100 <service 101 android:name=".ExposedService" 102 android:visibleToInstantApps="true"> 103 <!-- TEST: ephemeral apps can see this service using query methods --> 104 <intent-filter android:priority="-10"> 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_EXPOSED" /> 111 <category android:name="android.intent.category.DEFAULT" /> 112 </intent-filter> 113 </service> 114 115 <provider 116 android:name=".NormalProvider" 117 android:authorities="com.android.cts.normalapp.provider" 118 android:exported="true"> 119 <intent-filter android:priority="-20"> 120 <action android:name="com.android.cts.ephemeraltest.QUERY" /> 121 </intent-filter> 122 </provider> 123 <provider 124 android:name=".ExposedProvider" 125 android:authorities="com.android.cts.normalapp.exposed.provider" 126 android:visibleToInstantApps="true" 127 android:exported="true"> 128 <intent-filter android:priority="-10"> 129 <action android:name="com.android.cts.ephemeraltest.QUERY" /> 130 </intent-filter> 131 </provider> 132 </application> 133 134 <instrumentation 135 android:name="androidx.test.runner.AndroidJUnitRunner" 136 android:targetPackage="com.android.cts.normalapp" /> 137</manifest> 138