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