1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2016, 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<manifest
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    package="com.android.launcher3">
23
24    <!--
25    The manifest defines the common entries that should be present in any derivative of Launcher3.
26    The components should generally not require any changes.
27
28    Rest of the components are defined in AndroidManifest.xml which is merged with this manifest
29    at compile time. Note that the components defined in AndroidManifest.xml are also required,
30    with some minor changed based on the derivative app.
31    -->
32
33    <uses-permission android:name="android.permission.CALL_PHONE" />
34    <uses-permission android:name="android.permission.SET_WALLPAPER" />
35    <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
36    <uses-permission android:name="android.permission.BIND_APPWIDGET" />
37    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
38    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
39    <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
40    <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
41    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
42    <!-- for rotating surface by arbitrary degree -->
43    <uses-permission android:name="android.permission.ROTATE_SURFACE_FLINGER" />
44
45    <!--
46    Permissions required for read/write access to the workspace data. These permission name
47    should not conflict with that defined in other apps, as such an app should embed its package
48    name in the permissions. eq com.mypackage.permission.READ_SETTINGS
49    -->
50    <permission
51        android:name="${packageName}.permission.READ_SETTINGS"
52        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
53        android:protectionLevel="signatureOrSystem"
54        android:label="@string/permlab_read_settings"
55        android:description="@string/permdesc_read_settings"/>
56    <permission
57        android:name="${packageName}.permission.WRITE_SETTINGS"
58        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
59        android:protectionLevel="signatureOrSystem"
60        android:label="@string/permlab_write_settings"
61        android:description="@string/permdesc_write_settings"/>
62
63    <uses-permission android:name="${packageName}.permission.READ_SETTINGS" />
64    <uses-permission android:name="${packageName}.permission.WRITE_SETTINGS" />
65
66    <application
67        android:backupAgent="com.android.launcher3.LauncherBackupAgent"
68        android:fullBackupOnly="true"
69        android:backupInForeground="true"
70        android:fullBackupContent="@xml/backupscheme"
71        android:hardwareAccelerated="true"
72        android:icon="@drawable/ic_launcher_home"
73        android:label="@string/derived_app_name"
74        android:largeHeap="@bool/config_largeHeap"
75        android:restoreAnyVersion="true"
76        android:supportsRtl="true" >
77
78        <!-- Intent received when a session is committed -->
79        <receiver
80            android:name="com.android.launcher3.SessionCommitReceiver"
81            android:exported="true">
82            <intent-filter>
83                <action android:name="android.content.pm.action.SESSION_COMMITTED" />
84            </intent-filter>
85        </receiver>
86
87        <!-- Intent received used to initialize a restored widget -->
88        <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver"
89            android:exported="true">
90            <intent-filter>
91                <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
92            </intent-filter>
93        </receiver>
94
95        <service
96            android:name="com.android.launcher3.notification.NotificationListener"
97            android:label="@string/notification_dots_service_title"
98            android:exported="true"
99            android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
100            <intent-filter>
101                <action android:name="android.service.notification.NotificationListenerService" />
102            </intent-filter>
103        </service>
104
105        <meta-data android:name="android.nfc.disable_beam_default"
106                       android:value="true" />
107
108        <activity android:name="com.android.launcher3.dragndrop.AddItemActivity"
109            android:theme="@style/AddItemActivityTheme"
110            android:excludeFromRecents="true"
111            android:autoRemoveFromRecents="true"
112            android:exported="true">
113            <intent-filter>
114                <action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" />
115                <action android:name="android.content.pm.action.CONFIRM_PIN_APPWIDGET" />
116            </intent-filter>
117        </activity>
118
119        <!--
120        The settings provider contains Home's data, like the workspace favorites. The permissions
121        should be changed to what is defined above. The authorities should also be changed to
122        represent the package name.
123        -->
124        <provider
125            android:name="com.android.launcher3.LauncherProvider"
126            android:authorities="${packageName}.settings"
127            android:exported="true"
128            android:writePermission="${packageName}.permission.WRITE_SETTINGS"
129            android:readPermission="${packageName}.permission.READ_SETTINGS" />
130
131        <!--
132        The content provider for exposing various launcher grid options.
133        TODO: Add proper permissions
134        -->
135        <provider
136            android:name="com.android.launcher3.graphics.GridCustomizationsProvider"
137            android:authorities="${packageName}.grid_control"
138            android:exported="true" />
139
140        <!--
141        The settings activity. To extend point settings_fragment_name to appropriate fragment class
142        -->
143        <activity
144            android:name="com.android.launcher3.settings.SettingsActivity"
145            android:label="@string/settings_button_text"
146            android:theme="@style/HomeSettings.Theme"
147            android:exported="true"
148            android:autoRemoveFromRecents="true">
149            <intent-filter>
150                <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
151                <category android:name="android.intent.category.DEFAULT" />
152            </intent-filter>
153        </activity>
154
155        <provider
156            android:name="com.android.launcher3.testing.TestInformationProvider"
157            android:authorities="${packageName}.TestInfo"
158            android:readPermission="android.permission.WRITE_SECURE_SETTINGS"
159            android:writePermission="android.permission.WRITE_SECURE_SETTINGS"
160            android:exported="true"
161            android:enabled="false" />
162
163        <!--
164        Launcher activity for secondary display
165        -->
166        <activity
167            android:name="com.android.launcher3.secondarydisplay.SecondaryDisplayLauncher"
168            android:theme="@style/AppTheme"
169            android:launchMode="singleTop"
170            android:exported="true"
171            android:enabled="true">
172            <intent-filter>
173                <action android:name="android.intent.action.MAIN" />
174                <category android:name="android.intent.category.SECONDARY_HOME" />
175                <category android:name="android.intent.category.DEFAULT" />
176            </intent-filter>
177        </activity>
178    </application>
179</manifest>
180