AndroidManifest.xml revision b6b7f9ef3b4ed220063f555d8b7c205210a61a04
1<!--
2/*
3 * Copyright 2006, The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *     http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17-->
18
19<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.browser">
20
21    <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" />
22    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
23    <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
24    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
25    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
26    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
27    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
28    <uses-permission android:name="android.permission.INTERNET" />
29    <uses-permission android:name="android.permission.WAKE_LOCK"/>
30    <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
31    <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
32
33    <!-- Allows an application to read the user Browser's history and bookmarks. -->
34    <permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
35        android:permissionGroup="android.permission-group.PERSONAL_INFO"
36        android:label="@string/permlab_readHistoryBookmarks"
37        android:description="@string/permdesc_readHistoryBookmarks"
38        android:protectionLevel="dangerous" />
39
40    <!-- Allows an application to write (but not read) the user Browser's history and bookmarks. -->
41    <permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"
42        android:permissionGroup="android.permission-group.PERSONAL_INFO"
43        android:label="@string/permlab_writeHistoryBookmarks"
44        android:description="@string/permdesc_writeHistoryBookmarks"
45        android:protectionLevel="dangerous" />
46
47    <application   android:name="Browser"
48                   android:label="@string/application_name"
49                   android:icon="@drawable/ic_launcher_browser"
50                   android:taskAffinity="android.task.browser" >
51
52        <provider android:name="BrowserProvider"
53                  android:authorities="browser"
54                  android:multiprocess="true"
55                  android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
56                  android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
57        <activity android:name="BrowserActivity"
58                  android:label="@string/application_name"
59                  android:launchMode="singleTask"
60                  android:alwaysRetainTaskState="true"
61                  android:configChanges="orientation|keyboardHidden"
62                  android:theme="@style/BrowserTheme" >
63            <!-- For these schemes were not particular MIME type has been
64                 supplied, we are a good candidate. -->
65            <intent-filter>
66                <action android:name="android.intent.action.VIEW" />
67                <category android:name="android.intent.category.DEFAULT" />
68                <category android:name="android.intent.category.BROWSABLE" />
69                <data android:scheme="http" />
70                <data android:scheme="https" />
71                <data android:scheme="about" />
72            </intent-filter>
73            <!--  For these schemes where any of these particular MIME types
74                  have been supplied, we are a good candidate. -->
75            <intent-filter>
76                <action android:name="android.intent.action.VIEW" />
77                <category android:name="android.intent.category.BROWSABLE" />
78                <category android:name="android.intent.category.DEFAULT" />
79                <data android:scheme="http" />
80                <data android:scheme="https" />
81                <data android:scheme="inline" />
82                <data android:mimeType="text/html"/>
83                <data android:mimeType="text/plain"/>
84                <data android:mimeType="application/xhtml+xml"/>
85                <data android:mimeType="application/vnd.wap.xhtml+xml"/>
86            </intent-filter>
87            <!-- We are also the main entry point of the browser. -->
88            <intent-filter>
89                <action android:name="android.intent.action.MAIN" />
90                <category android:name="android.intent.category.DEFAULT" />
91                <category android:name="android.intent.category.LAUNCHER" />
92                <category android:name="android.intent.category.BROWSABLE" />
93            </intent-filter>
94            <!-- The maps app is a much better experience, so it's not
95                 worth having this at all... especially for a demo!
96            <intent-filter android:label="Map In Browser">
97                <action android:name="android.intent.action.VIEW" />
98                <category android:name="android.intent.category.DEFAULT" />
99                <data android:mimeType="vnd.android.cursor.item/postal-address" />
100            </intent-filter>
101            -->
102            <intent-filter>
103                <action android:name="android.intent.action.WEB_SEARCH" />
104                <category android:name="android.intent.category.DEFAULT" />
105                <category android:name="android.intent.category.BROWSABLE" />
106                <data android:scheme="" />
107                <data android:scheme="http" />
108                <data android:scheme="https" />
109            </intent-filter>
110            <intent-filter>
111                <action android:name="android.intent.action.MEDIA_SEARCH" />
112                <category android:name="android.intent.category.DEFAULT" />
113            </intent-filter>
114            <intent-filter>
115                <action android:name="android.intent.action.SEARCH" />
116                <category android:name="android.intent.category.DEFAULT" />
117            </intent-filter>
118            <meta-data android:name="android.app.searchable"
119                    android:resource="@xml/searchable" />
120            <intent-filter>
121                <action android:name="android.net.http.NETWORK_STATE" />
122                <action android:name="android.intent.action.PROXY_CHANGE" />
123            </intent-filter>
124        </activity>
125
126        <activity android:name="CombinedBookmarkHistoryActivity" android:label=""
127                  android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">
128        </activity>
129
130        <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks"
131                  android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">
132        </activity>
133        <activity android:name="BookmarkGridPage" android:label="@string/bookmarks"
134                  android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"/>
135
136        <activity android:name="MostVisitedActivity" android:label=""
137                android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"/>
138
139        <activity-alias android:name="ShortcutBookmarksPage"
140            android:targetActivity="BrowserBookmarksPage"
141            android:label="@string/shortcut_bookmark"
142            android:icon="@drawable/ic_launcher_shortcut_browser_bookmark">
143
144            <intent-filter>
145                <action android:name="android.intent.action.CREATE_SHORTCUT" />
146                <category android:name="android.intent.category.DEFAULT" />
147            </intent-filter>
148
149        </activity-alias>
150
151        <activity android:name="BrowserDownloadPage" android:label=""
152                  android:configChanges="orientation|keyboardHidden">
153        </activity>
154
155        <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences"
156                  android:configChanges="orientation|keyboardHidden">
157        </activity>
158
159        <activity android:name="BrowserHistoryPage" android:label=""
160                  android:configChanges="orientation|keyboardHidden">
161        </activity>
162
163        <activity android:name="BrowserPluginList" android:label=""
164                  android:configChanges="orientation|keyboardHidden">
165        </activity>
166
167        <activity android:name="GearsDialog" android:process=":dialog"
168                  android:configChanges="orientation|keyboardHidden"
169                  android:theme="@android:style/Theme.Dialog">
170        </activity>
171
172        <activity android:name="PermissionDialog"
173                  android:configChanges="orientation|keyboardHidden"
174                  android:theme="@android:style/Theme.Dialog">
175        </activity>
176
177        <activity android:name="GearsNativeDialog"
178                  android:configChanges="orientation|keyboardHidden"
179                  android:theme="@android:style/Theme.Dialog">
180        </activity>
181
182        <activity android:name="BookmarkSearch"
183                  android:label="@string/bookmarks_search"
184                  android:stateNotNeeded="true"
185                  android:theme="@android:style/Theme.NoDisplay"
186                  android:excludeFromRecents="true">
187            <intent-filter>
188                <action android:name="android.intent.action.SEARCH" />
189                <category android:name="android.intent.category.DEFAULT" />
190            </intent-filter>
191            <meta-data android:name="android.app.searchable"
192                    android:resource="@xml/bookmarks_searchable" />
193        </activity>
194
195        <service android:name="GearsDialogService"
196                 android:process=":dialog"
197                 android:exported="false">
198            <intent-filter>
199                <action android:name="com.android.browser.IGearsDialogService" />
200            </intent-filter>
201        </service>
202
203        <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog"
204                  android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateHidden">
205            <intent-filter>
206                <action android:name="android.intent.action.INSERT" />
207                <category android:name="android.intent.category.DEFAULT" />
208                <data android:mimeType="vnd.android.cursor.dir/bookmark"/>
209            </intent-filter>
210        </activity>
211
212        <!-- Makes .BrowserActivity the search target for any activity in Browser -->
213        <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
214
215
216    </application>
217
218</manifest>
219
220