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 20 <original-package android:name="com.android.quicksearchbox" /> 21 22 <uses-sdk android:minSdkVersion="8" /> 23 24 <uses-permission android:name="android.permission.GLOBAL_SEARCH" /> 25 26 <!-- Permissions needed by the default corpora. We request these instead of just relying on 27 GLOBAL_SEARCH so that we can use the default corpora when not in the system 28 partition. --> 29 <uses-permission android:name="android.permission.READ_CONTACTS" /> 30 <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/> 31 32 <!-- Permissions used by GoogleSearch. --> 33 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 34 <uses-permission android:name="android.permission.INTERNET" /> 35 <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 36 37 <application android:label="@string/app_name" 38 android:icon="@mipmap/search_app_icon" 39 android:name=".QsbApplicationWrapper" 40 android:theme="@style/Theme.QuickSearchBox" 41 android:hardwareAccelerated="true"> 42 <activity android:name=".SearchActivity" 43 android:label="@string/app_name" 44 android:launchMode="singleTask" 45 android:theme="@style/Theme.QuickSearchBox.Search"> 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 <meta-data android:name="com.android.launcher.toolbar_icon" android:resource="@drawable/ic_google_logo_normal" /> 74 </activity> 75 76 <provider android:name=".ShortcutsProvider" 77 android:authorities="com.android.quicksearchbox.shortcuts" 78 android:exported="true" /> 79 80 <activity android:name=".preferences.SearchSettingsActivity" 81 android:label="@string/search_settings" 82 android:excludeFromRecents="true"> 83 <intent-filter> 84 <action android:name="android.search.action.SEARCH_SETTINGS" /> 85 <category android:name="android.intent.category.DEFAULT" /> 86 </intent-filter> 87 <intent-filter> 88 <action android:name="android.search.action.WEB_SEARCH_SETTINGS" /> 89 <category android:name="android.intent.category.DEFAULT" /> 90 </intent-filter> 91 </activity> 92 93 <activity android:name=".preferences.SearchableItemsActivity" 94 android:label="@string/search_sources" 95 android:excludeFromRecents="true"> 96 <intent-filter> 97 <action android:name="com.android.quicksearchbox.action.SEARCHABLE_ITEMS" /> 98 <category android:name="android.intent.category.DEFAULT" /> 99 </intent-filter> 100 </activity> 101 102 <receiver android:name=".CorporaUpdateReceiver"> 103 <intent-filter> 104 <action android:name="android.search.action.SEARCHABLES_CHANGED" /> 105 </intent-filter> 106 <intent-filter> 107 <action android:name="android.search.action.SETTINGS_CHANGED" /> 108 </intent-filter> 109 </receiver> 110 111 <receiver android:name=".SearchWidgetProvider" 112 android:label="@string/app_name"> 113 <intent-filter> 114 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 115 </intent-filter> 116 <meta-data android:name="android.appwidget.provider" android:resource="@xml/search_widget_info" /> 117 </receiver> 118 119 <activity android:name=".google.GoogleSearch" 120 android:label="@string/google_search_label" 121 android:icon="@mipmap/google_icon" 122 android:theme="@android:style/Theme.NoDisplay" 123 android:excludeFromRecents="true"> 124 <intent-filter> 125 <action android:name="android.intent.action.WEB_SEARCH" /> 126 <category android:name="android.intent.category.DEFAULT" /> 127 </intent-filter> 128 <meta-data android:name="android.app.searchable" 129 android:resource="@xml/google_searchable" /> 130 </activity> 131 132 <provider android:name=".google.GoogleSuggestionProvider" 133 android:label="@string/google_search_label" 134 android:authorities="com.android.quicksearchbox.google" 135 android:exported="true" /> 136 137 </application> 138 </manifest> 139