AndroidManifest-common.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. The manifest defines the common entries that should be present in any derivative of Launcher3.
  25. The components should generally not require any changes.
  26. Rest of the components are defined in AndroidManifest.xml which is merged with this manifest
  27. at compile time. Note that the components defined in AndroidManifest.xml are also required,
  28. with some minor changed based on the derivative app.
  29. -->
  30. <permission
  31. android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
  32. android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
  33. android:protectionLevel="dangerous"
  34. android:label="@string/permlab_install_shortcut"
  35. android:description="@string/permdesc_install_shortcut" />
  36. <uses-permission android:name="android.permission.CALL_PHONE" />
  37. <uses-permission android:name="android.permission.SET_WALLPAPER" />
  38. <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
  39. <uses-permission android:name="android.permission.BIND_APPWIDGET" />
  40. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  41. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  42. <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
  43. <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
  44. <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
  45. <!-- TODO(b/150802536): Enabled only for ENABLE_FIXED_ROTATION_TRANSFORM feature flag -->
  46. <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
  47. <!--
  48. Permissions required for read/write access to the workspace data. These permission name
  49. should not conflict with that defined in other apps, as such an app should embed its package
  50. name in the permissions. eq com.mypackage.permission.READ_SETTINGS
  51. -->
  52. <permission
  53. android:name="${packageName}.permission.READ_SETTINGS"
  54. android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
  55. android:protectionLevel="signatureOrSystem"
  56. android:label="@string/permlab_read_settings"
  57. android:description="@string/permdesc_read_settings"/>
  58. <permission
  59. android:name="${packageName}.permission.WRITE_SETTINGS"
  60. android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
  61. android:protectionLevel="signatureOrSystem"
  62. android:label="@string/permlab_write_settings"
  63. android:description="@string/permdesc_write_settings"/>
  64. <uses-permission android:name="${packageName}.permission.READ_SETTINGS" />
  65. <uses-permission android:name="${packageName}.permission.WRITE_SETTINGS" />
  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. <!-- Intent received used to install shortcuts from other applications -->
  78. <receiver
  79. android:name="com.android.launcher3.InstallShortcutReceiver"
  80. android:permission="com.android.launcher.permission.INSTALL_SHORTCUT"
  81. android:enabled="@bool/enable_install_shortcut_api" >
  82. <intent-filter>
  83. <action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
  84. </intent-filter>
  85. </receiver>
  86. <!-- Intent received when a session is committed -->
  87. <receiver
  88. android:name="com.android.launcher3.SessionCommitReceiver" >
  89. <intent-filter>
  90. <action android:name="android.content.pm.action.SESSION_COMMITTED" />
  91. </intent-filter>
  92. </receiver>
  93. <!-- Intent received used to initialize a restored widget -->
  94. <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver" >
  95. <intent-filter>
  96. <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
  97. </intent-filter>
  98. </receiver>
  99. <service
  100. android:name="com.android.launcher3.uioverrides.dynamicui.WallpaperManagerCompatVL$ColorExtractionService"
  101. android:exported="false"
  102. android:process=":wallpaper_chooser"
  103. android:permission="android.permission.BIND_JOB_SERVICE" />
  104. <service
  105. android:name="com.android.launcher3.notification.NotificationListener"
  106. android:label="@string/notification_dots_service_title"
  107. android:enabled="@bool/notification_dots_enabled"
  108. android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
  109. <intent-filter>
  110. <action android:name="android.service.notification.NotificationListenerService" />
  111. </intent-filter>
  112. </service>
  113. <meta-data android:name="android.nfc.disable_beam_default"
  114. android:value="true" />
  115. <activity android:name="com.android.launcher3.dragndrop.AddItemActivity"
  116. android:theme="@style/AppItemActivityTheme"
  117. android:excludeFromRecents="true"
  118. android:autoRemoveFromRecents="true"
  119. android:label="@string/action_add_to_workspace" >
  120. <intent-filter>
  121. <action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" />
  122. <action android:name="android.content.pm.action.CONFIRM_PIN_APPWIDGET" />
  123. </intent-filter>
  124. </activity>
  125. <!--
  126. The settings provider contains Home's data, like the workspace favorites. The permissions
  127. should be changed to what is defined above. The authorities should also be changed to
  128. represent the package name.
  129. -->
  130. <provider
  131. android:name="com.android.launcher3.LauncherProvider"
  132. android:authorities="${packageName}.settings"
  133. android:exported="true"
  134. android:writePermission="${packageName}.permission.WRITE_SETTINGS"
  135. android:readPermission="${packageName}.permission.READ_SETTINGS" />
  136. <!--
  137. The content provider for exposing various launcher grid options.
  138. TODO: Add proper permissions
  139. -->
  140. <provider
  141. android:name="com.android.launcher3.graphics.GridCustomizationsProvider"
  142. android:authorities="${packageName}.grid_control"
  143. android:exported="true" />
  144. <!--
  145. The settings activity. To extend point settings_fragment_name to appropriate fragment class
  146. -->
  147. <activity
  148. android:name="com.android.launcher3.settings.SettingsActivity"
  149. android:label="@string/settings_button_text"
  150. android:theme="@style/HomeSettingsTheme"
  151. android:autoRemoveFromRecents="true">
  152. <intent-filter>
  153. <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
  154. <category android:name="android.intent.category.DEFAULT" />
  155. </intent-filter>
  156. </activity>
  157. <provider
  158. android:name="com.android.launcher3.testing.TestInformationProvider"
  159. android:authorities="${packageName}.TestInfo"
  160. android:readPermission="android.permission.WRITE_SECURE_SETTINGS"
  161. android:writePermission="android.permission.WRITE_SECURE_SETTINGS"
  162. android:exported="true"
  163. android:enabled="false" />
  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: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>