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