AndroidManifest-common.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <!--
  44. Permissions required for read/write access to the workspace data. These permission name
  45. should not conflict with that defined in other apps, as such an app should embed its package
  46. name in the permissions. eq com.mypackage.permission.READ_SETTINGS
  47. -->
  48. <permission
  49. android:name="${packageName}.permission.READ_SETTINGS"
  50. android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
  51. android:protectionLevel="signatureOrSystem"
  52. android:label="@string/permlab_read_settings"
  53. android:description="@string/permdesc_read_settings"/>
  54. <permission
  55. android:name="${packageName}.permission.WRITE_SETTINGS"
  56. android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
  57. android:protectionLevel="signatureOrSystem"
  58. android:label="@string/permlab_write_settings"
  59. android:description="@string/permdesc_write_settings"/>
  60. <uses-permission android:name="${packageName}.permission.READ_SETTINGS" />
  61. <uses-permission android:name="${packageName}.permission.WRITE_SETTINGS" />
  62. <application
  63. android:backupAgent="com.android.launcher3.LauncherBackupAgent"
  64. android:fullBackupOnly="true"
  65. android:fullBackupContent="@xml/backupscheme"
  66. android:hardwareAccelerated="true"
  67. android:icon="@drawable/ic_launcher_home"
  68. android:label="@string/derived_app_name"
  69. android:largeHeap="@bool/config_largeHeap"
  70. android:restoreAnyVersion="true"
  71. android:supportsRtl="true" >
  72. <!-- Intent received used to install shortcuts from other applications -->
  73. <receiver
  74. android:name="com.android.launcher3.InstallShortcutReceiver"
  75. android:permission="com.android.launcher.permission.INSTALL_SHORTCUT"
  76. android:enabled="@bool/enable_install_shortcut_api" >
  77. <intent-filter>
  78. <action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
  79. </intent-filter>
  80. </receiver>
  81. <!-- Intent received when a session is committed -->
  82. <receiver
  83. android:name="com.android.launcher3.SessionCommitReceiver" >
  84. <intent-filter>
  85. <action android:name="android.content.pm.action.SESSION_COMMITTED" />
  86. </intent-filter>
  87. </receiver>
  88. <!-- Intent received used to initialize a restored widget -->
  89. <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver" >
  90. <intent-filter>
  91. <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
  92. </intent-filter>
  93. </receiver>
  94. <service
  95. android:name="com.android.launcher3.uioverrides.dynamicui.WallpaperManagerCompatVL$ColorExtractionService"
  96. android:exported="false"
  97. android:process=":wallpaper_chooser"
  98. android:permission="android.permission.BIND_JOB_SERVICE" />
  99. <service
  100. android:name="com.android.launcher3.notification.NotificationListener"
  101. android:label="@string/notification_dots_service_title"
  102. android:enabled="@bool/notification_dots_enabled"
  103. android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
  104. <intent-filter>
  105. <action android:name="android.service.notification.NotificationListenerService" />
  106. </intent-filter>
  107. </service>
  108. <meta-data android:name="android.nfc.disable_beam_default"
  109. android:value="true" />
  110. <activity android:name="com.android.launcher3.dragndrop.AddItemActivity"
  111. android:theme="@style/AppItemActivityTheme"
  112. android:excludeFromRecents="true"
  113. android:autoRemoveFromRecents="true"
  114. android:label="@string/action_add_to_workspace" >
  115. <intent-filter>
  116. <action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" />
  117. <action android:name="android.content.pm.action.CONFIRM_PIN_APPWIDGET" />
  118. </intent-filter>
  119. </activity>
  120. <!--
  121. Should point to the content provider which can be used to dump Launcher3 compatible
  122. worspace configuration to the dump's file descriptor by using launcher_dump.proto
  123. -->
  124. <meta-data
  125. android:name="com.android.launcher3.launcher_dump_provider"
  126. android:value="com.android.launcher3.LauncherProvider" />
  127. <!--
  128. The settings provider contains Home's data, like the workspace favorites. The permissions
  129. should be changed to what is defined above. The authorities should also be changed to
  130. represent the package name.
  131. -->
  132. <provider
  133. android:name="com.android.launcher3.LauncherProvider"
  134. android:authorities="${packageName}.settings"
  135. android:exported="true"
  136. android:writePermission="${packageName}.permission.WRITE_SETTINGS"
  137. android:readPermission="${packageName}.permission.READ_SETTINGS" />
  138. <!--
  139. The content provider for exposing various launcher grid options.
  140. TODO: Add proper permissions
  141. -->
  142. <provider
  143. android:name="com.android.launcher3.graphics.GridOptionsProvider"
  144. android:authorities="${packageName}.grid_control"
  145. android:enabled="false"
  146. android:exported="true" />
  147. <!--
  148. The settings activity. To extend point settings_fragment_name to appropriate fragment class
  149. -->
  150. <activity
  151. android:name="com.android.launcher3.settings.SettingsActivity"
  152. android:label="@string/settings_button_text"
  153. android:theme="@android:style/Theme.DeviceDefault.Settings"
  154. android:autoRemoveFromRecents="true">
  155. <intent-filter>
  156. <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
  157. <category android:name="android.intent.category.DEFAULT" />
  158. </intent-filter>
  159. </activity>
  160. <provider
  161. android:name="com.android.launcher3.testing.TestInformationProvider"
  162. android:authorities="${packageName}.TestInfo"
  163. android:readPermission="android.permission.WRITE_SECURE_SETTINGS"
  164. android:writePermission="android.permission.WRITE_SECURE_SETTINGS"
  165. android:exported="true"
  166. android:enabled="false" />
  167. </application>
  168. </manifest>