The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame^] | 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 | <!-- Needed by the ZoomRingController to set the bit saying we've already shown the |
| 32 | tutorial toast. --> |
| 33 | <uses-permission android:name="android.permission.WRITE_SETTINGS"/> |
| 34 | <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/> |
| 35 | <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/> |
| 36 | |
| 37 | <!-- Allows an application to read the user Browser's history and bookmarks. --> |
| 38 | <permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" |
| 39 | android:permissionGroup="android.permission-group.PERSONAL_INFO" |
| 40 | android:label="@string/permlab_readHistoryBookmarks" |
| 41 | android:description="@string/permdesc_readHistoryBookmarks" |
| 42 | android:protectionLevel="dangerous" /> |
| 43 | |
| 44 | <!-- Allows an application to write (but not read) the user Browser's history and bookmarks. --> |
| 45 | <permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" |
| 46 | android:permissionGroup="android.permission-group.PERSONAL_INFO" |
| 47 | android:label="@string/permlab_writeHistoryBookmarks" |
| 48 | android:description="@string/permdesc_writeHistoryBookmarks" |
| 49 | android:protectionLevel="dangerous" /> |
| 50 | |
| 51 | <application android:name="Browser" |
| 52 | android:label="@string/application_name" |
| 53 | android:icon="@drawable/ic_launcher_browser" |
| 54 | android:taskAffinity="android.task.browser" > |
| 55 | <!-- TODO: Remove dependency of application on the test runner |
| 56 | (android.test) library. --> |
| 57 | <uses-library android:name="android.test.runner" /> |
| 58 | |
| 59 | <provider android:name="BrowserProvider" |
| 60 | android:authorities="browser" |
| 61 | android:multiprocess="true" |
| 62 | android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS" |
| 63 | android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/> |
| 64 | <activity android:name="BrowserActivity" |
| 65 | android:label="@string/application_name" |
| 66 | android:launchMode="singleTask" |
| 67 | android:alwaysRetainTaskState="true" |
| 68 | android:configChanges="orientation|keyboardHidden" |
| 69 | android:theme="@style/BrowserTheme" > |
| 70 | <!-- For these schemes were not particular MIME type has been |
| 71 | supplied, we are a good candidate. --> |
| 72 | <intent-filter> |
| 73 | <action android:name="android.intent.action.VIEW" /> |
| 74 | <category android:name="android.intent.category.DEFAULT" /> |
| 75 | <category android:name="android.intent.category.BROWSABLE" /> |
| 76 | <data android:scheme="http" /> |
| 77 | <data android:scheme="https" /> |
| 78 | <data android:scheme="about" /> |
| 79 | </intent-filter> |
| 80 | <!-- For these schemes where any of these particular MIME types |
| 81 | have been supplied, we are a good candidate. --> |
| 82 | <intent-filter> |
| 83 | <action android:name="android.intent.action.VIEW" /> |
| 84 | <category android:name="android.intent.category.BROWSABLE" /> |
| 85 | <category android:name="android.intent.category.DEFAULT" /> |
| 86 | <data android:scheme="http" /> |
| 87 | <data android:scheme="https" /> |
| 88 | <data android:mimeType="text/html"/> |
| 89 | <data android:mimeType="text/plain"/> |
| 90 | <data android:mimeType="application/xhtml+xml"/> |
| 91 | <data android:mimeType="application/vnd.wap.xhtml+xml"/> |
| 92 | </intent-filter> |
| 93 | <!-- We are also the main entry point of the browser. --> |
| 94 | <intent-filter> |
| 95 | <action android:name="android.intent.action.MAIN" /> |
| 96 | <category android:name="android.intent.category.DEFAULT" /> |
| 97 | <category android:name="android.intent.category.LAUNCHER" /> |
| 98 | <category android:name="android.intent.category.BROWSABLE" /> |
| 99 | </intent-filter> |
| 100 | <!-- The maps app is a much better experience, so it's not |
| 101 | worth having this at all... especially for a demo! |
| 102 | <intent-filter android:label="Map In Browser"> |
| 103 | <action android:name="android.intent.action.VIEW" /> |
| 104 | <category android:name="android.intent.category.DEFAULT" /> |
| 105 | <data android:mimeType="vnd.android.cursor.item/postal-address" /> |
| 106 | </intent-filter> |
| 107 | --> |
| 108 | <intent-filter> |
| 109 | <action android:name="android.intent.action.WEB_SEARCH" /> |
| 110 | <category android:name="android.intent.category.DEFAULT" /> |
| 111 | <category android:name="android.intent.category.BROWSABLE" /> |
| 112 | <data android:scheme="" /> |
| 113 | <data android:scheme="http" /> |
| 114 | <data android:scheme="https" /> |
| 115 | </intent-filter> |
| 116 | <intent-filter> |
| 117 | <action android:name="android.intent.action.WEB_SEARCH" /> |
| 118 | <action android:name="android.intent.action.MEDIA_SEARCH" /> |
| 119 | <category android:name="android.intent.category.DEFAULT" /> |
| 120 | </intent-filter> |
| 121 | <intent-filter> |
| 122 | <action android:name="android.intent.action.SEARCH" /> |
| 123 | <category android:name="android.intent.category.DEFAULT" /> |
| 124 | </intent-filter> |
| 125 | <meta-data android:name="android.app.searchable" |
| 126 | android:resource="@xml/searchable" /> |
| 127 | <intent-filter> |
| 128 | <action android:name="android.net.http.NETWORK_STATE" /> |
| 129 | <action android:name="android.intent.action.PROXY_CHANGE" /> |
| 130 | </intent-filter> |
| 131 | </activity> |
| 132 | |
| 133 | <activity android:name="CombinedBookmarkHistoryActivity" android:label="" |
| 134 | android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"> |
| 135 | </activity> |
| 136 | |
| 137 | <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks" |
| 138 | android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"> |
| 139 | </activity> |
| 140 | |
| 141 | <activity android:name="MostVisitedActivity" android:label="" |
| 142 | android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"/> |
| 143 | |
| 144 | <activity-alias android:name="ShortcutBookmarksPage" |
| 145 | android:targetActivity="BrowserBookmarksPage" |
| 146 | android:label="@string/shortcut_bookmark"> |
| 147 | |
| 148 | <intent-filter> |
| 149 | <action android:name="android.intent.action.CREATE_SHORTCUT" /> |
| 150 | <category android:name="android.intent.category.DEFAULT" /> |
| 151 | </intent-filter> |
| 152 | |
| 153 | </activity-alias> |
| 154 | |
| 155 | <activity android:name="BrowserDownloadPage" android:label="" |
| 156 | android:configChanges="orientation|keyboardHidden"> |
| 157 | </activity> |
| 158 | |
| 159 | <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences" |
| 160 | android:configChanges="orientation|keyboardHidden"> |
| 161 | </activity> |
| 162 | |
| 163 | <activity android:name="BrowserHistoryPage" android:label="" |
| 164 | android:configChanges="orientation|keyboardHidden"> |
| 165 | </activity> |
| 166 | |
| 167 | <activity android:name="BrowserPluginList" android:label="" |
| 168 | android:configChanges="orientation|keyboardHidden"> |
| 169 | </activity> |
| 170 | |
| 171 | <activity android:name="GearsDialog" android:process=":dialog" |
| 172 | android:configChanges="orientation|keyboardHidden" |
| 173 | android:theme="@android:style/Theme.Dialog"> |
| 174 | </activity> |
| 175 | |
| 176 | <activity android:name="GearsNativeDialog" |
| 177 | android:configChanges="orientation|keyboardHidden" |
| 178 | android:theme="@android:style/Theme.Dialog"> |
| 179 | </activity> |
| 180 | |
| 181 | <service android:name="GearsDialogService" |
| 182 | android:process=":dialog" |
| 183 | android:exported="false"> |
| 184 | <intent-filter> |
| 185 | <action android:name="com.android.browser.IGearsDialogService" /> |
| 186 | </intent-filter> |
| 187 | </service> |
| 188 | |
| 189 | <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog" |
| 190 | android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateHidden"> |
| 191 | <intent-filter> |
| 192 | <action android:name="android.intent.action.INSERT" /> |
| 193 | <category android:name="android.intent.category.DEFAULT" /> |
| 194 | <data android:mimeType="vnd.android.cursor.dir/bookmark"/> |
| 195 | </intent-filter> |
| 196 | </activity> |
| 197 | |
| 198 | <!-- Makes .BrowserActivity the search target for any activity in Browser --> |
| 199 | <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" /> |
| 200 | |
| 201 | |
| 202 | </application> |
| 203 | |
| 204 | <!-- Browser tests. Invoke with: --> |
| 205 | <!-- adb shell am instrument -w com.android.browser/.BrowserTestRunner --> |
| 206 | <instrumentation android:name="BrowserTestRunner" |
| 207 | android:targetPackage="com.android.browser" |
| 208 | android:label="@string/activity_instrumentation_test_runner" |
| 209 | /> |
| 210 | <!-- Browser tests. Invoke with: --> |
| 211 | <!-- adb shell am instrument -w com.android.browser/.BrowserFunctionalTestRunner --> |
| 212 | <instrumentation android:name="BrowserFunctionalTestRunner" |
| 213 | android:targetPackage="com.android.browser" |
| 214 | android:label="@string/activity_instrumentation_functional_test_runner" |
| 215 | /> |
| 216 | |
| 217 | <instrumentation android:name="BrowserLaunchPerformance" |
| 218 | android:targetPackage="com.android.browser" |
| 219 | android:label="Browser Launch Performance" |
| 220 | /> |
| 221 | |
| 222 | </manifest> |
| 223 | |