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 </intent-filter> 60 <meta-data android:name="com.android.launcher.toolbar_icon" android:resource="@drawable/ic_google_logo_normal" /> 61 </activity> 62 63 <receiver android:name=".SearchWidgetProvider" 64 android:label="@string/app_name"> 65 <intent-filter> 66 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 67 </intent-filter> 68 <meta-data android:name="android.appwidget.provider" android:resource="@xml/search_widget_info" /> 69 </receiver> 70 71 <activity android:name=".google.GoogleSearch" 72 android:label="@string/google_search_label" 73 android:icon="@mipmap/google_icon" 74 android:theme="@android:style/Theme.NoDisplay" 75 android:excludeFromRecents="true"> 76 <intent-filter> 77 <action android:name="android.intent.action.WEB_SEARCH" /> 78 <category android:name="android.intent.category.DEFAULT" /> 79 </intent-filter> 80 <meta-data android:name="android.app.searchable" 81 android:resource="@xml/google_searchable" /> 82 </activity> 83 84 <provider android:name=".google.GoogleSuggestionProvider" 85 android:label="@string/google_search_label" 86 android:authorities="com.android.quicksearchbox.google" 87 android:exported="true" /> 88 89 </application> 90 </manifest> 91