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