1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2023 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<manifest
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:tools="http://schemas.android.com/tools"
19    package="com.android.systemui">
20    <!--  This manifest exists only to exclude components and permissions of the common system UI
21          which are not used on TV.  -->
22    <application>
23        <!-- Remove overridden functionality -->
24        <activity android:name=".sensorprivacy.SensorUseStartedActivity" tools:node="remove" />
25        <activity android:name=".usb.UsbConfirmActivity" tools:node="remove" />
26        <activity android:name=".usb.UsbPermissionActivity" tools:node="remove" />
27
28        <!-- Remove unused functionality from phone system UI -->
29        <service android:name=".wallet.controller.WalletContextualLocationsService"
30            tools:node="remove" />
31        <service android:name=".screenshot.TakeScreenshotService"
32            tools:node="remove" />
33        <receiver android:name=".screenshot.ScreenshotServiceErrorReceiver"
34            tools:node="remove" />
35        <activity android:name=".screenshot.LongScreenshotActivity"
36            tools:node="remove" />
37        <service android:name=".screenshot.ScreenshotProxyService"
38            tools:node="remove" />
39        <service android:name=".screenshot.ScreenshotCrossProfileService"
40            tools:node="remove" />
41        <activity android:name=".screenshot.appclips.AppClipsTrampolineActivity"
42            tools:node="remove" />
43        <activity android:name=".screenshot.appclips.AppClipsActivity"
44            tools:node="remove" />
45        <service android:name=".screenshot.appclips.AppClipsScreenshotHelperService"
46            tools:node="remove" />
47        <service android:name=".screenshot.appclips.AppClipsService"
48            tools:node="remove" />
49        <service android:name=".screenrecord.RecordingService"
50            tools:node="remove" />
51        <receiver android:name=".screenshot.ActionProxyReceiver"
52            tools:node="remove" />
53        <receiver android:name=".screenshot.DeleteScreenshotReceiver"
54            tools:node="remove" />
55        <receiver android:name=".screenshot.SmartActionsReceiver"
56            tools:node="remove" />
57        <!-- TODO(b/295161958) check if this can be removed safely -->
58        <activity android:name=".usb.UsbAccessoryUriActivity"
59            tools:node="remove" />
60        <!-- TODO(b/295161958) check if this can be removed safely -->
61        <activity android:name=".usb.UsbContaminantActivity"
62            tools:node="remove" />
63        <!-- TODO(b/295161958) check if this can be removed safely -->
64        <activity android:name=".usb.UsbDebuggingActivity"
65            tools:node="remove" />
66        <!-- TODO(b/295161958) check if this can be removed safely -->
67        <activity android:name=".usb.UsbDebuggingSecondaryUserActivity"
68            tools:node="remove" />
69        <!-- TODO(b/295161958) check if this can be removed safely -->
70        <activity android:name=".wifi.WifiDebuggingActivity"
71            tools:node="remove" />
72        <!-- TODO(b/295161958) check if this can be removed safely -->
73        <activity-alias android:name=".WifiDebuggingActivityAlias"
74            android:targetActivity=".wifi.WifiDebuggingActivity"
75            tools:node="remove" />
76        <!-- TODO(b/295161958) check if this can be removed safely -->
77        <activity android:name=".wifi.WifiDebuggingSecondaryUserActivity"
78            tools:node="remove" />
79        <!-- TODO(b/295161958) check if this can be removed safely -->
80        <activity android:name=".net.NetworkOverLimitActivity"
81            tools:node="remove" />
82        <activity android:name=".media.MediaProjectionAppSelectorActivity"
83            tools:node="remove" />
84        <!-- TODO(b/295161958) check if this can be removed safely -->
85        <activity android:name=".SlicePermissionActivity"
86            tools:node="remove" />
87        <activity android:name=".telephony.ui.activity.SwitchToManagedProfileForCallActivity"
88            tools:node="remove" />
89        <!-- platform logo easter egg activity -->
90        <activity android:name=".DessertCase"
91            tools:node="remove" />
92        <activity android:name=".people.PeopleSpaceActivity"
93            tools:node="remove" />
94        <activity android:name=".people.widget.LaunchConversationActivity"
95            tools:node="remove" />
96        <receiver android:name=".people.widget.PeopleSpaceWidgetProvider"
97            tools:node="remove" />
98        <receiver android:name=".people.widget.PeopleSpaceWidgetPinnedReceiver"
99            tools:node="remove" />
100        <service android:name=".people.PeopleBackupFollowUpJob"
101            tools:node="remove" />
102        <service android:name=".DessertCaseDream"
103            tools:node="remove" />
104        <service android:name=".keyguard.KeyguardService"
105            tools:node="remove" />
106        <service android:name=".dreams.DreamOverlayService"
107            tools:node="remove" />
108        <activity android:name=".keyguard.WorkLockActivity"
109            tools:node="remove" />
110        <!-- TODO(b/295161958) check if this can be removed safely -->
111        <activity android:name=".user.CreateUserActivity"
112            tools:node="remove" />
113        <activity android:name=".Somnambulator"
114            tools:node="remove" />
115        <activity android:name=".settings.brightness.BrightnessDialog"
116            tools:node="remove" />
117        <activity android:name=".contrast.ContrastDialogActivity"
118            tools:node="remove" />
119        <activity android:name=".ForegroundServicesDialog"
120            tools:node="remove" />
121        <activity android:name=".clipboardoverlay.EditTextActivity"
122            tools:node="remove" />
123        <activity android:name=".controls.management.ControlsProviderSelectorActivity"
124            tools:node="remove" />
125        <activity android:name=".controls.management.ControlsEditingActivity"
126            tools:node="remove" />
127        <activity android:name=".controls.management.ControlsFavoritingActivity"
128            tools:node="remove" />
129        <activity android:name=".controls.ui.ControlsActivity"
130            tools:node="remove" />
131        <activity android:name=".wallet.ui.WalletActivity"
132            tools:node="remove" />
133        <receiver android:name=".controls.management.ControlsRequestReceiver"
134            tools:node="remove" />
135        <service android:name=".controls.controller.AuxiliaryPersistenceWrapper$DeletionJobService"
136            tools:node="remove" />
137        <activity android:name=".notetask.shortcut.CreateNoteTaskShortcutActivity"
138            tools:node="remove" />
139        <service android:name=".notetask.NoteTaskControllerUpdateService"
140            tools:node="remove" />
141        <service android:name=".notetask.NoteTaskBubblesController$NoteTaskBubblesService"
142            tools:node="remove" />
143        <activity android:name=".notetask.shortcut.LaunchNoteTaskActivity"
144            tools:node="remove" />
145        <activity android:name=".notetask.LaunchNotesRoleSettingsTrampolineActivity"
146            tools:node="remove" />
147        <activity android:name=".controls.management.ControlsRequestDialog"
148            tools:node="remove" />
149        <service android:name=".doze.DozeService"
150            tools:node="remove" />
151        <receiver android:name=".tuner.TunerService$ClearReceiver"
152            tools:node="remove" />
153        <receiver android:name=".statusbar.KeyboardShortcutsReceiver"
154            tools:node="remove" />
155
156        <provider android:name="com.android.systemui.people.PeopleProvider"
157            android:authorities="${applicationId}.people.PeopleProvider"
158            tools:node="remove" />
159        <provider android:name=".keyguard.KeyguardSliceProvider"
160            android:authorities="${applicationId}.keyguard"
161            tools:node="remove" />
162        <provider android:name=".keyguard.CustomizationProvider"
163            android:authorities="${applicationId}.customization"
164            tools:node="remove" />
165
166        <!-- Remove unused functionality from SystemUI libraries -->
167        <activity android:name="com.android.wm.shell.legacysplitscreen.ForcedResizableInfoActivity"
168            tools:node="remove" />
169        <activity android:name="com.android.settingslib.users.AvatarPickerActivity"
170            tools:node="remove" />
171        <service android:name="androidx.room.MultiInstanceInvalidationService"
172            tools:node="remove" />
173        <receiver android:name="androidx.remotecallback.ProviderRelayReceiver"
174            tools:node="remove" />
175        <activity android:name="androidx.slice.compat.SlicePermissionActivity"
176            tools:node="remove" />
177        <receiver android:name="androidx.profileinstaller.ProfileInstallReceiver"
178            tools:node="remove" />
179    </application>
180</manifest>