1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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     xmlns:tools="http://schemas.android.com/tools"
19     package="com.android.cts.splitapp"
20     android:targetSandboxVersion="2">
21
22    <!-- The androidx test libraries uses minSdkVersion 14. Applies an overrideLibrary rule here
23         to pass the build error, since tests need to use minSdkVersion 4. -->
24    <uses-sdk android:minSdkVersion="4" tools:overrideLibrary="androidx.test.runner,
25        androidx.test.rules, androidx.test.monitor, androidx.test.services.storage,
26        androidx.test.annotation, androidx.annotation.experimental, androidx.tracing"/>
27
28    <!-- Remove the CAMERA permission
29    <uses-permission android:name="android.permission.CAMERA"/> -->
30    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
31    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
32    <!-- Add the VIBRATE permission -->
33    <uses-permission android:name="android.permission.VIBRATE"/>
34
35    <application android:label="SplitApp"
36         android:multiArch="true">
37        <!-- Updates to .revision_a.MyActivity -->
38        <activity android:name=".revision_a.MyActivity"
39             android:exported="true">
40            <intent-filter>
41                <action android:name="android.intent.action.MAIN"/>
42                <category android:name="android.intent.category.LAUNCHER"/>
43            </intent-filter>
44            <meta-data android:name="android.service.wallpaper"
45                 android:resource="@xml/my_activity_meta"/>
46        </activity>
47        <activity android:name=".ThemeActivity" android:theme="@style/Theme_Base"
48                  android:exported="false">
49            <intent-filter>
50                <action android:name="com.android.cts.splitapp.intent.THEME_TEST"/>
51                <category android:name="android.intent.category.DEFAULT"/>
52            </intent-filter>
53        </activity>
54        <!-- Updates to .revision_a.MyReceiver -->
55        <receiver android:name=".revision_a.MyReceiver"
56             android:enabled="@bool/my_receiver_enabled"
57             android:exported="true">
58            <intent-filter>
59                <action android:name="android.intent.action.DATE_CHANGED"/>
60            </intent-filter>
61        </receiver>
62        <receiver android:name=".LockedBootReceiver"
63             android:exported="true"
64             android:directBootAware="true">
65            <intent-filter>
66                <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
67            </intent-filter>
68        </receiver>
69        <receiver android:name=".BootReceiver"
70             android:exported="true">
71            <intent-filter>
72                <action android:name="android.intent.action.BOOT_COMPLETED"/>
73            </intent-filter>
74        </receiver>
75
76        <!-- Updates to .revision_a.MyProvider -->
77        <provider android:name=".revision_a.MyProvider"
78             android:authorities="com.android.cts.splitapp"
79             android:exported="true"
80             android:directBootAware="true">
81        </provider>
82
83        <uses-library android:name="android.test.runner"/>
84    </application>
85
86    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
87         android:targetPackage="com.android.cts.splitapp"/>
88
89</manifest>
90