blob: 762dc69489514f390a1548166ec03151e28c88d9 [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"
49 android:label="Browser"
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
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 Projectba6d7b82008-10-21 07:00:00 -070061 <activity android:name="BrowserActivity" android:label="Browser"
62 android:launchMode="singleTask"
63 android:alwaysRetainTaskState="true"
64 android:configChanges="orientation|keyboardHidden"
65 android:theme="@style/BrowserTheme" >
66 <!-- For these schemes were not particular MIME type has been
67 supplied, we are a good candidate. -->
68 <intent-filter>
69 <action android:name="android.intent.action.VIEW" />
70 <category android:name="android.intent.category.DEFAULT" />
71 <category android:name="android.intent.category.BROWSABLE" />
72 <data android:scheme="http" />
73 <data android:scheme="https" />
74 <data android:scheme="about" />
75 </intent-filter>
76 <!-- For these schemes where any of these particular MIME types
77 have been supplied, we are a good candidate. -->
78 <intent-filter>
79 <action android:name="android.intent.action.VIEW" />
80 <category android:name="android.intent.category.BROWSABLE" />
81 <category android:name="android.intent.category.DEFAULT" />
82 <data android:scheme="http" />
83 <data android:scheme="https" />
84 <data android:mimeType="text/html"/>
85 <data android:mimeType="text/plain"/>
86 <data android:mimeType="application/xhtml+xml"/>
87 <data android:mimeType="application/vnd.wap.xhtml+xml"/>
88 </intent-filter>
89 <!-- We are also the main entry point of the browser. -->
90 <intent-filter>
91 <action android:name="android.intent.action.MAIN" />
92 <category android:name="android.intent.category.DEFAULT" />
93 <category android:name="android.intent.category.LAUNCHER" />
94 <category android:name="android.intent.category.BROWSABLE" />
95 </intent-filter>
96 <!-- The maps app is a much better experience, so it's not
97 worth having this at all... especially for a demo!
98 <intent-filter android:label="Map In Browser">
99 <action android:name="android.intent.action.VIEW" />
100 <category android:name="android.intent.category.DEFAULT" />
101 <data android:mimeType="vnd.android.cursor.item/postal-address" />
102 </intent-filter>
103 -->
104 <intent-filter>
105 <action android:name="android.intent.action.WEB_SEARCH" />
106 <category android:name="android.intent.category.DEFAULT" />
107 <category android:name="android.intent.category.BROWSABLE" />
108 <data android:scheme="" />
109 <data android:scheme="http" />
110 <data android:scheme="https" />
111 </intent-filter>
112 <intent-filter>
113 <action android:name="android.intent.action.WEB_SEARCH" />
The Android Open Source Projected217d92008-12-17 18:05:52 -0800114 <action android:name="android.intent.action.MEDIA_SEARCH" />
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -0700115 <category android:name="android.intent.category.DEFAULT" />
116 </intent-filter>
117 <intent-filter>
118 <action android:name="android.intent.action.SEARCH" />
119 <category android:name="android.intent.category.DEFAULT" />
120 </intent-filter>
121 <meta-data android:name="android.app.searchable"
122 android:resource="@xml/searchable" />
123 <intent-filter>
124 <action android:name="android.net.http.NETWORK_STATE" />
125 <action android:name="android.intent.action.PROXY_CHANGE" />
126 </intent-filter>
127 </activity>
128
129 <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks"
130 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">
131 </activity>
132
133 <activity-alias android:name="ShortcutBookmarksPage"
134 android:targetActivity="BrowserBookmarksPage"
135 android:label="@string/shortcut_bookmark">
136
137 <intent-filter>
138 <action android:name="android.intent.action.CREATE_SHORTCUT" />
139 <category android:name="android.intent.category.DEFAULT" />
140 </intent-filter>
141
142 </activity-alias>
143
144 <activity android:name="BrowserDownloadPage" android:label=""
145 android:configChanges="orientation|keyboardHidden">
146 </activity>
147
148 <activity android:name="BrowserPreferencesPage" android:label=""
149 android:configChanges="orientation|keyboardHidden">
150 </activity>
151
152 <activity android:name="BrowserHistoryPage" android:label=""
153 android:configChanges="orientation|keyboardHidden">
154 </activity>
155
156 <activity android:name="BrowserPluginList" android:label=""
157 android:configChanges="orientation|keyboardHidden">
158 </activity>
159
160 <activity android:name="GearsDialog" android:process=":dialog"
161 android:configChanges="orientation|keyboardHidden"
162 android:theme="@android:style/Theme.Dialog">
163 </activity>
164
The Android Open Source Projected217d92008-12-17 18:05:52 -0800165 <activity android:name="GearsNativeDialog"
166 android:configChanges="orientation|keyboardHidden"
167 android:theme="@android:style/Theme.Dialog">
168 </activity>
169
170 <service android:name="GearsDialogService"
171 android:process=":dialog"
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -0700172 android:exported="false">
173 <intent-filter>
174 <action android:name="com.android.browser.IGearsDialogService" />
175 </intent-filter>
176 </service>
177
178 <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog"
179 android:configChanges="orientation|keyboardHidden">
180 <intent-filter>
181 <action android:name="android.intent.action.INSERT" />
182 <category android:name="android.intent.category.DEFAULT" />
183 <data android:mimeType="vnd.android.cursor.dir/bookmark"/>
184 </intent-filter>
185 </activity>
186
187 <!-- Makes .BrowserActivity the search target for any activity in Browser -->
188 <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
189
190
191 </application>
192
193 <!-- Browser tests. Invoke with: -->
194 <!-- adb shell am instrument -w com.android.browser/.BrowserTestRunner -->
195 <instrumentation android:name="BrowserTestRunner"
196 android:targetPackage="com.android.browser"
197 android:label="@string/activity_instrumentation_test_runner"
198 />
199 <!-- Browser tests. Invoke with: -->
200 <!-- adb shell am instrument -w com.android.browser/.BrowserFunctionalTestRunner -->
201 <instrumentation android:name="BrowserFunctionalTestRunner"
202 android:targetPackage="com.android.browser"
203 android:label="@string/activity_instrumentation_functional_test_runner"
204 />
205
206 <instrumentation android:name="BrowserLaunchPerformance"
207 android:targetPackage="com.android.browser"
208 android:label="Browser Launch Performance"
209 />
210
211</manifest>
212