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