AndroidManifest.xml 14.2 KB
Newer Older
1
<!--
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
 * Copyright 2006, The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
17 18 19 20
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.browser">

21 22
    <original-package android:name="com.android.browser" />

Michael Kolb's avatar
Michael Kolb committed
23 24 25 26
    <permission android:name="com.android.browser.permission.PRELOAD"
        android:label="@string/permission_preload_label"
        android:protectionLevel="signatureOrSystem" />

27 28 29 30 31
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
32
    <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
Patrick Scott's avatar
Patrick Scott committed
33
    <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
34
    <uses-permission android:name="android.permission.INTERNET" />
35
    <uses-permission android:name="android.permission.NFC" />
36
    <uses-permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS" />
37
    <uses-permission android:name="android.permission.SET_WALLPAPER" />
38
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
39
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
40
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
41
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
42
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
43
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
44 45
    <uses-permission android:name="android.permission.READ_PROFILE" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
46 47
    <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
    <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
48
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
Tao Bai's avatar
Tao Bai committed
49 50
    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
    <uses-permission android:name="android.permission.CAMERA"/>
51
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
52 53 54

    <application   android:name="Browser"
                   android:label="@string/application_name"
Ying Wang's avatar
Ying Wang committed
55
                   android:icon="@mipmap/ic_launcher_browser"
56
                   android:backupAgent=".BrowserBackupAgent"
57
                   android:hardwareAccelerated="true"
58 59
                   android:taskAffinity="android.task.browser" >

60
        <provider android:name=".provider.BrowserProvider2"
John Reck's avatar
John Reck committed
61
                  android:authorities="com.android.browser;browser"
John Reck's avatar
John Reck committed
62
                  android:multiprocess="false"
63
                  android:exported="true"
64
                  android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
65
                  android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS">
66 67 68
            <path-permission android:path="/bookmarks/search_suggest_query"
                    android:readPermission="android.permission.GLOBAL_SEARCH" />
        </provider>
69 70 71 72
        <activity android:name="BrowserActivity"
                  android:label="@string/application_name"
                  android:launchMode="singleTask"
                  android:alwaysRetainTaskState="true"
73
                  android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
74 75
                  android:theme="@style/BrowserTheme"
                  android:windowSoftInputMode="adjustResize" >
76 77 78 79
            <intent-filter>
                <action android:name="android.speech.action.VOICE_SEARCH_RESULTS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
80 81 82 83 84 85 86 87 88
            <!-- For these schemes were not particular MIME type has been
                 supplied, we are a good candidate. -->
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:scheme="about" />
89
                <data android:scheme="javascript" />
90 91 92 93 94 95 96 97 98
            </intent-filter>
            <!--  For these schemes where any of these particular MIME types
                  have been supplied, we are a good candidate. -->
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="http" />
                <data android:scheme="https" />
99
                <data android:scheme="inline" />
100 101 102 103 104
                <data android:mimeType="text/html"/>
                <data android:mimeType="text/plain"/>
                <data android:mimeType="application/xhtml+xml"/>
                <data android:mimeType="application/vnd.wap.xhtml+xml"/>
            </intent-filter>
105 106 107 108 109 110 111 112 113 114
            <!-- For viewing saved web archives. -->
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:scheme="file" />
                <data android:mimeType="application/x-webarchive-xml"/>
            </intent-filter>
115 116 117 118 119 120 121
            <!-- Accept inbound NFC URLs at a low priority -->
            <intent-filter android:priority="-101">
                <action android:name="android.nfc.action.NDEF_DISCOVERED" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="http" />
                <data android:scheme="https" />
            </intent-filter>
122 123 124 125 126 127
            <!-- We are also the main entry point of the browser. -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.BROWSABLE" />
Jeff Brown's avatar
Jeff Brown committed
128
                <category android:name="android.intent.category.APP_BROWSER" />
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
            </intent-filter>
            <!-- The maps app is a much better experience, so it's not
                 worth having this at all... especially for a demo!
            <intent-filter android:label="Map In Browser">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.item/postal-address" />
            </intent-filter>
            -->
            <intent-filter>
                <action android:name="android.intent.action.WEB_SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="" />
                <data android:scheme="http" />
                <data android:scheme="https" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MEDIA_SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data android:name="android.app.searchable"
                    android:resource="@xml/searchable" />
        </activity>

158 159
        <activity android:name="ShortcutActivity"
            android:theme="@style/ShortcutTheme"
160
            android:label="@string/shortcut_bookmark"
Ying Wang's avatar
Ying Wang committed
161
            android:icon="@mipmap/ic_launcher_shortcut_browser_bookmark">
162 163 164 165 166 167

            <intent-filter>
                <action android:name="android.intent.action.CREATE_SHORTCUT" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>

168
        </activity>
169

170
        <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences">
John Reck's avatar
John Reck committed
171 172 173 174
            <intent-filter>
               <action android:name="android.intent.action.MANAGE_NETWORK_USAGE" />
               <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
175 176
        </activity>

177 178 179 180 181 182 183 184 185 186 187 188 189
        <activity android:name="BookmarkSearch"
                  android:label="@string/bookmarks_search"
                  android:stateNotNeeded="true"
                  android:theme="@android:style/Theme.NoDisplay"
                  android:excludeFromRecents="true">
            <intent-filter>
                <action android:name="android.intent.action.SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data android:name="android.app.searchable"
                    android:resource="@xml/bookmarks_searchable" />
        </activity>

190
        <activity android:name="AddBookmarkPage" android:label="@string/bookmarks_add_page"
191
                  android:theme="@style/DialogWhenLarge"
192 193
                  android:configChanges="orientation|keyboardHidden|screenSize"
                  android:windowSoftInputMode="adjustResize">
194 195 196 197 198 199 200
            <intent-filter>
                <action android:name="android.intent.action.INSERT" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.dir/bookmark"/>
            </intent-filter>
        </activity>

201
        <activity android:name="ComboViewActivity">
John Reck's avatar
John Reck committed
202 203
        </activity>

204
        <!-- Bookmark thumbnail homescreen widget -->
205
        <receiver
206
            android:name=".widget.BookmarkThumbnailWidgetProvider"
207 208 209 210
            android:label="@string/bookmarks">
            <intent-filter>
                <action
                    android:name="android.appwidget.action.APPWIDGET_UPDATE" />
John Reck's avatar
John Reck committed
211 212
                <action
                    android:name="com.android.browser.BOOKMARK_APPWIDGET_UPDATE" />
213 214 215
            </intent-filter>
            <meta-data
                android:name="android.appwidget.provider"
216
                android:resource="@xml/bookmarkthumbnailwidget_info" />
217 218
        </receiver>
        <service
219
            android:name=".widget.BookmarkThumbnailWidgetService"
220 221
            android:permission="android.permission.BIND_REMOTEVIEWS"
            android:exported="false" />
John Reck's avatar
John Reck committed
222 223 224
        <receiver
            android:name=".widget.BookmarkWidgetProxy"
            android:exported="false" />
John Reck's avatar
John Reck committed
225 226 227 228 229 230
        <activity android:name=".widget.BookmarkWidgetConfigure"
            android:theme="@android:style/Theme.Holo.DialogWhenLarge">
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
            </intent-filter>
        </activity>
231

232 233 234
        <!-- Makes .BrowserActivity the search target for any activity in Browser -->
        <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />

Jeff Davidson's avatar
Jeff Davidson committed
235 236 237 238 239 240 241 242
        <!-- Application code for RLZ tracking.  RLZ assigns non-unique, non-personally identifiable
             tracking labels to client products; these labels sometimes appear in Google search
             queries.  See http://code.google.com/p/rlz for more info.

             This value signifies to the RLZ client that this application uses RLZ tracking. -->
        <meta-data android:name="com.google.android.partnersetup.RLZ_ACCESS_POINT"
                   android:value="@string/rlz_access_point" />

243 244 245 246 247
        <receiver android:name=".OpenDownloadReceiver">
            <intent-filter>
                <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED"/>
            </intent-filter>
        </receiver>
John Reck's avatar
John Reck committed
248 249 250 251 252 253 254

        <!-- For custom home pages (like most visited) -->
        <provider
            android:name=".homepages.HomeProvider"
            android:authorities="com.android.browser.home"
            android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
            android:exported="false" />
255

256 257 258 259 260 261
        <receiver android:name=".AccountsChangedReceiver">
            <intent-filter>
                <action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED" />
            </intent-filter>
        </receiver>

Michael Kolb's avatar
Michael Kolb committed
262 263 264 265 266 267 268 269
        <receiver android:name=".PreloadRequestReceiver"
             android:permission="com.android.browser.permission.PRELOAD" >
             <intent-filter>
                 <action android:name="android.intent.action.PRELOAD"/>
                 <data android:scheme="http" />
             </intent-filter>
         </receiver>

John Reck's avatar
John Reck committed
270 271 272 273
        <provider android:name=".provider.SnapshotProvider"
                  android:authorities="com.android.browser.snapshots"
                  android:exported="false" />

274 275 276 277 278 279 280 281
        <provider android:name="android.support.v4.content.FileProvider"
                  android:authorities="com.android.browser-classic.file"
                  android:exported="false"
                  android:grantUriPermissions="true">
             <meta-data
                 android:name="android.support.FILE_PROVIDER_PATHS"
                 android:resource="@xml/file_paths" />
        </provider>
282 283 284 285
    </application>

</manifest>