blob: 6bf400deb3e73a2329ede546c29d792a90c05b1a [file] [log] [blame]
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -07001<!--
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
32 <application android:name="Browser"
33 android:label="Browser"
34 android:icon="@drawable/ic_launcher_browser"
35 android:taskAffinity="android.task.browser" >
36 <!-- TODO: Remove dependency of application on the test runner
37 (android.test) library. -->
38 <uses-library android:name="android.test.runner" />
39
40 <provider android:name="BrowserProvider" android:authorities="browser" android:multiprocess="true" />
41 <activity android:name="BrowserActivity" android:label="Browser"
42 android:launchMode="singleTask"
43 android:alwaysRetainTaskState="true"
44 android:configChanges="orientation|keyboardHidden"
45 android:theme="@style/BrowserTheme" >
46 <!-- For these schemes were not particular MIME type has been
47 supplied, we are a good candidate. -->
48 <intent-filter>
49 <action android:name="android.intent.action.VIEW" />
50 <category android:name="android.intent.category.DEFAULT" />
51 <category android:name="android.intent.category.BROWSABLE" />
52 <data android:scheme="http" />
53 <data android:scheme="https" />
54 <data android:scheme="about" />
55 </intent-filter>
56 <!-- For these schemes where any of these particular MIME types
57 have been supplied, we are a good candidate. -->
58 <intent-filter>
59 <action android:name="android.intent.action.VIEW" />
60 <category android:name="android.intent.category.BROWSABLE" />
61 <category android:name="android.intent.category.DEFAULT" />
62 <data android:scheme="http" />
63 <data android:scheme="https" />
64 <data android:mimeType="text/html"/>
65 <data android:mimeType="text/plain"/>
66 <data android:mimeType="application/xhtml+xml"/>
67 <data android:mimeType="application/vnd.wap.xhtml+xml"/>
68 </intent-filter>
69 <!-- We are also the main entry point of the browser. -->
70 <intent-filter>
71 <action android:name="android.intent.action.MAIN" />
72 <category android:name="android.intent.category.DEFAULT" />
73 <category android:name="android.intent.category.LAUNCHER" />
74 <category android:name="android.intent.category.BROWSABLE" />
75 </intent-filter>
76 <!-- The maps app is a much better experience, so it's not
77 worth having this at all... especially for a demo!
78 <intent-filter android:label="Map In Browser">
79 <action android:name="android.intent.action.VIEW" />
80 <category android:name="android.intent.category.DEFAULT" />
81 <data android:mimeType="vnd.android.cursor.item/postal-address" />
82 </intent-filter>
83 -->
84 <intent-filter>
85 <action android:name="android.intent.action.WEB_SEARCH" />
86 <category android:name="android.intent.category.DEFAULT" />
87 <category android:name="android.intent.category.BROWSABLE" />
88 <data android:scheme="" />
89 <data android:scheme="http" />
90 <data android:scheme="https" />
91 </intent-filter>
92 <intent-filter>
93 <action android:name="android.intent.action.WEB_SEARCH" />
94 <category android:name="android.intent.category.DEFAULT" />
95 </intent-filter>
96 <intent-filter>
97 <action android:name="android.intent.action.SEARCH" />
98 <category android:name="android.intent.category.DEFAULT" />
99 </intent-filter>
100 <meta-data android:name="android.app.searchable"
101 android:resource="@xml/searchable" />
102 <intent-filter>
103 <action android:name="android.net.http.NETWORK_STATE" />
104 <action android:name="android.intent.action.PROXY_CHANGE" />
105 </intent-filter>
106 </activity>
107
108 <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks"
109 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">
110 </activity>
111
112 <activity-alias android:name="ShortcutBookmarksPage"
113 android:targetActivity="BrowserBookmarksPage"
114 android:label="@string/shortcut_bookmark">
115
116 <intent-filter>
117 <action android:name="android.intent.action.CREATE_SHORTCUT" />
118 <category android:name="android.intent.category.DEFAULT" />
119 </intent-filter>
120
121 </activity-alias>
122
123 <activity android:name="BrowserDownloadPage" android:label=""
124 android:configChanges="orientation|keyboardHidden">
125 </activity>
126
127 <activity android:name="BrowserPreferencesPage" android:label=""
128 android:configChanges="orientation|keyboardHidden">
129 </activity>
130
131 <activity android:name="BrowserHistoryPage" android:label=""
132 android:configChanges="orientation|keyboardHidden">
133 </activity>
134
135 <activity android:name="BrowserPluginList" android:label=""
136 android:configChanges="orientation|keyboardHidden">
137 </activity>
138
139 <activity android:name="GearsDialog" android:process=":dialog"
140 android:configChanges="orientation|keyboardHidden"
141 android:theme="@android:style/Theme.Dialog">
142 </activity>
143
144 <service android:name="GearsDialogService" android:process=":dialog"
145 android:exported="false">
146 <intent-filter>
147 <action android:name="com.android.browser.IGearsDialogService" />
148 </intent-filter>
149 </service>
150
151 <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog"
152 android:configChanges="orientation|keyboardHidden">
153 <intent-filter>
154 <action android:name="android.intent.action.INSERT" />
155 <category android:name="android.intent.category.DEFAULT" />
156 <data android:mimeType="vnd.android.cursor.dir/bookmark"/>
157 </intent-filter>
158 </activity>
159
160 <!-- Makes .BrowserActivity the search target for any activity in Browser -->
161 <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
162
163
164 </application>
165
166 <!-- Browser tests. Invoke with: -->
167 <!-- adb shell am instrument -w com.android.browser/.BrowserTestRunner -->
168 <instrumentation android:name="BrowserTestRunner"
169 android:targetPackage="com.android.browser"
170 android:label="@string/activity_instrumentation_test_runner"
171 />
172 <!-- Browser tests. Invoke with: -->
173 <!-- adb shell am instrument -w com.android.browser/.BrowserFunctionalTestRunner -->
174 <instrumentation android:name="BrowserFunctionalTestRunner"
175 android:targetPackage="com.android.browser"
176 android:label="@string/activity_instrumentation_functional_test_runner"
177 />
178
179 <instrumentation android:name="BrowserLaunchPerformance"
180 android:targetPackage="com.android.browser"
181 android:label="Browser Launch Performance"
182 />
183
184</manifest>
185