• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2008, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<manifest xmlns:android="http://schemas.android.com/apk/res/android"
21    package="com.android.googlesearch"
22    android:sharedUserId="android.uid.shared">
23
24    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
25    <uses-permission android:name="android.permission.INTERNET" />
26    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
27
28    <application
29        android:process="android.process.acore"
30        android:label="@string/app_label"
31        android:icon="@drawable/google">
32
33        <activity android:name=".GoogleSearch"
34                android:label="@string/search_label"
35                android:theme="@android:style/Theme.NoDisplay"
36                android:excludeFromRecents="true">
37            <intent-filter>
38                <action android:name="android.intent.action.WEB_SEARCH" />
39                <category android:name="android.intent.category.DEFAULT" />
40            </intent-filter>
41            <!-- This must be lower than the default priority (0), so that it
42                 does not clash with other global search providers. -->
43            <intent-filter android:priority="-100">
44                <action android:name="android.search.action.GLOBAL_SEARCH" />
45                <category android:name="android.intent.category.DEFAULT" />
46            </intent-filter>
47            <intent-filter>
48                <action android:name="android.intent.action.MAIN" />
49                <category android:name="android.intent.category.MONKEY" />
50            </intent-filter>
51            <meta-data android:name="android.app.searchable"
52                android:resource="@xml/searchable" />
53        </activity>
54
55        <activity android:name=".Settings"
56                android:label="@string/google_search_settings"
57                android:excludeFromRecents="true">
58            <intent-filter>
59                <action android:name="android.search.action.WEB_SEARCH_SETTINGS" />
60            </intent-filter>
61        </activity>
62
63        <provider android:name=".SuggestionProvider"
64            android:label="@string/search_label"
65            android:authorities="com.android.googlesearch.SuggestionProvider" />
66
67        <meta-data android:name="android.app.default_searchable"
68            android:value=".GoogleSearch" />
69    </application>
70</manifest>
71