AndroidManifest-common.xml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. <!-- for rotating surface by arbitrary degree -->
  41. <uses-permission android:name="android.permission.ROTATE_SURFACE_FLINGER" />
  42. <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
  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:protectionLevel="signatureOrSystem"
  51. android:label="@string/permlab_read_settings"
  52. android:description="@string/permdesc_read_settings"/>
  53. <permission
  54. android:name="${packageName}.permission.WRITE_SETTINGS"
  55. android:protectionLevel="signatureOrSystem"
  56. android:label="@string/permlab_write_settings"
  57. android:description="@string/permdesc_write_settings"/>
  58. <uses-permission android:name="${packageName}.permission.READ_SETTINGS" />
  59. <uses-permission android:name="${packageName}.permission.WRITE_SETTINGS" />
  60. <application
  61. android:backupAgent="com.android.launcher3.LauncherBackupAgent"
  62. android:fullBackupOnly="true"
  63. android:backupInForeground="true"
  64. android:fullBackupContent="@xml/backupscheme"
  65. android:hardwareAccelerated="true"
  66. android:icon="@drawable/ic_launcher_home"
  67. android:label="@string/derived_app_name"
  68. android:largeHeap="@bool/config_largeHeap"
  69. android:restoreAnyVersion="true"
  70. android:supportsRtl="true" >
  71. <!-- Intent received when a session is committed -->
  72. <receiver
  73. android:name="com.android.launcher3.SessionCommitReceiver"
  74. android:exported="true">
  75. <intent-filter>
  76. <action android:name="android.content.pm.action.SESSION_COMMITTED" />
  77. </intent-filter>
  78. </receiver>
  79. <!-- Intent received used to initialize a restored widget -->
  80. <receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver"
  81. android:exported="true">
  82. <intent-filter>
  83. <action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
  84. </intent-filter>
  85. </receiver>
  86. <service
  87. android:name="com.android.launcher3.notification.NotificationListener"
  88. android:label="@string/notification_dots_service_title"
  89. android:exported="true"
  90. android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
  91. <intent-filter>
  92. <action android:name="android.service.notification.NotificationListenerService" />
  93. </intent-filter>
  94. </service>
  95. <meta-data android:name="android.nfc.disable_beam_default"
  96. android:value="true" />
  97. <activity android:name="com.android.launcher3.dragndrop.AddItemActivity"
  98. android:theme="@style/AddItemActivityTheme"
  99. android:excludeFromRecents="true"
  100. android:autoRemoveFromRecents="true"
  101. android:exported="true">
  102. <intent-filter>
  103. <action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" />
  104. <action android:name="android.content.pm.action.CONFIRM_PIN_APPWIDGET" />
  105. </intent-filter>
  106. </activity>
  107. <!--
  108. The settings provider contains Home's data, like the workspace favorites. The permissions
  109. should be changed to what is defined above. The authorities should also be changed to
  110. represent the package name.
  111. -->
  112. <provider
  113. android:name="com.android.launcher3.LauncherProvider"
  114. android:authorities="${packageName}.settings"
  115. android:exported="true"
  116. android:writePermission="${packageName}.permission.WRITE_SETTINGS"
  117. android:readPermission="${packageName}.permission.READ_SETTINGS" />
  118. <!--
  119. The content provider for exposing various launcher grid options.
  120. TODO: Add proper permissions
  121. -->
  122. <provider
  123. android:name="com.android.launcher3.graphics.GridCustomizationsProvider"
  124. android:authorities="${packageName}.grid_control"
  125. android:exported="true" />
  126. <!--
  127. The settings activity. To extend point settings_fragment_name to appropriate fragment class
  128. -->
  129. <activity
  130. android:name="com.android.launcher3.settings.SettingsActivity"
  131. android:label="@string/settings_button_text"
  132. android:theme="@style/HomeSettings.Theme"
  133. android:exported="true"
  134. android:autoRemoveFromRecents="true">
  135. <intent-filter>
  136. <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
  137. <category android:name="android.intent.category.DEFAULT" />
  138. </intent-filter>
  139. </activity>
  140. <provider
  141. android:name="com.android.launcher3.testing.TestInformationProvider"
  142. android:authorities="${packageName}.TestInfo"
  143. android:readPermission="android.permission.WRITE_SECURE_SETTINGS"
  144. android:writePermission="android.permission.WRITE_SECURE_SETTINGS"
  145. android:exported="true"
  146. android:enabled="false" />
  147. <!--
  148. Launcher activity for secondary display
  149. -->
  150. <activity
  151. android:name="com.android.launcher3.secondarydisplay.SecondaryDisplayLauncher"
  152. android:theme="@style/AppTheme"
  153. android:launchMode="singleTop"
  154. android:exported="true"
  155. android:enabled="true">
  156. <intent-filter>
  157. <action android:name="android.intent.action.MAIN" />
  158. <category android:name="android.intent.category.SECONDARY_HOME" />
  159. <category android:name="android.intent.category.DEFAULT" />
  160. </intent-filter>
  161. </activity>
  162. <!-- [b/197780098] Disable eager initialization of Jetpack libraries. -->
  163. <provider
  164. android:name="androidx.startup.InitializationProvider"
  165. android:authorities="${applicationId}.androidx-startup"
  166. tools:node="remove" />
  167. </application>
  168. </manifest>