Home | History | Annotate | Download | only in QuickSearchBox
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     18       package="com.android.quicksearchbox"
     19       android:versionCode="110" android:versionName="1.1">
     20 
     21     <original-package android:name="com.android.quicksearchbox" />
     22 
     23     <uses-sdk android:minSdkVersion="8" />
     24 
     25     <uses-permission android:name="android.permission.GLOBAL_SEARCH" />
     26 
     27     <!-- Permissions needed by the default corpora. We request these instead of just relying on
     28          GLOBAL_SEARCH so that we can use the default corpora when not in the system
     29          partition. -->
     30     <uses-permission android:name="android.permission.READ_CONTACTS" />
     31     <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
     32 
     33     <!-- Permissions used by GoogleSearch. -->
     34     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
     35     <uses-permission android:name="android.permission.INTERNET" />
     36     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
     37 
     38     <application android:label="@string/app_name"
     39                  android:icon="@drawable/search_app_icon"
     40                  android:name=".QsbApplicationWrapper">
     41         <activity android:name=".SearchActivity"
     42                   android:label="@string/app_name"
     43                   android:launchMode="singleTask"
     44                   android:windowSoftInputMode="stateAlwaysVisible|adjustPan"
     45                   android:theme="@style/Theme.QuickSearchBox">
     46             <!-- Show app icon in Launcher. -->
     47             <intent-filter>
     48                 <action android:name="android.intent.action.MAIN" />
     49                 <category android:name="android.intent.category.LAUNCHER" />
     50             </intent-filter>
     51             <!-- Handle global search. -->
     52             <intent-filter>
     53                 <action android:name="android.search.action.GLOBAL_SEARCH" />
     54                 <category android:name="android.intent.category.DEFAULT" />
     55             </intent-filter>
     56             <intent-filter>
     57                 <action android:name="android.search.action.GLOBAL_SEARCH" />
     58                 <category android:name="android.intent.category.DEFAULT" />
     59                 <data android:scheme="qsb.corpus" />
     60             </intent-filter>
     61             <!-- Intent sent by corpus indicator in search widget. Opens QSB with
     62                  corpus drop-down on top. -->
     63             <intent-filter>
     64                 <action android:name="com.android.quicksearchbox.action.QSB_AND_SELECT_CORPUS" />
     65                 <category android:name="android.intent.category.DEFAULT" />
     66             </intent-filter>
     67             <intent-filter>
     68                 <action android:name="com.android.quicksearchbox.action.QSB_AND_SELECT_CORPUS" />
     69                 <category android:name="android.intent.category.DEFAULT" />
     70                 <data android:scheme="qsb.corpus" />
     71             </intent-filter>
     72             <meta-data android:name="android.app.search.shortcut.provider" android:value="content://com.android.quicksearchbox.shortcuts/shortcuts" />
     73         </activity>
     74 
     75         <provider android:name=".ShortcutsProvider"
     76                 android:authorities="com.android.quicksearchbox.shortcuts">
     77         </provider>
     78 
     79         <activity android:name=".SearchSettings"
     80                 android:label="@string/search_settings"
     81                 android:excludeFromRecents="true">
     82             <intent-filter>
     83                 <action android:name="android.intent.action.MAIN" />
     84             </intent-filter>
     85             <intent-filter>
     86                 <action android:name="android.search.action.SEARCH_SETTINGS" />
     87                 <category android:name="android.intent.category.DEFAULT" />
     88             </intent-filter>
     89         </activity>
     90 
     91         <activity android:name=".SearchableItemsSettings"
     92                 android:label="@string/search_sources"
     93                 android:excludeFromRecents="true">
     94             <intent-filter>
     95                 <action android:name="com.android.quicksearchbox.action.SEARCHABLE_ITEMS" />
     96                 <category android:name="android.intent.category.DEFAULT" />
     97             </intent-filter>
     98         </activity>
     99 
    100         <receiver android:name=".CorporaUpdateReceiver">
    101             <intent-filter>
    102                 <action android:name="android.search.action.SEARCHABLES_CHANGED" />
    103             </intent-filter>
    104             <intent-filter>
    105                 <action android:name="android.search.action.SETTINGS_CHANGED" />
    106             </intent-filter>
    107         </receiver>
    108 
    109         <receiver android:name=".SearchWidgetProvider"
    110                   android:label="@string/app_name">
    111             <intent-filter>
    112                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    113             </intent-filter>
    114             <meta-data android:name="android.appwidget.provider" android:resource="@xml/search_widget_info" />
    115         </receiver>
    116 
    117         <!-- This class name is referenced in res/xml/search_widget_info.xml -->
    118         <activity android:name="com.android.quicksearchbox.SearchWidgetConfigActivity"
    119                 android:theme="@style/Theme.SearchWidgetConfig">
    120             <intent-filter>
    121                 <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
    122             </intent-filter>
    123         </activity>
    124 
    125         <activity android:name=".google.GoogleSearch"
    126                 android:label="@string/google_search_label"
    127                 android:icon="@drawable/google_icon"
    128                 android:theme="@android:style/Theme.NoDisplay"
    129                 android:excludeFromRecents="true">
    130             <intent-filter>
    131                 <action android:name="android.intent.action.WEB_SEARCH" />
    132                 <category android:name="android.intent.category.DEFAULT" />
    133             </intent-filter>
    134             <intent-filter>
    135                 <action android:name="android.intent.action.MAIN" />
    136                 <category android:name="android.intent.category.MONKEY" />
    137             </intent-filter>
    138             <meta-data android:name="android.app.searchable"
    139                 android:resource="@xml/google_searchable" />
    140         </activity>
    141 
    142         <activity android:name=".google.GoogleSettings"
    143                 android:label="@string/google_search_settings"
    144                 android:excludeFromRecents="true">
    145             <intent-filter>
    146                 <action android:name="android.search.action.WEB_SEARCH_SETTINGS" />
    147                 <category android:name="android.intent.category.DEFAULT" />
    148             </intent-filter>
    149         </activity>
    150 
    151         <provider android:name=".google.GoogleSuggestionProvider"
    152             android:label="@string/google_search_label"
    153             android:authorities="com.android.quicksearchbox.google" />
    154 
    155     </application>
    156 </manifest>
    157