1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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:androidprv="http://schemas.android.com/apk/prv/res/android"
19    xmlns:tools="http://schemas.android.com/tools"
20    android:sharedUserId="android.uid.system"
21    package="com.android.systemui.tests" >
22
23    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
24    <uses-permission android:name="android.permission.ACCESS_VOICE_INTERACTION_SERVICE" />
25    <uses-permission android:name="android.permission.INJECT_EVENTS" />
26    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
27    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
28    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
29    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
30    <uses-permission android:name="android.permission.MANAGE_USERS" />
31    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
32    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
33    <uses-permission android:name="android.permission.BIND_QUICK_SETTINGS_TILE" />
34    <uses-permission android:name="android.permission.ACCESS_KEYGUARD_SECURE_STORAGE" />
35    <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
36    <uses-permission android:name="android.permission.ACCESS_VR_MANAGER" />
37    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
38    <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" />
39    <uses-permission android:name="android.permission.REQUEST_NETWORK_SCORES" />
40    <uses-permission android:name="android.permission.CONTROL_VPN" />
41    <uses-permission android:name="android.permission.WAKE_LOCK" />
42    <uses-permission android:name="android.permission.GET_APP_OPS_STATS" />
43    <uses-permission android:name="android.permission.BLUETOOTH" />
44    <uses-permission android:name="android.permission.TRUST_LISTENER" />
45    <uses-permission android:name="android.permission.USE_FINGERPRINT" />
46    <uses-permission android:name="android.permission.DEVICE_POWER" />
47    <uses-permission android:name="android.permission.READ_CONTACTS" />
48    <uses-permission android:name="android.permission.STATUS_BAR" />
49    <uses-permission android:name="android.permission.MANAGE_ACTIVITY_TASKS" />
50    <uses-permission android:name="android.permission.REAL_GET_TASKS" />
51    <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" />
52    <uses-permission android:name="android.permission.NETWORK_SETTINGS" />
53    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
54    <uses-permission android:name="android.permission.REGISTER_WINDOW_MANAGER_LISTENERS" />
55
56    <application android:debuggable="true" android:largeHeap="true" android:testOnly="true"
57            android:enableOnBackInvokedCallback="true" >
58        <uses-library android:name="android.test.runner" />
59
60        <receiver android:name="com.android.systemui.SliceBroadcastRelayHandlerTest$Receiver"
61            android:exported="true">
62            <intent-filter>
63                <action android:name="com.android.systemui.action.TEST_ACTION" />
64            </intent-filter>
65        </receiver>
66
67        <activity android:name="com.android.systemui.wmshell.BubblesTestActivity"
68            android:allowEmbedded="true"
69            android:documentLaunchMode="always"
70            android:excludeFromRecents="true"
71            android:exported="false"
72            android:resizeableActivity="true" />
73
74        <activity android:name="com.android.systemui.emergency.EmergencyActivityTest"
75                  android:exported="true">
76            <intent-filter>
77                <action android:name="com.android.systemui.action.LAUNCH_EMERGENCY"/>
78            </intent-filter>
79        </activity>
80
81        <activity
82            android:name="com.android.systemui.globalactions.GlobalActionsImeTest$TestActivity"
83            android:excludeFromRecents="true"
84            android:exported="false" />
85
86        <activity android:name="com.android.systemui.controls.management.TestControlsRequestDialog"
87                  android:exported="false"
88                  android:excludeFromRecents="true"
89                  />
90
91        <activity android:name="com.android.systemui.settings.brightness.BrightnessDialogTest$TestDialog"
92            android:exported="false"
93            android:excludeFromRecents="true"
94            />
95
96        <activity android:name="com.android.systemui.controls.management.ControlsEditingActivityTest$TestableControlsEditingActivity"
97            android:exported="false"
98            android:excludeFromRecents="true"
99            />
100
101        <activity android:name="com.android.systemui.controls.management.ControlsFavoritingActivityTest$TestableControlsFavoritingActivity"
102            android:exported="false"
103            android:excludeFromRecents="true"
104            />
105
106        <activity android:name="com.android.systemui.controls.management.ControlsProviderSelectorActivityTest$TestableControlsProviderSelectorActivity"
107            android:exported="false"
108            android:excludeFromRecents="true"
109            />
110
111        <activity android:name="com.android.systemui.controls.ui.TestableControlsActivity"
112            android:exported="false"
113            android:excludeFromRecents="true"
114            />
115
116        <activity android:name="com.android.systemui.screenshot.scroll.ScrollViewActivity"
117                  android:exported="false" />
118
119        <activity android:name="com.android.systemui.screenshot.RecyclerViewActivity"
120                  android:exported="false" />
121
122        <!-- started from UsbDeviceSettingsManager -->
123        <activity android:name="com.android.systemui.usb.UsbPermissionActivityTest$UsbPermissionActivityTestable"
124                  android:exported="false"
125                  android:theme="@style/Theme.SystemUI.Dialog.Alert"
126                  android:finishOnCloseSystemDialogs="true"
127                  android:excludeFromRecents="true" />
128
129        <activity android:name="com.android.systemui.user.CreateUserActivityTest$CreateUserActivityTestable"
130            android:exported="false"
131            android:theme="@style/Theme.SystemUI.Dialog.Alert"
132            android:finishOnCloseSystemDialogs="true"
133            android:excludeFromRecents="true" />
134
135        <activity android:name="com.android.systemui.sensorprivacy.SensorUseStartedActivityTest$SensorUseStartedActivityTestable"
136                  android:exported="false"
137                  android:theme="@style/Theme.SystemUI.Dialog.Alert"
138                  android:finishOnCloseSystemDialogs="true"
139                  android:excludeFromRecents="true" />
140
141        <activity android:name="com.android.systemui.activity.EmptyTestActivity"
142                  android:exported="false">
143            <intent-filter>
144                <action android:name="android.intent.action.MAIN" />
145                <category android:name="android.intent.category.DEFAULT" />
146            </intent-filter>
147        </activity>
148
149        <provider
150            android:name="androidx.startup.InitializationProvider"
151            tools:replace="android:authorities"
152            android:authorities="${applicationId}.startup-tests"
153            android:exported="false"
154            android:enabled="false"
155            android:multiprocess="true" />
156        <provider android:name="com.android.systemui.keyguard.KeyguardSliceProvider"
157            android:authorities="com.android.systemui.test.keyguard.disabled"
158            android:enabled="false"
159            tools:replace="android:authorities"
160            tools:node="remove" />
161
162        <provider android:name="com.android.systemui.keyguard.CustomizationProvider"
163            android:authorities="com.android.systemui.test.keyguard.quickaffordance.disabled"
164            android:enabled="false"
165            tools:replace="android:authorities"
166            tools:node="remove" />
167
168        <provider
169            android:name="androidx.core.content.FileProvider"
170            android:authorities="com.android.systemui.test.fileprovider"
171            android:exported="false"
172            android:enabled="false"
173            tools:replace="android:authorities"
174            android:grantUriPermissions="true" />
175
176        <activity
177            android:name="com.android.systemui.screenshot.appclips.AppClipsTrampolineActivityTest$AppClipsTrampolineActivityTestable"
178            android:exported="false"
179            android:permission="com.android.systemui.permission.SELF"
180            android:excludeFromRecents="true" />
181
182        <activity
183            android:name="com.android.systemui.screenshot.appclips.AppClipsActivityTest$AppClipsActivityTestable"
184            android:exported="false"
185            android:permission="com.android.systemui.permission.SELF"
186            android:excludeFromRecents="true" />
187
188        <activity
189            android:name="com.android.systemui.notetask.shortcut.LaunchNoteTaskActivity"
190            android:exported="false"
191            android:permission="com.android.systemui.permission.SELF"
192            android:excludeFromRecents="true" />
193
194        <activity
195            android:name="com.android.systemui.logcat.LogAccessDialogActivityTest$DialogTestable"
196            android:exported="false"
197            android:permission="com.android.systemui.permission.SELF"
198            android:excludeFromRecents="true" />
199
200        <activity
201            android:name="com.android.systemui.notetask.LaunchNotesRoleSettingsTrampolineActivity"
202            android:exported="false"
203            android:permission="com.android.systemui.permission.SELF"
204            android:excludeFromRecents="true" >
205            <intent-filter>
206                <action android:name="com.android.systemui.action.MANAGE_NOTES_ROLE_FROM_QUICK_AFFORDANCE" />
207                <category android:name="android.intent.category.DEFAULT" />
208            </intent-filter>
209        </activity>
210
211        <activity
212            android:name="com.android.systemui.accessibility.EmptyAccessibilityShortcutTargetActivity"
213            android:exported="false">
214            <intent-filter>
215                <action android:name="android.intent.action.MAIN" />
216                <category android:name="android.intent.category.ACCESSIBILITY_SHORTCUT_TARGET" />
217            </intent-filter>
218
219            <meta-data
220                android:name="android.accessibilityshortcut.target"
221                android:resource="@xml/accessibility_shortcut_test_activity" />
222        </activity>
223    </application>
224
225    <instrumentation android:name="android.testing.TestableInstrumentation"
226        android:targetPackage="com.android.systemui.tests"
227        android:label="Tests for SystemUI" />
228</manifest>
229