Home | History | Annotate | Download | only in Browser
      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     <permission android:name="com.android.browser.permission.PRELOAD"
     24         android:label="@string/permission_preload_label"
     25         android:protectionLevel="signatureOrSystem" />
     26 
     27     <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
     28     <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
     29     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
     30     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
     31     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
     32     <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
     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     <uses-permission android:name="android.permission.READ_PROFILE" />
     45     <uses-permission android:name="android.permission.READ_CONTACTS" />
     46     <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
     47     <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
     48     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
     49 
     50     <application   android:name="Browser"
     51                    android:label="@string/application_name"
     52                    android:icon="@mipmap/ic_launcher_browser"
     53                    android:backupAgent=".BrowserBackupAgent"
     54                    android:hardwareAccelerated="true"
     55                    android:taskAffinity="android.task.browser" >
     56 
     57         <provider android:name=".provider.BrowserProvider2"
     58                   android:authorities="com.android.browser;browser"
     59                   android:multiprocess="false"
     60                   android:exported="true"
     61                   android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
     62                   android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS">
     63             <path-permission android:path="/bookmarks/search_suggest_query"
     64                     android:readPermission="android.permission.GLOBAL_SEARCH" />
     65         </provider>
     66         <activity android:name="BrowserActivity"
     67                   android:label="@string/application_name"
     68                   android:launchMode="singleTask"
     69                   android:alwaysRetainTaskState="true"
     70                   android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
     71                   android:theme="@style/BrowserTheme"
     72                   android:windowSoftInputMode="adjustResize" >
     73             <intent-filter>
     74                 <action android:name="android.speech.action.VOICE_SEARCH_RESULTS" />
     75                 <category android:name="android.intent.category.DEFAULT" />
     76             </intent-filter>
     77             <!-- For these schemes were not particular MIME type has been
     78                  supplied, we are a good candidate. -->
     79             <intent-filter>
     80                 <action android:name="android.intent.action.VIEW" />
     81                 <category android:name="android.intent.category.DEFAULT" />
     82                 <category android:name="android.intent.category.BROWSABLE" />
     83                 <data android:scheme="http" />
     84                 <data android:scheme="https" />
     85                 <data android:scheme="about" />
     86                 <data android:scheme="javascript" />
     87             </intent-filter>
     88             <!--  For these schemes where any of these particular MIME types
     89                   have been supplied, we are a good candidate. -->
     90             <intent-filter>
     91                 <action android:name="android.intent.action.VIEW" />
     92                 <category android:name="android.intent.category.BROWSABLE" />
     93                 <category android:name="android.intent.category.DEFAULT" />
     94                 <data android:scheme="http" />
     95                 <data android:scheme="https" />
     96                 <data android:scheme="inline" />
     97                 <data android:mimeType="text/html"/>
     98                 <data android:mimeType="text/plain"/>
     99                 <data android:mimeType="application/xhtml+xml"/>
    100                 <data android:mimeType="application/vnd.wap.xhtml+xml"/>
    101             </intent-filter>
    102             <!-- For viewing saved web archives. -->
    103             <intent-filter>
    104                 <action android:name="android.intent.action.VIEW" />
    105                 <category android:name="android.intent.category.BROWSABLE" />
    106                 <category android:name="android.intent.category.DEFAULT" />
    107                 <data android:scheme="http" />
    108                 <data android:scheme="https" />
    109                 <data android:scheme="file" />
    110                 <data android:mimeType="application/x-webarchive-xml"/>
    111             </intent-filter>
    112             <!-- Accept inbound NFC URLs at a low priority -->
    113             <intent-filter android:priority="-101">
    114                 <action android:name="android.nfc.action.NDEF_DISCOVERED" />
    115                 <category android:name="android.intent.category.DEFAULT" />
    116                 <data android:scheme="http" />
    117                 <data android:scheme="https" />
    118             </intent-filter>
    119             <!-- We are also the main entry point of the browser. -->
    120             <intent-filter>
    121                 <action android:name="android.intent.action.MAIN" />
    122                 <category android:name="android.intent.category.DEFAULT" />
    123                 <category android:name="android.intent.category.LAUNCHER" />
    124                 <category android:name="android.intent.category.BROWSABLE" />
    125                 <category android:name="android.intent.category.APP_BROWSER" />
    126             </intent-filter>
    127             <!-- The maps app is a much better experience, so it's not
    128                  worth having this at all... especially for a demo!
    129             <intent-filter android:label="Map In Browser">
    130                 <action android:name="android.intent.action.VIEW" />
    131                 <category android:name="android.intent.category.DEFAULT" />
    132                 <data android:mimeType="vnd.android.cursor.item/postal-address" />
    133             </intent-filter>
    134             -->
    135             <intent-filter>
    136                 <action android:name="android.intent.action.WEB_SEARCH" />
    137                 <category android:name="android.intent.category.DEFAULT" />
    138                 <category android:name="android.intent.category.BROWSABLE" />
    139                 <data android:scheme="" />
    140                 <data android:scheme="http" />
    141                 <data android:scheme="https" />
    142             </intent-filter>
    143             <intent-filter>
    144                 <action android:name="android.intent.action.MEDIA_SEARCH" />
    145                 <category android:name="android.intent.category.DEFAULT" />
    146             </intent-filter>
    147             <intent-filter>
    148                 <action android:name="android.intent.action.SEARCH" />
    149                 <category android:name="android.intent.category.DEFAULT" />
    150             </intent-filter>
    151             <meta-data android:name="android.app.searchable"
    152                     android:resource="@xml/searchable" />
    153         </activity>
    154 
    155         <activity android:name="ShortcutActivity"
    156             android:theme="@style/ShortcutTheme"
    157             android:label="@string/shortcut_bookmark"
    158             android:icon="@mipmap/ic_launcher_shortcut_browser_bookmark">
    159 
    160             <intent-filter>
    161                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
    162                 <category android:name="android.intent.category.DEFAULT" />
    163             </intent-filter>
    164 
    165         </activity>
    166 
    167         <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences">
    168             <intent-filter>
    169                <action android:name="android.intent.action.MANAGE_NETWORK_USAGE" />
    170                <category android:name="android.intent.category.DEFAULT" />
    171             </intent-filter>
    172         </activity>
    173 
    174         <activity android:name="BookmarkSearch"
    175                   android:label="@string/bookmarks_search"
    176                   android:stateNotNeeded="true"
    177                   android:theme="@android:style/Theme.NoDisplay"
    178                   android:excludeFromRecents="true">
    179             <intent-filter>
    180                 <action android:name="android.intent.action.SEARCH" />
    181                 <category android:name="android.intent.category.DEFAULT" />
    182             </intent-filter>
    183             <meta-data android:name="android.app.searchable"
    184                     android:resource="@xml/bookmarks_searchable" />
    185         </activity>
    186 
    187         <activity android:name="AddBookmarkPage" android:label="@string/bookmarks_add_page"
    188                   android:theme="@style/DialogWhenLarge"
    189                   android:configChanges="orientation|keyboardHidden|screenSize"
    190                   android:windowSoftInputMode="adjustResize">
    191             <intent-filter>
    192                 <action android:name="android.intent.action.INSERT" />
    193                 <category android:name="android.intent.category.DEFAULT" />
    194                 <data android:mimeType="vnd.android.cursor.dir/bookmark"/>
    195             </intent-filter>
    196         </activity>
    197 
    198         <activity android:name="ComboViewActivity">
    199         </activity>
    200 
    201         <!-- Bookmark thumbnail homescreen widget -->
    202         <receiver
    203             android:name=".widget.BookmarkThumbnailWidgetProvider"
    204             android:label="@string/bookmarks">
    205             <intent-filter>
    206                 <action
    207                     android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    208                 <action
    209                     android:name="com.android.browser.BOOKMARK_APPWIDGET_UPDATE" />
    210             </intent-filter>
    211             <meta-data
    212                 android:name="android.appwidget.provider"
    213                 android:resource="@xml/bookmarkthumbnailwidget_info" />
    214         </receiver>
    215         <service
    216             android:name=".widget.BookmarkThumbnailWidgetService"
    217             android:permission="android.permission.BIND_REMOTEVIEWS"
    218             android:exported="false" />
    219         <receiver
    220             android:name=".widget.BookmarkWidgetProxy"
    221             android:exported="false" />
    222         <activity android:name=".widget.BookmarkWidgetConfigure"
    223             android:theme="@android:style/Theme.Holo.DialogWhenLarge">
    224             <intent-filter>
    225                 <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
    226             </intent-filter>
    227         </activity>
    228 
    229         <!-- Makes .BrowserActivity the search target for any activity in Browser -->
    230         <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
    231 
    232         <!-- Application code for RLZ tracking.  RLZ assigns non-unique, non-personally identifiable
    233              tracking labels to client products; these labels sometimes appear in Google search
    234              queries.  See http://code.google.com/p/rlz for more info.
    235 
    236              This value signifies to the RLZ client that this application uses RLZ tracking. -->
    237         <meta-data android:name="com.google.android.partnersetup.RLZ_ACCESS_POINT"
    238                    android:value="@string/rlz_access_point" />
    239 
    240         <receiver android:name=".OpenDownloadReceiver">
    241             <intent-filter>
    242                 <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED"/>
    243             </intent-filter>
    244         </receiver>
    245 
    246         <!-- For custom home pages (like most visited) -->
    247         <provider
    248             android:name=".homepages.HomeProvider"
    249             android:authorities="com.android.browser.home"
    250             android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
    251             android:exported="false" />
    252 
    253         <receiver android:name=".AccountsChangedReceiver">
    254             <intent-filter>
    255                 <action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED" />
    256             </intent-filter>
    257         </receiver>
    258 
    259         <receiver android:name=".PreloadRequestReceiver"
    260              android:permission="com.android.browser.permission.PRELOAD" >
    261              <intent-filter>
    262                  <action android:name="android.intent.action.PRELOAD"/>
    263                  <data android:scheme="http" />
    264              </intent-filter>
    265          </receiver>
    266 
    267         <provider android:name=".provider.SnapshotProvider"
    268                   android:authorities="com.android.browser.snapshots"
    269                   android:exported="false" />
    270 
    271     </application>
    272 
    273 </manifest>
    274 
    275