AndroidManifest.xml revision e6c4bd8af161f4f7ee23889cd10afc9d323aff85
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 <uses-permission android:name="android.permission.USE_CREDENTIALS" /> 22 <uses-permission android:name="android.permission.GET_ACCOUNTS" /> 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="com.android.launcher.permission.INSTALL_SHORTCUT"/> 29 <uses-permission android:name="android.permission.INTERNET" /> 30 <uses-permission android:name="android.permission.SET_WALLPAPER" /> 31 <uses-permission android:name="android.permission.WAKE_LOCK"/> 32 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 33 <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/> 34 <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/> 35 <uses-permission android:name="android.permission.BACKUP_DATA" /> 36 <uses-permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS" /> 37 38 <application android:name="Browser" 39 android:label="@string/application_name" 40 android:icon="@drawable/ic_launcher_browser" 41 android:backupAgent=".BrowserBackupAgent" 42 android:taskAffinity="android.task.browser" > 43 44 <provider android:name="BrowserProvider" 45 android:authorities="browser" 46 android:multiprocess="true" 47 android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS" 48 android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"> 49 <path-permission android:path="/bookmarks/search_suggest_query" 50 android:readPermission="android.permission.GLOBAL_SEARCH" /> 51 <path-permission android:path="/geolocation" 52 android:writePermission="com.android.browser.permission.WRITE_GEOLOCATION_PERMISSIONS" /> 53 </provider> 54 <activity android:name="BrowserActivity" 55 android:label="@string/application_name" 56 android:launchMode="singleTask" 57 android:alwaysRetainTaskState="true" 58 android:configChanges="orientation|keyboardHidden" 59 android:theme="@style/BrowserTheme" 60 android:windowSoftInputMode="adjustResize" > 61 <intent-filter> 62 <action android:name="android.speech.action.VOICE_SEARCH_RESULTS" /> 63 <category android:name="android.intent.category.DEFAULT" /> 64 </intent-filter> 65 <!-- For these schemes were not particular MIME type has been 66 supplied, we are a good candidate. --> 67 <intent-filter> 68 <action android:name="android.intent.action.VIEW" /> 69 <category android:name="android.intent.category.DEFAULT" /> 70 <category android:name="android.intent.category.BROWSABLE" /> 71 <data android:scheme="http" /> 72 <data android:scheme="https" /> 73 <data android:scheme="about" /> 74 <data android:scheme="javascript" /> 75 </intent-filter> 76 <!-- For these schemes where any of these particular MIME types 77 have been supplied, we are a good candidate. --> 78 <intent-filter> 79 <action android:name="android.intent.action.VIEW" /> 80 <category android:name="android.intent.category.BROWSABLE" /> 81 <category android:name="android.intent.category.DEFAULT" /> 82 <data android:scheme="http" /> 83 <data android:scheme="https" /> 84 <data android:scheme="inline" /> 85 <data android:mimeType="text/html"/> 86 <data android:mimeType="text/plain"/> 87 <data android:mimeType="application/xhtml+xml"/> 88 <data android:mimeType="application/vnd.wap.xhtml+xml"/> 89 </intent-filter> 90 <!-- We are also the main entry point of the browser. --> 91 <intent-filter> 92 <action android:name="android.intent.action.MAIN" /> 93 <category android:name="android.intent.category.DEFAULT" /> 94 <category android:name="android.intent.category.LAUNCHER" /> 95 <category android:name="android.intent.category.BROWSABLE" /> 96 </intent-filter> 97 <!-- The maps app is a much better experience, so it's not 98 worth having this at all... especially for a demo! 99 <intent-filter android:label="Map In Browser"> 100 <action android:name="android.intent.action.VIEW" /> 101 <category android:name="android.intent.category.DEFAULT" /> 102 <data android:mimeType="vnd.android.cursor.item/postal-address" /> 103 </intent-filter> 104 --> 105 <intent-filter> 106 <action android:name="android.intent.action.WEB_SEARCH" /> 107 <category android:name="android.intent.category.DEFAULT" /> 108 <category android:name="android.intent.category.BROWSABLE" /> 109 <data android:scheme="" /> 110 <data android:scheme="http" /> 111 <data android:scheme="https" /> 112 </intent-filter> 113 <intent-filter> 114 <action android:name="android.intent.action.MEDIA_SEARCH" /> 115 <category android:name="android.intent.category.DEFAULT" /> 116 </intent-filter> 117 <intent-filter> 118 <action android:name="android.intent.action.SEARCH" /> 119 <category android:name="android.intent.category.DEFAULT" /> 120 </intent-filter> 121 <meta-data android:name="android.app.searchable" 122 android:resource="@xml/searchable" /> 123 </activity> 124 125 <activity android:name="CombinedBookmarkHistoryActivity" android:label="" 126 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden" 127 android:theme="@style/BookmarkTheme" > 128 <meta-data android:name="android.app.default_searchable" 129 android:value=".BrowserActivity" /> 130 </activity> 131 132 <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks" 133 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"> 134 </activity> 135 <activity android:name="MostVisitedActivity" android:label="" 136 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"/> 137 138 <activity-alias android:name="ShortcutBookmarksPage" 139 android:targetActivity="BrowserBookmarksPage" 140 android:label="@string/shortcut_bookmark" 141 android:icon="@drawable/ic_launcher_shortcut_browser_bookmark"> 142 143 <intent-filter> 144 <action android:name="android.intent.action.CREATE_SHORTCUT" /> 145 <category android:name="android.intent.category.DEFAULT" /> 146 </intent-filter> 147 148 </activity-alias> 149 150 <activity android:name="BrowserDownloadPage" android:label="" 151 android:configChanges="orientation|keyboardHidden"> 152 </activity> 153 154 <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences" 155 android:configChanges="orientation|keyboardHidden"> 156 </activity> 157 158 <activity android:name="BrowserHistoryPage" android:label="" 159 android:configChanges="orientation|keyboardHidden"> 160 </activity> 161 162 <activity android:name="WebsiteSettingsActivity" android:label="" 163 android:configChanges="orientation|keyboardHidden"> 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="Save bookmark" android:theme="@android:style/Theme.Dialog" 180 android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateHidden"> 181 <intent-filter> 182 <action android:name="android.intent.action.INSERT" /> 183 <category android:name="android.intent.category.DEFAULT" /> 184 <data android:mimeType="vnd.android.cursor.dir/bookmark"/> 185 </intent-filter> 186 </activity> 187 188 <!--receiver android:name=".widget.BookmarkWidgetProvider" android:label="@string/bookmarks"> 189 <intent-filter> 190 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 191 </intent-filter> 192 <meta-data android:name="android.appwidget.provider" android:resource="@xml/bookmarkwidget"/> 193 </receiver> 194 195 <service android:name=".widget.BookmarkWidgetService" /--> 196 197 <!-- Makes .BrowserActivity the search target for any activity in Browser --> 198 <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" /> 199 200 <receiver android:name=".OpenDownloadReceiver"> 201 <intent-filter> 202 <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED"/> 203 <action android:name="android.intent.action.DELETE"/> 204 <data android:scheme="content" android:mimeType="vnd.android.cursor.item/download"/> 205 </intent-filter> 206 </receiver> 207 </application> 208 209</manifest> 210 211