AndroidManifest.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <!--
  2. /*
  3. * Copyright 2006, The Android Open Source Project
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. -->
  18. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.browser">
  19. <original-package android:name="com.android.browser" />
  20. <permission android:name="com.android.browser.permission.PRELOAD"
  21. android:label="@string/permission_preload_label"
  22. android:protectionLevel="signatureOrSystem" />
  23. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
  24. <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
  25. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  26. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  27. <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
  28. <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
  29. <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
  30. <uses-permission android:name="android.permission.INTERNET" />
  31. <uses-permission android:name="android.permission.NFC" />
  32. <uses-permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS" />
  33. <uses-permission android:name="android.permission.SET_WALLPAPER" />
  34. <uses-permission android:name="android.permission.WAKE_LOCK"/>
  35. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  36. <uses-permission android:name="android.permission.WRITE_SETTINGS" />
  37. <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
  38. <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
  39. <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
  40. <uses-permission android:name="android.permission.READ_PROFILE" />
  41. <uses-permission android:name="android.permission.READ_CONTACTS" />
  42. <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
  43. <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
  44. <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
  45. <application android:name="Browser"
  46. android:label="@string/application_name"
  47. android:icon="@mipmap/ic_launcher_browser"
  48. android:backupAgent=".BrowserBackupAgent"
  49. android:hardwareAccelerated="true"
  50. android:taskAffinity="android.task.browser"
  51. android:supportsRtl="true" >
  52. <provider android:name=".provider.BrowserProvider2"
  53. android:authorities="com.android.browser;browser"
  54. android:multiprocess="false"
  55. android:exported="true"
  56. android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
  57. android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS">
  58. <path-permission android:path="/bookmarks/search_suggest_query"
  59. android:readPermission="android.permission.GLOBAL_SEARCH" />
  60. </provider>
  61. <activity android:name="BrowserActivity"
  62. android:label="@string/application_name"
  63. android:launchMode="singleTask"
  64. android:alwaysRetainTaskState="true"
  65. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
  66. android:theme="@style/BrowserTheme"
  67. android:windowSoftInputMode="adjustResize" >
  68. <intent-filter>
  69. <action android:name="android.speech.action.VOICE_SEARCH_RESULTS" />
  70. <category android:name="android.intent.category.DEFAULT" />
  71. </intent-filter>
  72. <!-- For these schemes were not particular MIME type has been
  73. supplied, we are a good candidate. -->
  74. <intent-filter>
  75. <action android:name="android.intent.action.VIEW" />
  76. <category android:name="android.intent.category.DEFAULT" />
  77. <category android:name="android.intent.category.BROWSABLE" />
  78. <data android:scheme="http" />
  79. <data android:scheme="https" />
  80. <data android:scheme="about" />
  81. <data android:scheme="javascript" />
  82. </intent-filter>
  83. <!-- For these schemes where any of these particular MIME types
  84. have been supplied, we are a good candidate. -->
  85. <intent-filter>
  86. <action android:name="android.intent.action.VIEW" />
  87. <category android:name="android.intent.category.BROWSABLE" />
  88. <category android:name="android.intent.category.DEFAULT" />
  89. <data android:scheme="http" />
  90. <data android:scheme="https" />
  91. <data android:scheme="inline" />
  92. <data android:mimeType="text/html"/>
  93. <data android:mimeType="text/plain"/>
  94. <data android:mimeType="application/xhtml+xml"/>
  95. <data android:mimeType="application/vnd.wap.xhtml+xml"/>
  96. </intent-filter>
  97. <!-- For viewing saved web archives. -->
  98. <intent-filter>
  99. <action android:name="android.intent.action.VIEW" />
  100. <category android:name="android.intent.category.BROWSABLE" />
  101. <category android:name="android.intent.category.DEFAULT" />
  102. <data android:scheme="http" />
  103. <data android:scheme="https" />
  104. <data android:scheme="file" />
  105. <data android:mimeType="application/x-webarchive-xml"/>
  106. </intent-filter>
  107. <!-- Accept inbound NFC URLs at a low priority -->
  108. <intent-filter android:priority="-101">
  109. <action android:name="android.nfc.action.NDEF_DISCOVERED" />
  110. <category android:name="android.intent.category.DEFAULT" />
  111. <data android:scheme="http" />
  112. <data android:scheme="https" />
  113. </intent-filter>
  114. <!-- We are also the main entry point of the browser. -->
  115. <intent-filter>
  116. <action android:name="android.intent.action.MAIN" />
  117. <category android:name="android.intent.category.DEFAULT" />
  118. <category android:name="android.intent.category.LAUNCHER" />
  119. <category android:name="android.intent.category.BROWSABLE" />
  120. <category android:name="android.intent.category.APP_BROWSER" />
  121. </intent-filter>
  122. <!-- The maps app is a much better experience, so it's not
  123. worth having this at all... especially for a demo!
  124. <intent-filter android:label="Map In Browser">
  125. <action android:name="android.intent.action.VIEW" />
  126. <category android:name="android.intent.category.DEFAULT" />
  127. <data android:mimeType="vnd.android.cursor.item/postal-address" />
  128. </intent-filter>
  129. -->
  130. <intent-filter>
  131. <action android:name="android.intent.action.WEB_SEARCH" />
  132. <category android:name="android.intent.category.DEFAULT" />
  133. <category android:name="android.intent.category.BROWSABLE" />
  134. <data android:scheme="" />
  135. <data android:scheme="http" />
  136. <data android:scheme="https" />
  137. </intent-filter>
  138. <intent-filter>
  139. <action android:name="android.intent.action.MEDIA_SEARCH" />
  140. <category android:name="android.intent.category.DEFAULT" />
  141. </intent-filter>
  142. <intent-filter>
  143. <action android:name="android.intent.action.SEARCH" />
  144. <category android:name="android.intent.category.DEFAULT" />
  145. </intent-filter>
  146. <meta-data android:name="android.app.searchable"
  147. android:resource="@xml/searchable" />
  148. </activity>
  149. <activity android:name="ShortcutActivity"
  150. android:theme="@style/ShortcutTheme"
  151. android:label="@string/shortcut_bookmark"
  152. android:icon="@mipmap/ic_launcher_shortcut_browser_bookmark">
  153. <intent-filter>
  154. <action android:name="android.intent.action.CREATE_SHORTCUT" />
  155. <category android:name="android.intent.category.DEFAULT" />
  156. </intent-filter>
  157. </activity>
  158. <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences">
  159. <intent-filter>
  160. <action android:name="android.intent.action.MANAGE_NETWORK_USAGE" />
  161. <category android:name="android.intent.category.DEFAULT" />
  162. </intent-filter>
  163. </activity>
  164. <activity android:name="BookmarkSearch"
  165. android:label="@string/bookmarks_search"
  166. android:stateNotNeeded="true"
  167. android:theme="@android:style/Theme.NoDisplay"
  168. android:excludeFromRecents="true">
  169. <intent-filter>
  170. <action android:name="android.intent.action.SEARCH" />
  171. <category android:name="android.intent.category.DEFAULT" />
  172. </intent-filter>
  173. <meta-data android:name="android.app.searchable"
  174. android:resource="@xml/bookmarks_searchable" />
  175. </activity>
  176. <activity android:name="AddBookmarkPage" android:label="@string/bookmarks_add_page"
  177. android:theme="@style/DialogWhenLarge"
  178. android:configChanges="orientation|keyboardHidden|screenSize"
  179. android:windowSoftInputMode="adjustResize">
  180. <intent-filter>
  181. <action android:name="android.intent.action.INSERT" />
  182. <category android:name="android.intent.category.DEFAULT" />
  183. <data android:mimeType="vnd.android.cursor.dir/bookmark"/>
  184. </intent-filter>
  185. </activity>
  186. <activity android:name="ComboViewActivity">
  187. </activity>
  188. <!-- Bookmark thumbnail homescreen widget -->
  189. <receiver
  190. android:name=".widget.BookmarkThumbnailWidgetProvider"
  191. android:label="@string/bookmarks">
  192. <intent-filter>
  193. <action
  194. android:name="android.appwidget.action.APPWIDGET_UPDATE" />
  195. <action
  196. android:name="com.android.browser.BOOKMARK_APPWIDGET_UPDATE" />
  197. </intent-filter>
  198. <meta-data
  199. android:name="android.appwidget.provider"
  200. android:resource="@xml/bookmarkthumbnailwidget_info" />
  201. </receiver>
  202. <service
  203. android:name=".widget.BookmarkThumbnailWidgetService"
  204. android:permission="android.permission.BIND_REMOTEVIEWS"
  205. android:exported="false" />
  206. <receiver
  207. android:name=".widget.BookmarkWidgetProxy"
  208. android:exported="false" />
  209. <activity android:name=".widget.BookmarkWidgetConfigure"
  210. android:theme="@android:style/Theme.Holo.DialogWhenLarge">
  211. <intent-filter>
  212. <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
  213. </intent-filter>
  214. </activity>
  215. <!-- Makes .BrowserActivity the search target for any activity in Browser -->
  216. <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
  217. <!-- Application code for RLZ tracking. RLZ assigns non-unique, non-personally identifiable
  218. tracking labels to client products; these labels sometimes appear in Google search
  219. queries. See http://code.google.com/p/rlz for more info.
  220. This value signifies to the RLZ client that this application uses RLZ tracking. -->
  221. <meta-data android:name="com.google.android.partnersetup.RLZ_ACCESS_POINT"
  222. android:value="@string/rlz_access_point" />
  223. <receiver android:name=".OpenDownloadReceiver">
  224. <intent-filter>
  225. <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED"/>
  226. </intent-filter>
  227. </receiver>
  228. <!-- For custom home pages (like most visited) -->
  229. <provider
  230. android:name=".homepages.HomeProvider"
  231. android:authorities="com.android.browser.home"
  232. android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
  233. android:exported="false" />
  234. <receiver android:name=".AccountsChangedReceiver">
  235. <intent-filter>
  236. <action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED" />
  237. </intent-filter>
  238. </receiver>
  239. <receiver android:name=".PreloadRequestReceiver"
  240. android:permission="com.android.browser.permission.PRELOAD" >
  241. <intent-filter>
  242. <action android:name="android.intent.action.PRELOAD"/>
  243. <data android:scheme="http" />
  244. </intent-filter>
  245. </receiver>
  246. <provider android:name=".provider.SnapshotProvider"
  247. android:authorities="com.android.browser.snapshots"
  248. android:exported="false" />
  249. </application>
  250. </manifest>