1*b7c941bbSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?> 2*b7c941bbSAndroid Build Coastguard Worker<!-- Copyright (C) 2021 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<!-- This manifest is to create the apk of CtsSplitInstantApp for the tests of the splitName of 18*b7c941bbSAndroid Build Coastguard Worker component such as Service and Provider. They are only supported in the instant app. In the full 19*b7c941bbSAndroid Build Coastguard Worker app, declares a provider which is not defined in the apk would crash the application while 20*b7c941bbSAndroid Build Coastguard Worker application is launching. A specific apk for these tests is needed. 21*b7c941bbSAndroid Build Coastguard Worker--> 22*b7c941bbSAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android" 23*b7c941bbSAndroid Build Coastguard Worker xmlns:tools="http://schemas.android.com/tools" 24*b7c941bbSAndroid Build Coastguard Worker package="com.android.cts.splitapp" 25*b7c941bbSAndroid Build Coastguard Worker android:targetSandboxVersion="2"> 26*b7c941bbSAndroid Build Coastguard Worker 27*b7c941bbSAndroid Build Coastguard Worker <!-- The androidx test libraries uses minSdkVersion 14. Applies an overrideLibrary rule here 28*b7c941bbSAndroid Build Coastguard Worker to pass the build error, since tests need to use minSdkVersion 4. --> 29*b7c941bbSAndroid Build Coastguard Worker <uses-sdk android:minSdkVersion="4" tools:overrideLibrary="androidx.test.runner, 30*b7c941bbSAndroid Build Coastguard Worker androidx.test.rules, androidx.test.monitor, androidx.test.services.storage, 31*b7c941bbSAndroid Build Coastguard Worker androidx.test.annotation, androidx.annotation.experimental, androidx.tracing"/> 32*b7c941bbSAndroid Build Coastguard Worker 33*b7c941bbSAndroid Build Coastguard Worker <uses-permission android:name="android.permission.CAMERA"/> 34*b7c941bbSAndroid Build Coastguard Worker <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> 35*b7c941bbSAndroid Build Coastguard Worker <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> 36*b7c941bbSAndroid Build Coastguard Worker 37*b7c941bbSAndroid Build Coastguard Worker <application android:label="SplitApp" 38*b7c941bbSAndroid Build Coastguard Worker android:multiArch="true"> 39*b7c941bbSAndroid Build Coastguard Worker <activity android:name=".MyActivity" 40*b7c941bbSAndroid Build Coastguard Worker android:exported="true"> 41*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 42*b7c941bbSAndroid Build Coastguard Worker <action android:name="android.intent.action.MAIN"/> 43*b7c941bbSAndroid Build Coastguard Worker <category android:name="android.intent.category.LAUNCHER"/> 44*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 45*b7c941bbSAndroid Build Coastguard Worker <meta-data android:name="android.service.wallpaper" 46*b7c941bbSAndroid Build Coastguard Worker android:resource="@xml/my_activity_meta"/> 47*b7c941bbSAndroid Build Coastguard Worker </activity> 48*b7c941bbSAndroid Build Coastguard Worker <activity android:name=".ThemeActivity" android:theme="@style/Theme_Base" 49*b7c941bbSAndroid Build Coastguard Worker android:exported="false"> 50*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 51*b7c941bbSAndroid Build Coastguard Worker <action android:name="com.android.cts.splitapp.intent.THEME_TEST"/> 52*b7c941bbSAndroid Build Coastguard Worker <category android:name="android.intent.category.DEFAULT"/> 53*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 54*b7c941bbSAndroid Build Coastguard Worker </activity> 55*b7c941bbSAndroid Build Coastguard Worker <activity android:name=".feature.warm.EmptyActivity" android:splitName="feature_warm" 56*b7c941bbSAndroid Build Coastguard Worker android:exported="true"> 57*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 58*b7c941bbSAndroid Build Coastguard Worker <action android:name="com.android.cts.splitapp.intent.SPLIT_NAME_TEST"/> 59*b7c941bbSAndroid Build Coastguard Worker <category android:name="android.intent.category.DEFAULT"/> 60*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 61*b7c941bbSAndroid Build Coastguard Worker </activity> 62*b7c941bbSAndroid Build Coastguard Worker <receiver android:name=".MyReceiver" 63*b7c941bbSAndroid Build Coastguard Worker android:enabled="@bool/my_receiver_enabled" 64*b7c941bbSAndroid Build Coastguard Worker android:exported="true"> 65*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 66*b7c941bbSAndroid Build Coastguard Worker <action android:name="android.intent.action.DATE_CHANGED"/> 67*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 68*b7c941bbSAndroid Build Coastguard Worker </receiver> 69*b7c941bbSAndroid Build Coastguard Worker <receiver android:name=".LockedBootReceiver" 70*b7c941bbSAndroid Build Coastguard Worker android:exported="true" 71*b7c941bbSAndroid Build Coastguard Worker android:directBootAware="true"> 72*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 73*b7c941bbSAndroid Build Coastguard Worker <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/> 74*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 75*b7c941bbSAndroid Build Coastguard Worker </receiver> 76*b7c941bbSAndroid Build Coastguard Worker <receiver android:name=".BootReceiver" 77*b7c941bbSAndroid Build Coastguard Worker android:exported="true"> 78*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 79*b7c941bbSAndroid Build Coastguard Worker <action android:name="android.intent.action.BOOT_COMPLETED"/> 80*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 81*b7c941bbSAndroid Build Coastguard Worker </receiver> 82*b7c941bbSAndroid Build Coastguard Worker 83*b7c941bbSAndroid Build Coastguard Worker <provider android:name=".RemoteQueryProvider" 84*b7c941bbSAndroid Build Coastguard Worker android:authorities="com.android.cts.splitapp" 85*b7c941bbSAndroid Build Coastguard Worker android:exported="true" 86*b7c941bbSAndroid Build Coastguard Worker android:directBootAware="true"> 87*b7c941bbSAndroid Build Coastguard Worker </provider> 88*b7c941bbSAndroid Build Coastguard Worker <!-- Provider defined in the split of feature_warm. --> 89*b7c941bbSAndroid Build Coastguard Worker <provider android:name=".feature.warm.EmptyProvider" android:splitName="feature_warm" 90*b7c941bbSAndroid Build Coastguard Worker android:authorities="com.android.cts.splitapp.feature.warm" 91*b7c941bbSAndroid Build Coastguard Worker android:exported="true"> 92*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 93*b7c941bbSAndroid Build Coastguard Worker <action android:name="com.android.cts.splitapp.intent.SPLIT_NAME_TEST"/> 94*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 95*b7c941bbSAndroid Build Coastguard Worker </provider> 96*b7c941bbSAndroid Build Coastguard Worker 97*b7c941bbSAndroid Build Coastguard Worker <!-- Service defined in the split of feature_warm. --> 98*b7c941bbSAndroid Build Coastguard Worker <service android:name=".feature.warm.EmptyService" android:splitName="feature_warm" 99*b7c941bbSAndroid Build Coastguard Worker android:exported="true"> 100*b7c941bbSAndroid Build Coastguard Worker <intent-filter> 101*b7c941bbSAndroid Build Coastguard Worker <action android:name="com.android.cts.splitapp.intent.SPLIT_NAME_TEST"/> 102*b7c941bbSAndroid Build Coastguard Worker </intent-filter> 103*b7c941bbSAndroid Build Coastguard Worker </service> 104*b7c941bbSAndroid Build Coastguard Worker 105*b7c941bbSAndroid Build Coastguard Worker <uses-library android:name="android.test.runner"/> 106*b7c941bbSAndroid Build Coastguard Worker </application> 107*b7c941bbSAndroid Build Coastguard Worker 108*b7c941bbSAndroid Build Coastguard Worker <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 109*b7c941bbSAndroid Build Coastguard Worker android:targetPackage="com.android.cts.splitapp"/> 110*b7c941bbSAndroid Build Coastguard Worker 111*b7c941bbSAndroid Build Coastguard Worker</manifest> 112