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