AndroidManifest.xml revision c1cf63a4c15ad81f4d19e10574e9dba91f0b83e4
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    <original-package android:name="com.android.browser" />
22
23    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
24    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
25    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
26    <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
27    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
28    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
29    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
30    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
31    <uses-permission android:name="android.permission.INTERNET" />
32    <uses-permission android:name="android.permission.SET_WALLPAPER" />
33    <uses-permission android:name="android.permission.WAKE_LOCK"/>
34    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
35    <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
36    <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
37    <uses-permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS" />
38
39    <application   android:name="Browser"
40                   android:label="@string/application_name"
41                   android:icon="@drawable/ic_launcher_browser"
42                   android:backupAgent=".BrowserBackupAgent"
43                   android:taskAffinity="android.task.browser" >
44
45        <provider android:name="BrowserProvider"
46                  android:authorities="browser"
47                  android:multiprocess="true"
48                  android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
49                  android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS">
50            <path-permission android:path="/bookmarks/search_suggest_query"
51                    android:readPermission="android.permission.GLOBAL_SEARCH" />
52            <path-permission android:path="/geolocation"
53                    android:writePermission="com.android.browser.permission.WRITE_GEOLOCATION_PERMISSIONS" />
54        </provider>
55        <activity android:name="BrowserActivity"
56                  android:label="@string/application_name"
57                  android:launchMode="singleTask"
58                  android:alwaysRetainTaskState="true"
59                  android:configChanges="orientation|keyboardHidden"
60                  android:theme="@style/BrowserTheme"
61                  android:windowSoftInputMode="adjustResize" >
62            <intent-filter>
63                <action android:name="android.speech.action.VOICE_SEARCH_RESULTS" />
64                <category android:name="android.intent.category.DEFAULT" />
65            </intent-filter>
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                <data android:scheme="javascript" />
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="inline" />
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        </activity>
125
126        <activity android:name="CombinedBookmarkHistoryActivity" android:label=""
127                  android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"
128                  android:theme="@style/BookmarkTheme" >
129            <meta-data android:name="android.app.default_searchable"
130                    android:value=".BrowserActivity" />
131        </activity>
132
133        <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks"
134                  android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">
135        </activity>
136
137        <activity-alias android:name="ShortcutBookmarksPage"
138            android:targetActivity="BrowserBookmarksPage"
139            android:label="@string/shortcut_bookmark"
140            android:icon="@drawable/ic_launcher_shortcut_browser_bookmark">
141
142            <intent-filter>
143                <action android:name="android.intent.action.CREATE_SHORTCUT" />
144                <category android:name="android.intent.category.DEFAULT" />
145            </intent-filter>
146
147        </activity-alias>
148
149        <activity android:name="BrowserDownloadPage" android:label=""
150                  android:configChanges="orientation|keyboardHidden">
151        </activity>
152
153        <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences"
154                  android:configChanges="orientation|keyboardHidden">
155        </activity>
156
157        <activity android:name="BrowserHistoryPage" android:label=""
158                  android:configChanges="orientation|keyboardHidden">
159        </activity>
160
161        <activity android:name="WebsiteSettingsActivity" android:label=""
162                  android:configChanges="orientation|keyboardHidden">
163        </activity>
164
165        <activity android:name="BookmarkSearch"
166                  android:label="@string/bookmarks_search"
167                  android:stateNotNeeded="true"
168                  android:theme="@android:style/Theme.NoDisplay"
169                  android:excludeFromRecents="true">
170            <intent-filter>
171                <action android:name="android.intent.action.SEARCH" />
172                <category android:name="android.intent.category.DEFAULT" />
173            </intent-filter>
174            <meta-data android:name="android.app.searchable"
175                    android:resource="@xml/bookmarks_searchable" />
176        </activity>
177
178        <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog"
179                  android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateHidden">
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        <!--receiver android:name=".widget.BookmarkWidgetProvider" android:label="@string/bookmarks">
188            <intent-filter>
189                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
190            </intent-filter>
191            <meta-data android:name="android.appwidget.provider" android:resource="@xml/bookmarkwidget"/>
192        </receiver>
193
194        <service android:name=".widget.BookmarkWidgetService" /-->
195
196        <!-- Makes .BrowserActivity the search target for any activity in Browser -->
197        <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
198
199        <receiver android:name=".OpenDownloadReceiver">
200            <intent-filter>
201                <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED"/>
202                <action android:name="android.intent.action.DELETE"/>
203                <data android:scheme="content" android:mimeType="vnd.android.cursor.item/download"/>
204            </intent-filter>
205        </receiver>
206    </application>
207
208</manifest>
209
210