AndroidManifest.xml revision a270ac4a61ff64f5d262a212b0bf4c128d3ce8d7
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="SystemBroadcastReceiver">
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        <receiver android:name="SuggestionSpanPickedNotificationReceiver" android:enabled="true">
106            <intent-filter>
107                <action android:name="android.text.style.SUGGESTION_PICKED" />
108            </intent-filter>
109        </receiver>
110
111        <receiver android:name=".personalization.DictionaryDecayBroadcastReciever"
112            android:exported="false">
113            <intent-filter>
114                <action android:name="com.android.inputmethod.latin.personalization.DICT_DECAY" />
115            </intent-filter>
116        </receiver>
117
118        <receiver android:name=".DictionaryPackInstallBroadcastReceiver" android:exported="false">
119            <intent-filter>
120                <action android:name="com.android.inputmethod.dictionarypack.aosp.UNKNOWN_CLIENT" />
121            </intent-filter>
122        </receiver>
123
124        <provider android:name="com.android.inputmethod.dictionarypack.DictionaryProvider"
125                android:grantUriPermissions="true"
126                android:exported="false"
127                android:authorities="@string/authority"
128                android:multiprocess="false"
129                android:label="@string/dictionary_provider_name">
130        </provider>
131
132        <service android:name="com.android.inputmethod.dictionarypack.DictionaryService"
133                android:label="@string/dictionary_service_name">
134        </service>
135
136        <receiver android:name="com.android.inputmethod.dictionarypack.EventHandler">
137            <intent-filter>
138                <action android:name="android.intent.action.DOWNLOAD_COMPLETE" />
139                <action android:name="android.intent.action.DATE_CHANGED" />
140                <action android:name="com.android.inputmethod.dictionarypack.aosp.UPDATE_NOW" />
141            </intent-filter>
142        </receiver>
143
144        <activity android:name="com.android.inputmethod.dictionarypack.DictionarySettingsActivity"
145                android:theme="@style/platformSettingsTheme"
146                android:label="@string/dictionary_settings_title"
147                android:uiOptions="splitActionBarWhenNarrow">
148            <intent-filter>
149                <action android:name="android.intent.action.MAIN"/>
150            </intent-filter>
151        </activity>
152
153        <activity android:name="com.android.inputmethod.dictionarypack.DownloadOverMeteredDialog"
154                android:theme="@style/platformActivityTheme"
155                android:label="@string/dictionary_install_over_metered_network_prompt">
156            <intent-filter>
157                <action android:name="android.intent.action.MAIN"/>
158            </intent-filter>
159        </activity>
160    </application>
161</manifest>
162