AndroidManifest.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /*
  4. **
  5. ** Copyright 2008, 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. <uses-sdk android:targetSdkVersion="23" android:minSdkVersion="21"/>
  24. <!--
  25. Manifest entries specific to Launcher3. This is merged with AndroidManifest-common.xml.
  26. Refer comments around specific entries on how to extend individual components.
  27. -->
  28. <!--
  29. Permissions required for read/write access to the workspace data. These permission name
  30. should not conflict with that defined in other apps, as such an app should embed its package
  31. name in the permissions. eq com.mypackage.permission.READ_SETTINGS
  32. -->
  33. <permission
  34. android:name="com.android.launcher3.permission.READ_SETTINGS"
  35. android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
  36. android:protectionLevel="normal"
  37. android:label="@string/permlab_read_settings"
  38. android:description="@string/permdesc_read_settings"/>
  39. <permission
  40. android:name="com.android.launcher3.permission.WRITE_SETTINGS"
  41. android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
  42. android:protectionLevel="signatureOrSystem"
  43. android:label="@string/permlab_write_settings"
  44. android:description="@string/permdesc_write_settings"/>
  45. <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
  46. <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS" />
  47. <uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" />
  48. <uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" />
  49. <application
  50. android:backupAgent="com.android.launcher3.LauncherBackupAgent"
  51. android:fullBackupOnly="true"
  52. android:fullBackupContent="@xml/backupscheme"
  53. android:hardwareAccelerated="true"
  54. android:icon="@drawable/ic_launcher_home"
  55. android:label="@string/derived_app_name"
  56. android:theme="@style/LauncherTheme"
  57. android:largeHeap="@bool/config_largeHeap"
  58. android:restoreAnyVersion="true"
  59. android:supportsRtl="true" >
  60. <!--
  61. Main launcher activity. When extending only change the name, and keep all the
  62. attributes and intent filters the same
  63. -->
  64. <activity
  65. android:name="com.android.launcher3.Launcher"
  66. android:launchMode="singleTask"
  67. android:clearTaskOnLaunch="true"
  68. android:stateNotNeeded="true"
  69. android:windowSoftInputMode="adjustPan|stateUnchanged"
  70. android:screenOrientation="nosensor"
  71. android:configChanges="keyboard|keyboardHidden|navigation"
  72. android:resizeableActivity="true"
  73. android:resumeWhilePausing="true"
  74. android:taskAffinity=""
  75. android:enabled="true">
  76. <intent-filter>
  77. <action android:name="android.intent.action.MAIN" />
  78. <category android:name="android.intent.category.HOME" />
  79. <category android:name="android.intent.category.DEFAULT" />
  80. <category android:name="android.intent.category.MONKEY"/>
  81. </intent-filter>
  82. </activity>
  83. <!--
  84. The settings activity. When extending keep the intent filter present
  85. -->
  86. <activity
  87. android:name="com.android.launcher3.SettingsActivity"
  88. android:label="@string/settings_button_text"
  89. android:theme="@android:style/Theme.DeviceDefault.Settings"
  90. android:autoRemoveFromRecents="true">
  91. <intent-filter>
  92. <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
  93. <category android:name="android.intent.category.DEFAULT" />
  94. </intent-filter>
  95. </activity>
  96. <!--
  97. The settings provider contains Home's data, like the workspace favorites. The permissions
  98. should be changed to what is defined above. The authorities should also be changed to
  99. represent the package name.
  100. -->
  101. <provider
  102. android:name="com.android.launcher3.LauncherProvider"
  103. android:authorities="com.android.launcher3.settings"
  104. android:exported="true"
  105. android:writePermission="com.android.launcher3.permission.WRITE_SETTINGS"
  106. android:readPermission="com.android.launcher3.permission.READ_SETTINGS" />
  107. <!-- ENABLE_FOR_TESTING
  108. <activity
  109. android:name="com.android.launcher3.testing.LauncherExtension"
  110. android:launchMode="singleTask"
  111. android:clearTaskOnLaunch="true"
  112. android:stateNotNeeded="true"
  113. android:theme="@style/Theme"
  114. android:windowSoftInputMode="adjustPan"
  115. android:screenOrientation="nosensor"
  116. >
  117. <intent-filter>
  118. <action android:name="android.intent.action.MAIN" />
  119. <category android:name="android.intent.category.HOME" />
  120. <category android:name="android.intent.category.DEFAULT" />
  121. <category android:name="android.intent.category.MONKEY"/>
  122. </intent-filter>
  123. </activity>
  124. <activity
  125. android:name="com.android.launcher3.testing.MemoryDumpActivity"
  126. android:theme="@android:style/Theme.NoDisplay"
  127. android:label="* HPROF"
  128. android:excludeFromRecents="true"
  129. android:icon="@drawable/ic_launcher_home"
  130. >
  131. <intent-filter>
  132. <action android:name="android.intent.action.MAIN" />
  133. <category android:name="android.intent.category.DEFAULT" />
  134. <category android:name="android.intent.category.LAUNCHER" />
  135. </intent-filter>
  136. </activity>
  137. <activity
  138. android:name="com.android.launcher3.testing.ToggleWeightWatcher"
  139. android:label="Show Mem"
  140. android:icon="@drawable/ic_launcher_home">
  141. <intent-filter>
  142. <action android:name="android.intent.action.MAIN" />
  143. <category android:name="android.intent.category.DEFAULT" />
  144. <category android:name="android.intent.category.LAUNCHER" />
  145. </intent-filter>
  146. </activity>
  147. <service android:name="com.android.launcher3.testing.MemoryTracker" />
  148. -->
  149. </application>
  150. </manifest>