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="100" android:versionName="1.0">
     20 
     21     <original-package android:name="com.android.quicksearchbox" />
     22 
     23     <uses-permission android:name="android.permission.GLOBAL_SEARCH" />
     24 
     25     <!-- Permissions needed by the default corpora. We request these instead of just relying on
     26          GLOBAL_SEARCH so that we can use the default corpora when not in the system
     27          partition. -->
     28     <uses-permission android:name="android.permission.READ_CONTACTS" />
     29     <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
     30 
     31     <!-- Permissions used by GoogleSearch. -->
     32     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
     33     <uses-permission android:name="android.permission.INTERNET" />
     34     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
     35 
     36     <application android:label="@string/app_name"
     37                  android:icon="@drawable/search_app_icon"
     38                  android:name=".QsbApplication">
     39         <activity android:name=".SearchActivity"
     40                   android:label="@string/app_name"
     41                   android:launchMode="singleTask"
     42                   android:windowSoftInputMode="stateAlwaysVisible|adjustPan"
     43                   android:theme="@style/Theme.QuickSearchBox">
     44             <!-- Handle global search. -->
     45             <intent-filter>
     46                 <action android:name="android.search.action.GLOBAL_SEARCH" />
     47                 <category android:name="android.intent.category.DEFAULT" />
     48             </intent-filter>
     49             <intent-filter>
     50                 <action android:name="android.search.action.GLOBAL_SEARCH" />
     51                 <category android:name="android.intent.category.DEFAULT" />
     52                 <data android:scheme="qsb.corpus" />
     53             </intent-filter>
     54             <!-- Intent sent by corpus indicator in search widget. Opens QSB with
     55                  corpus drop-down on top. -->
     56             <intent-filter>
     57                 <action android:name="com.android.quicksearchbox.action.QSB_AND_SELECT_CORPUS" />
     58                 <category android:name="android.intent.category.DEFAULT" />
     59             </intent-filter>
     60             <intent-filter>
     61                 <action android:name="com.android.quicksearchbox.action.QSB_AND_SELECT_CORPUS" />
     62                 <category android:name="android.intent.category.DEFAULT" />
     63                 <data android:scheme="qsb.corpus" />
     64             </intent-filter>
     65         </activity>
     66 
     67         <activity android:name=".SearchSettings"
     68                 android:label="@string/search_settings"
     69                 android:excludeFromRecents="true">
     70             <intent-filter>
     71                 <action android:name="android.intent.action.MAIN" />
     72             </intent-filter>
     73             <intent-filter>
     74                 <action android:name="android.search.action.SEARCH_SETTINGS" />
     75                 <category android:name="android.intent.category.DEFAULT" />
     76             </intent-filter>
     77         </activity>
     78 
     79         <receiver android:name=".SearchWidgetProvider"
     80                   android:label="@string/app_name">
     81             <intent-filter>
     82                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
     83             </intent-filter>
     84             <meta-data android:name="android.appwidget.provider" android:resource="@xml/search_widget_info" />
     85         </receiver>
     86 
     87         <!-- This class name is referenced in res/xml/search_widget_info.xml -->
     88         <activity android:name="com.android.quicksearchbox.SearchWidgetConfigActivity"
     89                 android:theme="@style/Theme.SearchWidgetConfig">
     90             <intent-filter>
     91                 <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
     92             </intent-filter>
     93         </activity>
     94 
     95         <activity android:name=".google.GoogleSearch"
     96                 android:label="@string/google_search_label"
     97                 android:icon="@drawable/google_icon"
     98                 android:theme="@android:style/Theme.NoDisplay"
     99                 android:excludeFromRecents="true">
    100             <intent-filter>
    101                 <action android:name="android.intent.action.WEB_SEARCH" />
    102                 <category android:name="android.intent.category.DEFAULT" />
    103             </intent-filter>
    104             <intent-filter>
    105                 <action android:name="android.intent.action.MAIN" />
    106                 <category android:name="android.intent.category.MONKEY" />
    107             </intent-filter>
    108             <meta-data android:name="android.app.searchable"
    109                 android:resource="@xml/google_searchable" />
    110         </activity>
    111 
    112         <activity android:name=".google.GoogleSettings"
    113                 android:label="@string/google_search_settings"
    114                 android:excludeFromRecents="true">
    115             <intent-filter>
    116                 <action android:name="android.search.action.WEB_SEARCH_SETTINGS" />
    117                 <category android:name="android.intent.category.DEFAULT" />
    118             </intent-filter>
    119         </activity>
    120 
    121         <provider android:name=".google.GoogleSuggestionProvider"
    122             android:label="@string/google_search_label"
    123             android:authorities="com.android.quicksearchbox.google" />
    124 
    125     </application>
    126 </manifest>
    127