AndroidManifest.xml revision 7ddab4c4a8fb866577f0cfe07f325d68b9a7b7c0
1<!-- 2/* //device/apps/Browser/AndroidManifest.xml 3** 4** Copyright 2006, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License"); 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19 20<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.browser"> 21 22 <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" /> 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="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/> 32 <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/> 33 34 <!-- Allows an application to read the user Browser's history and bookmarks. --> 35 <permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" 36 android:permissionGroup="android.permission-group.PERSONAL_INFO" 37 android:label="@string/permlab_readHistoryBookmarks" 38 android:description="@string/permdesc_readHistoryBookmarks" 39 android:protectionLevel="dangerous" /> 40 41 <!-- Allows an application to write (but not read) the user Browser's history and bookmarks. --> 42 <permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" 43 android:permissionGroup="android.permission-group.PERSONAL_INFO" 44 android:label="@string/permlab_writeHistoryBookmarks" 45 android:description="@string/permdesc_writeHistoryBookmarks" 46 android:protectionLevel="dangerous" /> 47 48 <application android:name="Browser" 49 android:label="@string/application_name" 50 android:icon="@drawable/ic_launcher_browser" 51 android:taskAffinity="android.task.browser" > 52 <!-- TODO: Remove dependency of application on the test runner 53 (android.test) library. --> 54 <uses-library android:name="android.test.runner" /> 55 56 <provider android:name="BrowserProvider" 57 android:authorities="browser" 58 android:multiprocess="true" 59 android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS" 60 android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/> 61 <activity android:name="BrowserActivity" 62 android:label="@string/application_name" 63 android:launchMode="singleTask" 64 android:alwaysRetainTaskState="true" 65 android:configChanges="orientation|keyboardHidden" 66 android:theme="@style/BrowserTheme" > 67 <!-- For these schemes were not particular MIME type has been 68 supplied, we are a good candidate. --> 69 <intent-filter> 70 <action android:name="android.intent.action.VIEW" /> 71 <category android:name="android.intent.category.DEFAULT" /> 72 <category android:name="android.intent.category.BROWSABLE" /> 73 <data android:scheme="http" /> 74 <data android:scheme="https" /> 75 <data android:scheme="about" /> 76 </intent-filter> 77 <!-- For these schemes where any of these particular MIME types 78 have been supplied, we are a good candidate. --> 79 <intent-filter> 80 <action android:name="android.intent.action.VIEW" /> 81 <category android:name="android.intent.category.BROWSABLE" /> 82 <category android:name="android.intent.category.DEFAULT" /> 83 <data android:scheme="http" /> 84 <data android:scheme="https" /> 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.WEB_SEARCH" /> 115 <action android:name="android.intent.action.MEDIA_SEARCH" /> 116 <category android:name="android.intent.category.DEFAULT" /> 117 </intent-filter> 118 <intent-filter> 119 <action android:name="android.intent.action.SEARCH" /> 120 <category android:name="android.intent.category.DEFAULT" /> 121 </intent-filter> 122 <meta-data android:name="android.app.searchable" 123 android:resource="@xml/searchable" /> 124 <intent-filter> 125 <action android:name="android.net.http.NETWORK_STATE" /> 126 <action android:name="android.intent.action.PROXY_CHANGE" /> 127 </intent-filter> 128 </activity> 129 130 <activity android:name="CombinedBookmarkHistoryActivity" android:label="" 131 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"> 132 </activity> 133 134 <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks" 135 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"> 136 </activity> 137 138 <activity android:name="MostVisitedActivity" android:label="" 139 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"/> 140 141 <activity-alias android:name="ShortcutBookmarksPage" 142 android:targetActivity="BrowserBookmarksPage" 143 android:label="@string/shortcut_bookmark"> 144 145 <intent-filter> 146 <action android:name="android.intent.action.CREATE_SHORTCUT" /> 147 <category android:name="android.intent.category.DEFAULT" /> 148 </intent-filter> 149 150 </activity-alias> 151 152 <activity android:name="BrowserDownloadPage" android:label="" 153 android:configChanges="orientation|keyboardHidden"> 154 </activity> 155 156 <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences" 157 android:configChanges="orientation|keyboardHidden"> 158 </activity> 159 160 <activity android:name="BrowserHistoryPage" android:label="" 161 android:configChanges="orientation|keyboardHidden"> 162 </activity> 163 164 <activity android:name="BrowserPluginList" android:label="" 165 android:configChanges="orientation|keyboardHidden"> 166 </activity> 167 168 <activity android:name="GearsDialog" android:process=":dialog" 169 android:configChanges="orientation|keyboardHidden" 170 android:theme="@android:style/Theme.Dialog"> 171 </activity> 172 173 <activity android:name="GearsNativeDialog" 174 android:configChanges="orientation|keyboardHidden" 175 android:theme="@android:style/Theme.Dialog"> 176 </activity> 177 178 <service android:name="GearsDialogService" 179 android:process=":dialog" 180 android:exported="false"> 181 <intent-filter> 182 <action android:name="com.android.browser.IGearsDialogService" /> 183 </intent-filter> 184 </service> 185 186 <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog" 187 android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateHidden"> 188 <intent-filter> 189 <action android:name="android.intent.action.INSERT" /> 190 <category android:name="android.intent.category.DEFAULT" /> 191 <data android:mimeType="vnd.android.cursor.dir/bookmark"/> 192 </intent-filter> 193 </activity> 194 195 <!-- Makes .BrowserActivity the search target for any activity in Browser --> 196 <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" /> 197 198 199 </application> 200 201 <!-- Browser tests. Invoke with: --> 202 <!-- adb shell am instrument -w com.android.browser/.BrowserTestRunner --> 203 <instrumentation android:name="BrowserTestRunner" 204 android:targetPackage="com.android.browser" 205 android:label="@string/activity_instrumentation_test_runner" 206 /> 207 <!-- Browser tests. Invoke with: --> 208 <!-- adb shell am instrument -w com.android.browser/.BrowserFunctionalTestRunner --> 209 <instrumentation android:name="BrowserFunctionalTestRunner" 210 android:targetPackage="com.android.browser" 211 android:label="@string/activity_instrumentation_functional_test_runner" 212 /> 213 214 <instrumentation android:name="BrowserLaunchPerformance" 215 android:targetPackage="com.android.browser" 216 android:label="Browser Launch Performance" 217 /> 218 219</manifest> 220 221