AndroidManifest-common.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. 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. Rest of the components are defined in AndroidManifest.xml which is merged with this manifest
  28. at compile time. Note that the components defined in AndroidManifest.xml are also required,
  29. with some minor changed based on the derivative app.
  30. -->
  31. <uses-permission android:name="android.permission.CALL_PHONE" />
  32. <uses-permission android:name="android.permission.SET_WALLPAPER" />
  33. <uses-permission android:name="android.permission.SET_WALLPAPER_HINTS" />
  34. <uses-permission android:name="android.permission.BIND_APPWIDGET" />
  35. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  36. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  37. <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
  38. <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
  39. <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
  40. <uses-permission android:name="android.permission.VIBRATE"/>
  41. <!-- for rotating surface by arbitrary degree -->
  42. <uses-permission android:name="android.permission.ROTATE_SURFACE_FLINGER" />
  43. <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
  44. <!--
  45. Permissions required for read/write access to the workspace data. These permission name
  46. should not conflict with that defined in other apps, as such an app should embed its package
  47. name in the permissions. eq com.mypackage.permission.READ_SETTINGS
  48. -->
  49. <permission
  50. android:name="${packageName}.permission.READ_SETTINGS"
  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:protectionLevel="signatureOrSystem"
  57. android:label="@string/permlab_write_settings"
  58. android:description="@string/permdesc_write_settings"/>
  59. <uses-permission android:name="${packageName}.permission.READ_SETTINGS" />
  60. <uses-permission android:name="${packageName}.permission.WRITE_SETTINGS" />
  61. <application
  62. android:backupAgent="com.android.launcher3.LauncherBackupAgent"
  63. android:fullBackupOnly="true"
  64. android:backupInForeground="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 when a session is committed -->
  73. <receiver
  74. android:name="com.android.launcher3.SessionCommitReceiver"
  75. android:exported="true">
  76. <intent-filter>
  77. <action android:name="android.content.pm.action.SESSION_COMMITTED" />
  78. </intent-filter>
  79. </receiver>
  80. <!-- Intent received used to initialize a restored widget -->
  81. <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver"
  82. android:exported="true">
  83. <intent-filter>
  84. <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
  85. </intent-filter>
  86. </receiver>
  87. <service
  88. android:name="com.android.launcher3.notification.NotificationListener"
  89. android:label="@string/notification_dots_service_title"
  90. android:exported="true"
  91. android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
  92. <intent-filter>
  93. <action android:name="android.service.notification.NotificationListenerService" />
  94. </intent-filter>
  95. </service>
  96. <meta-data android:name="android.nfc.disable_beam_default"
  97. android:value="true" />
  98. <activity android:name="com.android.launcher3.dragndrop.AddItemActivity"
  99. android:theme="@style/AddItemActivityTheme"
  100. android:excludeFromRecents="true"
  101. android:autoRemoveFromRecents="true"
  102. android:exported="true">
  103. <intent-filter>
  104. <action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" />
  105. <action android:name="android.content.pm.action.CONFIRM_PIN_APPWIDGET" />
  106. </intent-filter>
  107. </activity>
  108. <!--
  109. The settings provider contains Home's data, like the workspace favorites. The permissions
  110. should be changed to what is defined above. The authorities should also be changed to
  111. represent the package name.
  112. -->
  113. <provider
  114. android:name="com.android.launcher3.LauncherProvider"
  115. android:authorities="${packageName}.settings"
  116. android:exported="true"
  117. android:writePermission="${packageName}.permission.WRITE_SETTINGS"
  118. android:readPermission="${packageName}.permission.READ_SETTINGS" />
  119. <!--
  120. The content provider for exposing various launcher grid options.
  121. TODO: Add proper permissions
  122. -->
  123. <provider
  124. android:name="com.android.launcher3.graphics.GridCustomizationsProvider"
  125. android:authorities="${packageName}.grid_control"
  126. android:exported="true" />
  127. <!--
  128. The settings activity. To extend point settings_fragment_name to appropriate fragment class
  129. -->
  130. <activity
  131. android:name="com.android.launcher3.settings.SettingsActivity"
  132. android:label="@string/settings_button_text"
  133. android:theme="@style/HomeSettings.Theme"
  134. android:exported="true"
  135. android:autoRemoveFromRecents="true">
  136. <intent-filter>
  137. <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
  138. <category android:name="android.intent.category.DEFAULT" />
  139. </intent-filter>
  140. </activity>
  141. <provider
  142. android:name="com.android.launcher3.testing.TestInformationProvider"
  143. android:authorities="${packageName}.TestInfo"
  144. android:readPermission="android.permission.WRITE_SECURE_SETTINGS"
  145. android:writePermission="android.permission.WRITE_SECURE_SETTINGS"
  146. android:exported="true"
  147. android:enabled="false" />
  148. <!--
  149. Launcher activity for secondary display
  150. -->
  151. <activity
  152. android:name="com.android.launcher3.secondarydisplay.SecondaryDisplayLauncher"
  153. android:theme="@style/AppTheme"
  154. android:launchMode="singleTop"
  155. android:exported="true"
  156. android:enabled="true">
  157. <intent-filter>
  158. <action android:name="android.intent.action.MAIN" />
  159. <category android:name="android.intent.category.SECONDARY_HOME" />
  160. <category android:name="android.intent.category.DEFAULT" />
  161. </intent-filter>
  162. </activity>
  163. <!-- [b/197780098] Disable eager initialization of Jetpack libraries. -->
  164. <provider
  165. android:name="androidx.startup.InitializationProvider"
  166. android:authorities="${applicationId}.androidx-startup"
  167. tools:node="remove" />
  168. </application>
  169. </manifest>