blob: 4f28ef086b3c3f385f6a9c450ea0d0e6539c9a4d [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"/>
The Android Open Source Projected217d92008-12-17 18:05:52 -080031 <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" />
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -070047
48 <application android:name="Browser"
The Android Open Source Project96cb4a42009-01-15 16:12:12 -080049 android:label="@string/application_name"
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -070050 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
The Android Open Source Projected217d92008-12-17 18:05:52 -080056 <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"/>
The Android Open Source Project96cb4a42009-01-15 16:12:12 -080061 <activity android:name="BrowserActivity"
62 android:label="@string/application_name"
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -070063 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" />
The Android Open Source Projected217d92008-12-17 18:05:52 -0800115 <action android:name="android.intent.action.MEDIA_SEARCH" />
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -0700116 <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="BrowserBookmarksPage" android:label="@string/bookmarks"
131 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">
132 </activity>
133
134 <activity-alias android:name="ShortcutBookmarksPage"
135 android:targetActivity="BrowserBookmarksPage"
136 android:label="@string/shortcut_bookmark">
137
138 <intent-filter>
139 <action android:name="android.intent.action.CREATE_SHORTCUT" />
140 <category android:name="android.intent.category.DEFAULT" />
141 </intent-filter>
142
143 </activity-alias>
144
145 <activity android:name="BrowserDownloadPage" android:label=""
146 android:configChanges="orientation|keyboardHidden">
147 </activity>
148
149 <activity android:name="BrowserPreferencesPage" android:label=""
150 android:configChanges="orientation|keyboardHidden">
151 </activity>
152
153 <activity android:name="BrowserHistoryPage" android:label=""
154 android:configChanges="orientation|keyboardHidden">
155 </activity>
156
157 <activity android:name="BrowserPluginList" android:label=""
158 android:configChanges="orientation|keyboardHidden">
159 </activity>
160
161 <activity android:name="GearsDialog" android:process=":dialog"
162 android:configChanges="orientation|keyboardHidden"
163 android:theme="@android:style/Theme.Dialog">
164 </activity>
165
The Android Open Source Projected217d92008-12-17 18:05:52 -0800166 <activity android:name="GearsNativeDialog"
167 android:configChanges="orientation|keyboardHidden"
168 android:theme="@android:style/Theme.Dialog">
169 </activity>
170
171 <service android:name="GearsDialogService"
172 android:process=":dialog"
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -0700173 android:exported="false">
174 <intent-filter>
175 <action android:name="com.android.browser.IGearsDialogService" />
176 </intent-filter>
177 </service>
178
179 <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog"
180 android:configChanges="orientation|keyboardHidden">
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 <!-- Makes .BrowserActivity the search target for any activity in Browser -->
189 <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
190
191
192 </application>
193
194 <!-- Browser tests. Invoke with: -->
195 <!-- adb shell am instrument -w com.android.browser/.BrowserTestRunner -->
196 <instrumentation android:name="BrowserTestRunner"
197 android:targetPackage="com.android.browser"
198 android:label="@string/activity_instrumentation_test_runner"
199 />
200 <!-- Browser tests. Invoke with: -->
201 <!-- adb shell am instrument -w com.android.browser/.BrowserFunctionalTestRunner -->
202 <instrumentation android:name="BrowserFunctionalTestRunner"
203 android:targetPackage="com.android.browser"
204 android:label="@string/activity_instrumentation_functional_test_runner"
205 />
206
207 <instrumentation android:name="BrowserLaunchPerformance"
208 android:targetPackage="com.android.browser"
209 android:label="Browser Launch Performance"
210 />
211
212</manifest>
213