blob: 9b149287a891d6dbe07d2f936474c1c908dbb994 [file] [log] [blame]
Ken Wakasa1a9ef012012-07-06 20:29:08 +09001<?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
Doug Zongker4fc01932010-01-27 14:32:42 -080017<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070018 coreApp="true"
19 package="com.android.inputmethod.latin"
20 android:versionCode="28">
Jeff Hamiltone11e2832010-02-12 18:55:34 -060021
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070022 <uses-sdk android:minSdkVersion="21"
23 android:targetSdkVersion="28"/>
Yohei Yukawa69ceec92018-11-13 13:49:23 -080024
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070025 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
26 <uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION"/>
27 <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
28 <uses-permission android:name="android.permission.READ_CONTACTS"/>
29 <uses-permission android:name="android.permission.READ_PROFILE"/>
30 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
31 <uses-permission android:name="android.permission.READ_SYNC_STATS"/>
32 <uses-permission android:name="android.permission.READ_USER_DICTIONARY"/>
33 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
34 <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
35 <uses-permission android:name="android.permission.VIBRATE"/>
36 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
37 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
38 <uses-permission android:name="android.permission.WRITE_USER_DICTIONARY"/>
The Android Open Source Project923bf412009-03-13 15:11:42 -070039
Yohei Yukawafdfc55d2017-09-01 00:22:21 -070040 <!-- A signature-protected permission to ask AOSP Keyboard to close the software keyboard.
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070041 To use this, add the following line into calling application's AndroidManifest.xml
Yohei Yukawafdfc55d2017-09-01 00:22:21 -070042 <pre>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070043 {@code
Yohei Yukawafdfc55d2017-09-01 00:22:21 -070044 <uses-permission android:name="com.android.inputmethod.latin.HIDE_SOFT_INPUT"/>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070045 }
Yohei Yukawafdfc55d2017-09-01 00:22:21 -070046 </pre>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070047 then call {@link android.content.Context#sendBroadcast(Intent)} as follows:
Yohei Yukawafdfc55d2017-09-01 00:22:21 -070048 <pre>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070049 {@code
50 sendBroadcast(new Intent("com.android.inputmethod.latin.HIDE_SOFT_INPUT")
51 .setPackage("com.android.inputmethod.latin"));
52 }
Yohei Yukawafdfc55d2017-09-01 00:22:21 -070053 </pre> -->
54 <permission android:name="com.android.inputmethod.latin.HIDE_SOFT_INPUT"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070055 android:protectionLevel="signature"/>
Yohei Yukawafdfc55d2017-09-01 00:22:21 -070056
Tadashi G. Takaoka842e2452013-04-26 14:01:41 +090057 <application android:label="@string/english_ime_name"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070058 android:icon="@drawable/ic_launcher_keyboard"
59 android:supportsRtl="true"
60 android:allowBackup="true"
61 android:defaultToDeviceProtectedStorage="true"
62 android:directBootAware="true">
Jeff Hamilton43d34da2009-05-08 18:57:10 -070063
Sandeep Siddharthad4aec652014-09-22 16:45:05 -070064 <!-- Services -->
The Android Open Source Project923bf412009-03-13 15:11:42 -070065 <service android:name="LatinIME"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070066 android:label="@string/english_ime_name"
67 android:permission="android.permission.BIND_INPUT_METHOD"
68 android:exported="true">
The Android Open Source Project923bf412009-03-13 15:11:42 -070069 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070070 <action android:name="android.view.InputMethod"/>
The Android Open Source Project923bf412009-03-13 15:11:42 -070071 </intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070072 <meta-data android:name="android.view.im"
73 android:resource="@xml/method"/>
The Android Open Source Project923bf412009-03-13 15:11:42 -070074 </service>
Doug Zongker4fc01932010-01-27 14:32:42 -080075
satokc2b6a352011-08-08 19:16:20 +090076 <service android:name=".spellcheck.AndroidSpellCheckerService"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070077 android:label="@string/spell_checker_service_name"
78 android:permission="android.permission.BIND_TEXT_SERVICE"
79 android:exported="true">
satokc2b6a352011-08-08 19:16:20 +090080 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070081 <action android:name="android.service.textservice.SpellCheckerService"/>
satokc2b6a352011-08-08 19:16:20 +090082 </intent-filter>
Ken Wakasaa7d2fc62013-07-22 12:43:37 +090083 <meta-data android:name="android.view.textservice.scs"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070084 android:resource="@xml/spellchecker"/>
satokc2b6a352011-08-08 19:16:20 +090085 </service>
Jean Chalard31fd54c2011-08-12 17:18:32 +090086
Sandeep Siddharthad4aec652014-09-22 16:45:05 -070087 <service android:name="com.android.inputmethod.dictionarypack.DictionaryService"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070088 android:label="@string/dictionary_service_name">
Sandeep Siddharthad4aec652014-09-22 16:45:05 -070089 </service>
90
91 <!-- Activities -->
Tadashi G. Takaokacb0beaf2013-02-14 15:01:53 +090092 <activity android:name=".setup.SetupActivity"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -070093 android:theme="@style/platformActivityTheme"
94 android:label="@string/english_ime_name"
95 android:icon="@drawable/ic_launcher_keyboard"
96 android:launchMode="singleTask"
97 android:noHistory="true"
98 android:exported="true">
Tadashi G. Takaokacb0beaf2013-02-14 15:01:53 +090099 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700100 <action android:name="android.intent.action.MAIN"/>
101 <category android:name="android.intent.category.LAUNCHER"/>
Tadashi G. Takaokacb0beaf2013-02-14 15:01:53 +0900102 </intent-filter>
103 </activity>
104
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700105 <activity android:name=".permissions.PermissionsActivity"
106 android:theme="@android:style/Theme.Translucent.NoTitleBar"
107 android:exported="false"
108 android:taskAffinity="">
Mohammadinamul Sheik60415862015-07-15 13:32:50 -0700109 </activity>
110
Tadashi G. Takaoka2b5c9722013-05-09 13:14:18 +0900111 <activity android:name=".setup.SetupWizardActivity"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700112 android:theme="@style/platformActivityTheme"
113 android:label="@string/english_ime_name"
114 android:clearTaskOnLaunch="true"
115 android:exported="true">
Tadashi G. Takaoka2b5c9722013-05-09 13:14:18 +0900116 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700117 <action android:name="android.intent.action.MAIN"/>
Tadashi G. Takaoka2b5c9722013-05-09 13:14:18 +0900118 </intent-filter>
119 </activity>
120
Ken Wakasaa7d2fc62013-07-22 12:43:37 +0900121 <activity android:name=".settings.SettingsActivity"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700122 android:theme="@style/platformSettingsTheme"
123 android:label="@string/english_ime_settings"
124 android:exported="true">
The Android Open Source Project923bf412009-03-13 15:11:42 -0700125 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700126 <action android:name="android.intent.action.MAIN"/>
The Android Open Source Project923bf412009-03-13 15:11:42 -0700127 </intent-filter>
Amith Yamasani36fcf252009-10-12 13:48:35 -0700128 </activity>
129
Ken Wakasaa7d2fc62013-07-22 12:43:37 +0900130 <activity android:name=".spellcheck.SpellCheckerSettingsActivity"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700131 android:theme="@style/platformSettingsTheme"
132 android:label="@string/android_spell_checker_settings"
133 android:exported="true">
Jean Chalard31fd54c2011-08-12 17:18:32 +0900134 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700135 <action android:name="android.intent.action.MAIN"/>
Jean Chalard31fd54c2011-08-12 17:18:32 +0900136 </intent-filter>
137 </activity>
138
Jean Chalard0cc05442013-03-15 19:00:51 +0900139 <activity android:name="com.android.inputmethod.dictionarypack.DictionarySettingsActivity"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700140 android:theme="@style/platformSettingsTheme"
141 android:label="@string/dictionary_settings_title"
142 android:uiOptions="splitActionBarWhenNarrow"
143 android:exported="true">
Jean Chalard0cc05442013-03-15 19:00:51 +0900144 <intent-filter>
145 <action android:name="android.intent.action.MAIN"/>
146 </intent-filter>
147 </activity>
148
149 <activity android:name="com.android.inputmethod.dictionarypack.DownloadOverMeteredDialog"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700150 android:theme="@style/platformActivityTheme"
151 android:label="@string/dictionary_install_over_metered_network_prompt"
152 android:exported="true">
Jean Chalard0cc05442013-03-15 19:00:51 +0900153 <intent-filter>
154 <action android:name="android.intent.action.MAIN"/>
155 </intent-filter>
156 </activity>
Sandeep Siddhartha84185142014-09-16 15:53:32 -0700157
158 <!-- Unexported activity used for tests. -->
159 <activity android:name=".settings.TestFragmentActivity"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700160 android:exported="false"/>
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700161
162 <!-- Broadcast receivers -->
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700163 <receiver android:name="SystemBroadcastReceiver"
164 android:exported="true">
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700165 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700166 <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
167 <action android:name="android.intent.action.BOOT_COMPLETED"/>
168 <action android:name="android.intent.action.USER_INITIALIZE"/>
169 <action android:name="android.intent.action.LOCALE_CHANGED"/>
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700170 </intent-filter>
171 </receiver>
172
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700173 <receiver android:name="DictionaryPackInstallBroadcastReceiver"
174 android:exported="false">
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700175 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700176 <action android:name="com.android.inputmethod.dictionarypack.aosp.UNKNOWN_CLIENT"/>
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700177 </intent-filter>
178 </receiver>
179
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700180 <receiver android:name="com.android.inputmethod.dictionarypack.EventHandler"
181 android:exported="true">
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700182 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700183 <action android:name="android.intent.action.DOWNLOAD_COMPLETE"/>
184 <action android:name="android.intent.action.DATE_CHANGED"/>
185 <action android:name="com.android.inputmethod.dictionarypack.aosp.UPDATE_NOW"/>
186 <action android:name="com.android.inputmethod.dictionarypack.aosp.INIT_AND_UPDATE_NOW"/>
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700187 </intent-filter>
188 </receiver>
189
190 <!-- Broadcast receiver for AccountManager#LOGIN_ACCOUNTS_CHANGED_ACTION. -->
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700191 <receiver android:name=".accounts.AccountsChangedReceiver"
192 android:exported="true">
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700193 <intent-filter>
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700194 <action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED"/>
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700195 </intent-filter>
196 </receiver>
197
198 <!-- Content providers -->
199 <provider android:name="com.android.inputmethod.dictionarypack.DictionaryProvider"
Ashwini Oruganti7c1b5492020-03-23 16:23:26 -0700200 android:grantUriPermissions="true"
201 android:exported="false"
202 android:authorities="@string/authority"
203 android:multiprocess="false"
204 android:label="@string/dictionary_provider_name">
Sandeep Siddharthad4aec652014-09-22 16:45:05 -0700205 </provider>
The Android Open Source Project923bf412009-03-13 15:11:42 -0700206 </application>
207</manifest>