• 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    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.INTERNET" />
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    <!-- for rotating surface by arbitrary degree -->
44    <uses-permission android:name="android.permission.ROTATE_SURFACE_FLINGER" />
45
46    <!--
47    Permissions required for read/write access to the workspace data. These permission name
48    should not conflict with that defined in other apps, as such an app should embed its package
49    name in the permissions. eq com.mypackage.permission.READ_SETTINGS
50    -->
51    <permission
52        android:name="${packageName}.permission.READ_SETTINGS"
53        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
54        android:protectionLevel="signatureOrSystem"
55        android:label="@string/permlab_read_settings"
56        android:description="@string/permdesc_read_settings"/>
57    <permission
58        android:name="${packageName}.permission.WRITE_SETTINGS"
59        android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
60        android:protectionLevel="signatureOrSystem"
61        android:label="@string/permlab_write_settings"
62        android:description="@string/permdesc_write_settings"/>
63
64    <uses-permission android:name="${packageName}.permission.READ_SETTINGS" />
65    <uses-permission android:name="${packageName}.permission.WRITE_SETTINGS" />
66
67    <application
68        android:backupAgent="com.android.launcher3.LauncherBackupAgent"
69        android:fullBackupOnly="true"
70        android:backupInForeground="true"
71        android:fullBackupContent="@xml/backupscheme"
72        android:hardwareAccelerated="true"
73        android:icon="@drawable/ic_launcher_home"
74        android:label="@string/derived_app_name"
75        android:largeHeap="@bool/config_largeHeap"
76        android:restoreAnyVersion="true"
77        android:supportsRtl="true" >
78
79        <!-- Intent received when a session is committed -->
80        <receiver
81            android:name="com.android.launcher3.SessionCommitReceiver"
82            android:exported="true">
83            <intent-filter>
84                <action android:name="android.content.pm.action.SESSION_COMMITTED" />
85            </intent-filter>
86        </receiver>
87
88        <!-- Intent received used to initialize a restored widget -->
89        <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver"
90            android:exported="true">
91            <intent-filter>
92                <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
93            </intent-filter>
94        </receiver>
95
96        <service
97            android:name="com.android.launcher3.notification.NotificationListener"
98            android:label="@string/notification_dots_service_title"
99            android:exported="true"
100            android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
101            <intent-filter>
102                <action android:name="android.service.notification.NotificationListenerService" />
103            </intent-filter>
104        </service>
105
106        <meta-data android:name="android.nfc.disable_beam_default"
107                       android:value="true" />
108
109        <activity android:name="com.android.launcher3.dragndrop.AddItemActivity"
110            android:theme="@style/AddItemActivityTheme"
111            android:excludeFromRecents="true"
112            android:autoRemoveFromRecents="true"
113            android:exported="true">
114            <intent-filter>
115                <action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" />
116                <action android:name="android.content.pm.action.CONFIRM_PIN_APPWIDGET" />
117            </intent-filter>
118        </activity>
119
120        <!--
121        The settings provider contains Home's data, like the workspace favorites. The permissions
122        should be changed to what is defined above. The authorities should also be changed to
123        represent the package name.
124        -->
125        <provider
126            android:name="com.android.launcher3.LauncherProvider"
127            android:authorities="${packageName}.settings"
128            android:exported="true"
129            android:writePermission="${packageName}.permission.WRITE_SETTINGS"
130            android:readPermission="${packageName}.permission.READ_SETTINGS" />
131
132        <!--
133        The content provider for exposing various launcher grid options.
134        TODO: Add proper permissions
135        -->
136        <provider
137            android:name="com.android.launcher3.graphics.GridCustomizationsProvider"
138            android:authorities="${packageName}.grid_control"
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/HomeSettingsTheme"
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="${packageName}.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    </application>
180</manifest>
181