AndroidManifest.xml revision 80c47b2f7961a5a8de1c6ec5751c04d15d42122a
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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        coreApp="true"
19        package="com.android.inputmethod.latin">
20
21    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" />
22
23    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
24    <uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
25    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
26    <uses-permission android:name="android.permission.READ_CONTACTS" />
27    <uses-permission android:name="android.permission.READ_PROFILE" />
28    <uses-permission android:name="android.permission.READ_USER_DICTIONARY" />
29    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
30    <uses-permission android:name="android.permission.VIBRATE" />
31    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
32    <uses-permission android:name="android.permission.WRITE_USER_DICTIONARY" />
33
34    <application android:label="@string/english_ime_name"
35            android:icon="@drawable/ic_launcher_keyboard"
36            android:killAfterRestore="false"
37            android:supportsRtl="true"
38            android:allowBackup="true">
39
40        <service android:name="LatinIME"
41                android:label="@string/english_ime_name"
42                android:permission="android.permission.BIND_INPUT_METHOD">
43            <intent-filter>
44                <action android:name="android.view.InputMethod" />
45            </intent-filter>
46            <meta-data android:name="android.view.im" android:resource="@xml/method" />
47        </service>
48
49        <service android:name=".spellcheck.AndroidSpellCheckerService"
50                 android:label="@string/spell_checker_service_name"
51                 android:permission="android.permission.BIND_TEXT_SERVICE">
52            <intent-filter>
53                <action android:name="android.service.textservice.SpellCheckerService" />
54            </intent-filter>
55            <meta-data android:name="android.view.textservice.scs"
56                    android:resource="@xml/spellchecker" />
57        </service>
58
59        <activity android:name=".setup.SetupActivity"
60                android:theme="@style/platformActivityTheme"
61                android:label="@string/english_ime_name"
62                android:icon="@drawable/ic_launcher_keyboard"
63                android:launchMode="singleTask"
64                android:noHistory="true">
65            <intent-filter>
66                <action android:name="android.intent.action.MAIN" />
67                <category android:name="android.intent.category.LAUNCHER" />
68            </intent-filter>
69        </activity>
70
71        <activity android:name=".setup.SetupWizardActivity"
72                android:theme="@style/platformActivityTheme"
73                android:label="@string/english_ime_name"
74                android:clearTaskOnLaunch="true">
75            <intent-filter>
76                <action android:name="android.intent.action.MAIN" />
77            </intent-filter>
78        </activity>
79
80        <receiver android:name=".setup.LauncherIconVisibilityManager">
81            <intent-filter>
82                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
83                <action android:name="android.intent.action.BOOT_COMPLETED" />
84                <action android:name="android.intent.action.USER_INITIALIZE" />
85            </intent-filter>
86        </receiver>
87
88        <activity android:name=".settings.SettingsActivity"
89                android:theme="@style/platformSettingsTheme"
90                android:label="@string/english_ime_settings"
91                android:uiOptions="splitActionBarWhenNarrow">
92            <intent-filter>
93                <action android:name="android.intent.action.MAIN" />
94            </intent-filter>
95        </activity>
96
97        <activity android:name=".spellcheck.SpellCheckerSettingsActivity"
98                  android:theme="@style/platformSettingsTheme"
99                  android:label="@string/android_spell_checker_settings">
100            <intent-filter>
101                <action android:name="android.intent.action.MAIN" />
102            </intent-filter>
103        </activity>
104
105        <activity android:name=".settings.DebugSettingsActivity"
106                android:theme="@style/platformSettingsTheme"
107                android:label="@string/english_ime_debug_settings">
108            <intent-filter>
109                <action android:name="android.intent.action.MAIN" />
110            </intent-filter>
111        </activity>
112
113        <receiver android:name="SuggestionSpanPickedNotificationReceiver" android:enabled="true">
114            <intent-filter>
115                <action android:name="android.text.style.SUGGESTION_PICKED" />
116            </intent-filter>
117        </receiver>
118
119        <receiver android:name=".personalization.DictionaryDecayBroadcastReciever"
120            android:exported="false">
121            <intent-filter>
122                <action android:name="com.android.inputmethod.latin.personalization.DICT_DECAY" />
123            </intent-filter>
124        </receiver>
125
126        <receiver android:name=".DictionaryPackInstallBroadcastReceiver" android:exported="false">
127            <intent-filter>
128                <action android:name="com.android.inputmethod.dictionarypack.aosp.UNKNOWN_CLIENT" />
129            </intent-filter>
130        </receiver>
131
132        <provider android:name="com.android.inputmethod.dictionarypack.DictionaryProvider"
133                android:grantUriPermissions="true"
134                android:exported="false"
135                android:authorities="@string/authority"
136                android:multiprocess="false"
137                android:label="@string/dictionary_provider_name">
138        </provider>
139
140        <service android:name="com.android.inputmethod.dictionarypack.DictionaryService"
141                android:label="@string/dictionary_service_name">
142        </service>
143
144        <receiver android:name="com.android.inputmethod.dictionarypack.EventHandler">
145            <intent-filter>
146                <action android:name="android.intent.action.DOWNLOAD_COMPLETE" />
147                <action android:name="android.intent.action.DATE_CHANGED" />
148                <action android:name="com.android.inputmethod.dictionarypack.aosp.UPDATE_NOW" />
149            </intent-filter>
150        </receiver>
151
152        <activity android:name="com.android.inputmethod.dictionarypack.DictionarySettingsActivity"
153                android:theme="@style/platformSettingsTheme"
154                android:label="@string/dictionary_settings_title"
155                android:uiOptions="splitActionBarWhenNarrow">
156            <intent-filter>
157                <action android:name="android.intent.action.MAIN"/>
158            </intent-filter>
159        </activity>
160
161        <activity android:name="com.android.inputmethod.dictionarypack.DownloadOverMeteredDialog"
162                android:theme="@style/platformActivityTheme"
163                android:label="@string/dictionary_install_over_metered_network_prompt">
164            <intent-filter>
165                <action android:name="android.intent.action.MAIN"/>
166            </intent-filter>
167        </activity>
168    </application>
169</manifest>
170