1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2017, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22     xmlns:tools="http://schemas.android.com/tools"
23     package="com.android.launcher3">
24
25    <uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" />
26    <uses-permission android:name="android.permission.CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS"/>
27    <uses-permission android:name="android.permission.VIBRATE"/>
28    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
29    <uses-permission android:name="android.permission.START_TASKS_FROM_RECENTS"/>
30    <uses-permission android:name="android.permission.REMOVE_TASKS"/>
31    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
32    <uses-permission android:name="android.permission.MANAGE_ACTIVITY_TASKS"/>
33    <uses-permission android:name="android.permission.STATUS_BAR"/>
34    <uses-permission android:name="android.permission.STOP_APP_SWITCHES"/>
35    <uses-permission android:name="android.permission.SET_ORIENTATION"/>
36    <uses-permission android:name="android.permission.READ_FRAME_BUFFER"/>
37    <uses-permission android:name="android.permission.MANAGE_ACCESSIBILITY"/>
38    <uses-permission android:name="android.permission.MONITOR_INPUT"/>
39    <uses-permission android:name="android.permission.ALLOW_SLIPPERY_TOUCHES"/>
40
41    <uses-permission android:name="android.permission.SYSTEM_APPLICATION_OVERLAY" />
42
43    <application android:backupAgent="com.android.launcher3.LauncherBackupAgent"
44         android:fullBackupOnly="true"
45         android:fullBackupContent="@xml/backupscheme"
46         android:hardwareAccelerated="true"
47         android:icon="@drawable/ic_launcher_home"
48         android:label="@string/derived_app_name"
49         android:theme="@style/AppTheme"
50         android:largeHeap="@bool/config_largeHeap"
51         android:restoreAnyVersion="true"
52         android:supportsRtl="true">
53
54        <service android:name="com.android.quickstep.TouchInteractionService"
55             android:permission="android.permission.STATUS_BAR_SERVICE"
56             android:directBootAware="true"
57             android:exported="true">
58            <intent-filter>
59                <action android:name="android.intent.action.QUICKSTEP_SERVICE"/>
60            </intent-filter>
61        </service>
62
63        <activity android:name="com.android.quickstep.RecentsActivity"
64             android:excludeFromRecents="true"
65             android:launchMode="singleTask"
66             android:clearTaskOnLaunch="true"
67             android:stateNotNeeded="true"
68             android:theme="@style/LauncherTheme"
69             android:screenOrientation="unspecified"
70             android:configChanges="keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenSize|screenLayout|smallestScreenSize"
71             android:resizeableActivity="true"
72             android:resumeWhilePausing="true"
73             android:taskAffinity=""/>
74
75        <!-- Content provider to settings search. The autority should be same as the packageName -->
76        <provider android:name="com.android.quickstep.LauncherSearchIndexablesProvider"
77             android:authorities="${packageName}"
78             android:grantUriPermissions="true"
79             android:multiprocess="true"
80             android:permission="android.permission.READ_SEARCH_INDEXABLES"
81             android:exported="true">
82            <intent-filter>
83                <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER"/>
84            </intent-filter>
85        </provider>
86
87        <!-- FileProvider used for sharing images. -->
88        <provider android:name="androidx.core.content.FileProvider"
89             android:authorities="${packageName}.overview.fileprovider"
90             android:exported="false"
91             android:grantUriPermissions="true">
92            <meta-data android:name="android.support.FILE_PROVIDER_PATHS"
93                 android:resource="@xml/overview_file_provider_paths"/>
94        </provider>
95
96        <activity android:name="com.android.launcher3.proxy.ProxyActivityStarter"
97             android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
98             android:launchMode="singleTask"
99             android:clearTaskOnLaunch="true"
100             android:exported="false"/>
101
102        <activity android:name="com.android.quickstep.interaction.GestureSandboxActivity"
103            android:autoRemoveFromRecents="true"
104            android:excludeFromRecents="true"
105            android:exported="true">
106            <intent-filter>
107                <action android:name="com.android.quickstep.action.GESTURE_SANDBOX"/>
108                <category android:name="android.intent.category.DEFAULT"/>
109            </intent-filter>
110        </activity>
111
112        <!--
113        Activity following gesture nav onboarding.
114        It's protected by android.permission.REBOOT to ensure that only system apps can start it
115        (setup wizard already has this permission)
116        -->
117        <activity android:name="com.android.quickstep.interaction.AllSetActivity"
118            android:autoRemoveFromRecents="true"
119            android:excludeFromRecents="true"
120            android:permission="android.permission.REBOOT"
121            android:theme="@style/AllSetTheme"
122            android:label="@string/allset_title"
123            android:exported="true">
124            <intent-filter>
125                <action android:name="com.android.quickstep.action.GESTURE_ONBOARDING_ALL_SET"/>
126                <category android:name="android.intent.category.DEFAULT"/>
127            </intent-filter>
128        </activity>
129
130    </application>
131
132</manifest>
133