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 <permission 33 android:name="com.android.launcher.permission.INSTALL_SHORTCUT" 34 android:permissionGroup="android.permission-group.SYSTEM_TOOLS" 35 android:protectionLevel="dangerous" 36 android:label="@string/permlab_install_shortcut" 37 android:description="@string/permdesc_install_shortcut" /> 38 39 <uses-permission android:name="android.permission.CALL_PHONE" /> 40 <uses-permission android:name="android.permission.SET_WALLPAPER" /> 41 <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" /> 42 <uses-permission android:name="android.permission.BIND_APPWIDGET" /> 43 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 44 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 45 <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" /> 46 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> 47 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="${packageName}.permission.READ_SETTINGS" 56 android:permissionGroup="android.permission-group.SYSTEM_TOOLS" 57 android:protectionLevel="signatureOrSystem" 58 android:label="@string/permlab_read_settings" 59 android:description="@string/permdesc_read_settings"/> 60 <permission 61 android:name="${packageName}.permission.WRITE_SETTINGS" 62 android:permissionGroup="android.permission-group.SYSTEM_TOOLS" 63 android:protectionLevel="signatureOrSystem" 64 android:label="@string/permlab_write_settings" 65 android:description="@string/permdesc_write_settings"/> 66 67 <uses-permission android:name="${packageName}.permission.READ_SETTINGS" /> 68 <uses-permission android:name="${packageName}.permission.WRITE_SETTINGS" /> 69 70 <application 71 android:backupAgent="com.android.launcher3.LauncherBackupAgent" 72 android:fullBackupOnly="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 used to install shortcuts from other applications --> 82 <receiver 83 android:name="com.android.launcher3.InstallShortcutReceiver" 84 android:permission="com.android.launcher.permission.INSTALL_SHORTCUT" 85 android:enabled="@bool/enable_install_shortcut_api" > 86 <intent-filter> 87 <action android:name="com.android.launcher.action.INSTALL_SHORTCUT" /> 88 </intent-filter> 89 </receiver> 90 91 <!-- Intent received when a session is committed --> 92 <receiver 93 android:name="com.android.launcher3.SessionCommitReceiver" > 94 <intent-filter> 95 <action android:name="android.content.pm.action.SESSION_COMMITTED" /> 96 </intent-filter> 97 </receiver> 98 99 <!-- Intent received used to initialize a restored widget --> 100 <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver" > 101 <intent-filter> 102 <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/> 103 </intent-filter> 104 </receiver> 105 106 <service 107 android:name="com.android.launcher3.uioverrides.dynamicui.WallpaperManagerCompatVL$ColorExtractionService" 108 android:exported="false" 109 android:process=":wallpaper_chooser" 110 android:permission="android.permission.BIND_JOB_SERVICE" /> 111 112 <service 113 android:name="com.android.launcher3.notification.NotificationListener" 114 android:label="@string/notification_dots_service_title" 115 android:enabled="@bool/notification_dots_enabled" 116 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> 117 <intent-filter> 118 <action android:name="android.service.notification.NotificationListenerService" /> 119 </intent-filter> 120 </service> 121 122 <meta-data android:name="android.nfc.disable_beam_default" 123 android:value="true" /> 124 125 <activity android:name="com.android.launcher3.dragndrop.AddItemActivity" 126 android:theme="@style/AppItemActivityTheme" 127 android:excludeFromRecents="true" 128 android:autoRemoveFromRecents="true" 129 android:label="@string/action_add_to_workspace" > 130 <intent-filter> 131 <action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" /> 132 <action android:name="android.content.pm.action.CONFIRM_PIN_APPWIDGET" /> 133 </intent-filter> 134 </activity> 135 136 <!-- 137 Should point to the content provider which can be used to dump Launcher3 compatible 138 worspace configuration to the dump's file descriptor by using launcher_dump.proto 139 --> 140 <meta-data 141 android:name="com.android.launcher3.launcher_dump_provider" 142 android:value="com.android.launcher3.LauncherProvider" /> 143 144 <!-- 145 The settings provider contains Home's data, like the workspace favorites. The permissions 146 should be changed to what is defined above. The authorities should also be changed to 147 represent the package name. 148 --> 149 <provider 150 android:name="com.android.launcher3.LauncherProvider" 151 android:authorities="${packageName}.settings" 152 android:exported="true" 153 android:writePermission="${packageName}.permission.WRITE_SETTINGS" 154 android:readPermission="${packageName}.permission.READ_SETTINGS" /> 155 156 <!-- 157 The content provider for exposing various launcher grid options. 158 TODO: Add proper permissions 159 --> 160 <provider 161 android:name="com.android.launcher3.graphics.GridOptionsProvider" 162 android:authorities="${packageName}.grid_control" 163 android:enabled="false" 164 android:exported="true" /> 165 166 <!-- 167 The settings activity. To extend point settings_fragment_name to appropriate fragment class 168 --> 169 <activity 170 android:name="com.android.launcher3.settings.SettingsActivity" 171 android:label="@string/settings_button_text" 172 android:theme="@style/HomeSettingsTheme" 173 android:autoRemoveFromRecents="true"> 174 <intent-filter> 175 <action android:name="android.intent.action.APPLICATION_PREFERENCES" /> 176 <category android:name="android.intent.category.DEFAULT" /> 177 </intent-filter> 178 </activity> 179 180 <provider 181 android:name="com.android.launcher3.testing.TestInformationProvider" 182 android:authorities="${packageName}.TestInfo" 183 android:readPermission="android.permission.WRITE_SECURE_SETTINGS" 184 android:writePermission="android.permission.WRITE_SECURE_SETTINGS" 185 android:exported="true" 186 android:enabled="false" /> 187 </application> 188</manifest> 189