AndroidManifest.xml revision 565505b1a2c1d3099496af5910760087602e994a
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:scheme="data" />
86                <data android:mimeType="text/html"/>
87                <data android:mimeType="text/plain"/>
88                <data android:mimeType="application/xhtml+xml"/>
89                <data android:mimeType="application/vnd.wap.xhtml+xml"/>
90            </intent-filter>
91            <!-- We are also the main entry point of the browser. -->
92            <intent-filter>
93                <action android:name="android.intent.action.MAIN" />
94                <category android:name="android.intent.category.DEFAULT" />
95                <category android:name="android.intent.category.LAUNCHER" />
96                <category android:name="android.intent.category.BROWSABLE" />
97            </intent-filter>
98            <!-- The maps app is a much better experience, so it's not
99                 worth having this at all... especially for a demo!
100            <intent-filter android:label="Map In Browser">
101                <action android:name="android.intent.action.VIEW" />
102                <category android:name="android.intent.category.DEFAULT" />
103                <data android:mimeType="vnd.android.cursor.item/postal-address" />
104            </intent-filter>
105            -->
106            <intent-filter>
107                <action android:name="android.intent.action.WEB_SEARCH" />
108                <category android:name="android.intent.category.DEFAULT" />
109                <category android:name="android.intent.category.BROWSABLE" />
110                <data android:scheme="" />
111                <data android:scheme="http" />
112                <data android:scheme="https" />
113            </intent-filter>
114            <intent-filter>
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            android:icon="@drawable/ic_launcher_shortcut_browser_bookmark">
145
146            <intent-filter>
147                <action android:name="android.intent.action.CREATE_SHORTCUT" />
148                <category android:name="android.intent.category.DEFAULT" />
149            </intent-filter>
150
151        </activity-alias>
152
153        <activity android:name="BrowserDownloadPage" android:label=""
154                  android:configChanges="orientation|keyboardHidden">
155        </activity>
156
157        <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences"
158                  android:configChanges="orientation|keyboardHidden">
159        </activity>
160
161        <activity android:name="BrowserHistoryPage" android:label=""
162                  android:configChanges="orientation|keyboardHidden">
163        </activity>
164
165        <activity android:name="BrowserPluginList" android:label=""
166                  android:configChanges="orientation|keyboardHidden">
167        </activity>
168
169        <activity android:name="GearsDialog" android:process=":dialog"
170                  android:configChanges="orientation|keyboardHidden"
171                  android:theme="@android:style/Theme.Dialog">
172        </activity>
173
174        <activity android:name="GearsNativeDialog"
175                  android:configChanges="orientation|keyboardHidden"
176                  android:theme="@android:style/Theme.Dialog">
177        </activity>
178
179        <activity android:name="BookmarkSearch"
180                  android:label="@string/bookmarks_search"
181                  android:stateNotNeeded="true"
182                  android:theme="@android:style/Theme.NoDisplay"
183                  android:excludeFromRecents="true">
184            <intent-filter>
185                <action android:name="android.intent.action.SEARCH" />
186                <category android:name="android.intent.category.DEFAULT" />
187            </intent-filter>
188            <meta-data android:name="android.app.searchable"
189                    android:resource="@xml/bookmarks_searchable" />
190        </activity>
191
192        <service android:name="GearsDialogService"
193                 android:process=":dialog"
194                 android:exported="false">
195            <intent-filter>
196                <action android:name="com.android.browser.IGearsDialogService" />
197            </intent-filter>
198        </service>
199
200        <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog"
201                  android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateHidden">
202            <intent-filter>
203                <action android:name="android.intent.action.INSERT" />
204                <category android:name="android.intent.category.DEFAULT" />
205                <data android:mimeType="vnd.android.cursor.dir/bookmark"/>
206            </intent-filter>
207        </activity>
208
209        <!-- Makes .BrowserActivity the search target for any activity in Browser -->
210        <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
211
212
213    </application>
214
215    <!-- Browser tests.  Invoke with: -->
216    <!--      adb shell am instrument -w com.android.browser/.BrowserTestRunner -->
217    <instrumentation android:name="BrowserTestRunner"
218        android:targetPackage="com.android.browser"
219        android:label="@string/activity_instrumentation_test_runner"
220    />
221    <!-- Browser tests.  Invoke with: -->
222    <!--      adb shell am instrument -w com.android.browser/.BrowserFunctionalTestRunner -->
223    <instrumentation android:name="BrowserFunctionalTestRunner"
224        android:targetPackage="com.android.browser"
225        android:label="@string/activity_instrumentation_functional_test_runner"
226    />
227
228    <instrumentation android:name="BrowserLaunchPerformance"
229        android:targetPackage="com.android.browser"
230        android:label="Browser Launch Performance"
231    />
232
233</manifest>
234
235