• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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" android:targetSdkVersion="29" />
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        <uses-library android:name="org.apache.http.legacy" android:required="false" />
43
44        <activity android:name=".SearchActivity"
45                  android:label="@string/app_name"
46                  android:launchMode="singleTask"
47                  android:exported="true"
48                  android:theme="@style/Theme.QuickSearchBox.Search">
49            <!-- Show app icon in Launcher. -->
50            <intent-filter>
51                <action android:name="android.intent.action.MAIN" />
52                <category android:name="android.intent.category.LAUNCHER" />
53            </intent-filter>
54            <!-- Handle global search. -->
55            <intent-filter>
56                <action android:name="android.search.action.GLOBAL_SEARCH" />
57                <category android:name="android.intent.category.DEFAULT" />
58            </intent-filter>
59            <intent-filter>
60                <action android:name="android.search.action.GLOBAL_SEARCH" />
61                <category android:name="android.intent.category.DEFAULT" />
62            </intent-filter>
63            <meta-data android:name="com.android.launcher.toolbar_icon" android:resource="@drawable/ic_google_logo_normal" />
64        </activity>
65
66        <receiver android:name=".SearchWidgetProvider"
67                  android:exported="true"
68                  android:label="@string/app_name">
69            <intent-filter>
70                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
71            </intent-filter>
72            <meta-data android:name="android.appwidget.provider" android:resource="@xml/search_widget_info" />
73        </receiver>
74
75        <activity android:name=".google.GoogleSearch"
76                android:label="@string/google_search_label"
77                android:icon="@mipmap/google_icon"
78                android:theme="@android:style/Theme.NoDisplay"
79                android:exported="true"
80                android:excludeFromRecents="true">
81            <intent-filter>
82                <action android:name="android.intent.action.WEB_SEARCH" />
83                <category android:name="android.intent.category.DEFAULT" />
84            </intent-filter>
85            <meta-data android:name="android.app.searchable"
86                android:resource="@xml/google_searchable" />
87        </activity>
88
89        <provider android:name=".google.GoogleSuggestionProvider"
90            android:label="@string/google_search_label"
91            android:authorities="com.android.quicksearchbox.google"
92            android:exported="true" />
93
94    </application>
95</manifest>
96