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