Ken Wakasa | 1a9ef01 | 2012-07-06 20:29:08 +0900 | [diff] [blame] | 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 | |
Doug Zongker | 4fc0193 | 2010-01-27 14:32:42 -0800 | [diff] [blame] | 17 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 18 | coreApp="true" |
| 19 | package="com.android.inputmethod.latin" |
Yohei Yukawa | 360052f | 2021-06-14 20:32:50 -0700 | [diff] [blame] | 20 | android:versionCode="30"> |
Jeff Hamilton | e11e283 | 2010-02-12 18:55:34 -0600 | [diff] [blame] | 21 | |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 22 | <uses-sdk android:minSdkVersion="21" |
Yohei Yukawa | 360052f | 2021-06-14 20:32:50 -0700 | [diff] [blame] | 23 | android:targetSdkVersion="30"/> |
Yohei Yukawa | 69ceec9 | 2018-11-13 13:49:23 -0800 | [diff] [blame] | 24 | |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 25 | <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 Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 39 | |
Yohei Yukawa | fdfc55d | 2017-09-01 00:22:21 -0700 | [diff] [blame] | 40 | <!-- A signature-protected permission to ask AOSP Keyboard to close the software keyboard. |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 41 | To use this, add the following line into calling application's AndroidManifest.xml |
Yohei Yukawa | fdfc55d | 2017-09-01 00:22:21 -0700 | [diff] [blame] | 42 | <pre> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 43 | {@code |
Yohei Yukawa | fdfc55d | 2017-09-01 00:22:21 -0700 | [diff] [blame] | 44 | <uses-permission android:name="com.android.inputmethod.latin.HIDE_SOFT_INPUT"/> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 45 | } |
Yohei Yukawa | fdfc55d | 2017-09-01 00:22:21 -0700 | [diff] [blame] | 46 | </pre> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 47 | then call {@link android.content.Context#sendBroadcast(Intent)} as follows: |
Yohei Yukawa | fdfc55d | 2017-09-01 00:22:21 -0700 | [diff] [blame] | 48 | <pre> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 49 | {@code |
| 50 | sendBroadcast(new Intent("com.android.inputmethod.latin.HIDE_SOFT_INPUT") |
| 51 | .setPackage("com.android.inputmethod.latin")); |
| 52 | } |
Yohei Yukawa | fdfc55d | 2017-09-01 00:22:21 -0700 | [diff] [blame] | 53 | </pre> --> |
| 54 | <permission android:name="com.android.inputmethod.latin.HIDE_SOFT_INPUT" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 55 | android:protectionLevel="signature"/> |
Yohei Yukawa | fdfc55d | 2017-09-01 00:22:21 -0700 | [diff] [blame] | 56 | |
Tadashi G. Takaoka | 842e245 | 2013-04-26 14:01:41 +0900 | [diff] [blame] | 57 | <application android:label="@string/english_ime_name" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 58 | android:icon="@drawable/ic_launcher_keyboard" |
| 59 | android:supportsRtl="true" |
| 60 | android:allowBackup="true" |
| 61 | android:defaultToDeviceProtectedStorage="true" |
| 62 | android:directBootAware="true"> |
Jeff Hamilton | 43d34da | 2009-05-08 18:57:10 -0700 | [diff] [blame] | 63 | |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 64 | <!-- Services --> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 65 | <service android:name="LatinIME" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 66 | android:label="@string/english_ime_name" |
| 67 | android:permission="android.permission.BIND_INPUT_METHOD" |
| 68 | android:exported="true"> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 69 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 70 | <action android:name="android.view.InputMethod"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 71 | </intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 72 | <meta-data android:name="android.view.im" |
| 73 | android:resource="@xml/method"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 74 | </service> |
Doug Zongker | 4fc0193 | 2010-01-27 14:32:42 -0800 | [diff] [blame] | 75 | |
satok | c2b6a35 | 2011-08-08 19:16:20 +0900 | [diff] [blame] | 76 | <service android:name=".spellcheck.AndroidSpellCheckerService" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 77 | android:label="@string/spell_checker_service_name" |
| 78 | android:permission="android.permission.BIND_TEXT_SERVICE" |
| 79 | android:exported="true"> |
satok | c2b6a35 | 2011-08-08 19:16:20 +0900 | [diff] [blame] | 80 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 81 | <action android:name="android.service.textservice.SpellCheckerService"/> |
satok | c2b6a35 | 2011-08-08 19:16:20 +0900 | [diff] [blame] | 82 | </intent-filter> |
Ken Wakasa | a7d2fc6 | 2013-07-22 12:43:37 +0900 | [diff] [blame] | 83 | <meta-data android:name="android.view.textservice.scs" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 84 | android:resource="@xml/spellchecker"/> |
satok | c2b6a35 | 2011-08-08 19:16:20 +0900 | [diff] [blame] | 85 | </service> |
Jean Chalard | 31fd54c | 2011-08-12 17:18:32 +0900 | [diff] [blame] | 86 | |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 87 | <service android:name="com.android.inputmethod.dictionarypack.DictionaryService" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 88 | android:label="@string/dictionary_service_name"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 89 | </service> |
| 90 | |
| 91 | <!-- Activities --> |
Tadashi G. Takaoka | cb0beaf | 2013-02-14 15:01:53 +0900 | [diff] [blame] | 92 | <activity android:name=".setup.SetupActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 93 | 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. Takaoka | cb0beaf | 2013-02-14 15:01:53 +0900 | [diff] [blame] | 99 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 100 | <action android:name="android.intent.action.MAIN"/> |
| 101 | <category android:name="android.intent.category.LAUNCHER"/> |
Tadashi G. Takaoka | cb0beaf | 2013-02-14 15:01:53 +0900 | [diff] [blame] | 102 | </intent-filter> |
| 103 | </activity> |
| 104 | |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 105 | <activity android:name=".permissions.PermissionsActivity" |
| 106 | android:theme="@android:style/Theme.Translucent.NoTitleBar" |
| 107 | android:exported="false" |
| 108 | android:taskAffinity=""> |
Mohammadinamul Sheik | 6041586 | 2015-07-15 13:32:50 -0700 | [diff] [blame] | 109 | </activity> |
| 110 | |
Tadashi G. Takaoka | 2b5c972 | 2013-05-09 13:14:18 +0900 | [diff] [blame] | 111 | <activity android:name=".setup.SetupWizardActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 112 | android:theme="@style/platformActivityTheme" |
| 113 | android:label="@string/english_ime_name" |
| 114 | android:clearTaskOnLaunch="true" |
| 115 | android:exported="true"> |
Tadashi G. Takaoka | 2b5c972 | 2013-05-09 13:14:18 +0900 | [diff] [blame] | 116 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 117 | <action android:name="android.intent.action.MAIN"/> |
Tadashi G. Takaoka | 2b5c972 | 2013-05-09 13:14:18 +0900 | [diff] [blame] | 118 | </intent-filter> |
| 119 | </activity> |
| 120 | |
Ken Wakasa | a7d2fc6 | 2013-07-22 12:43:37 +0900 | [diff] [blame] | 121 | <activity android:name=".settings.SettingsActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 122 | android:theme="@style/platformSettingsTheme" |
| 123 | android:label="@string/english_ime_settings" |
| 124 | android:exported="true"> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 125 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 126 | <action android:name="android.intent.action.MAIN"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 127 | </intent-filter> |
Amith Yamasani | 36fcf25 | 2009-10-12 13:48:35 -0700 | [diff] [blame] | 128 | </activity> |
| 129 | |
Ken Wakasa | a7d2fc6 | 2013-07-22 12:43:37 +0900 | [diff] [blame] | 130 | <activity android:name=".spellcheck.SpellCheckerSettingsActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 131 | android:theme="@style/platformSettingsTheme" |
| 132 | android:label="@string/android_spell_checker_settings" |
| 133 | android:exported="true"> |
Jean Chalard | 31fd54c | 2011-08-12 17:18:32 +0900 | [diff] [blame] | 134 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 135 | <action android:name="android.intent.action.MAIN"/> |
Jean Chalard | 31fd54c | 2011-08-12 17:18:32 +0900 | [diff] [blame] | 136 | </intent-filter> |
| 137 | </activity> |
| 138 | |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 139 | <activity android:name="com.android.inputmethod.dictionarypack.DictionarySettingsActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 140 | android:theme="@style/platformSettingsTheme" |
| 141 | android:label="@string/dictionary_settings_title" |
| 142 | android:uiOptions="splitActionBarWhenNarrow" |
| 143 | android:exported="true"> |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 144 | <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 Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 150 | android:theme="@style/platformActivityTheme" |
| 151 | android:label="@string/dictionary_install_over_metered_network_prompt" |
| 152 | android:exported="true"> |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 153 | <intent-filter> |
| 154 | <action android:name="android.intent.action.MAIN"/> |
| 155 | </intent-filter> |
| 156 | </activity> |
Sandeep Siddhartha | 8418514 | 2014-09-16 15:53:32 -0700 | [diff] [blame] | 157 | |
| 158 | <!-- Unexported activity used for tests. --> |
| 159 | <activity android:name=".settings.TestFragmentActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 160 | android:exported="false"/> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 161 | |
| 162 | <!-- Broadcast receivers --> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 163 | <receiver android:name="SystemBroadcastReceiver" |
| 164 | android:exported="true"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 165 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 166 | <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 Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 170 | </intent-filter> |
| 171 | </receiver> |
| 172 | |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 173 | <receiver android:name="DictionaryPackInstallBroadcastReceiver" |
| 174 | android:exported="false"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 175 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 176 | <action android:name="com.android.inputmethod.dictionarypack.aosp.UNKNOWN_CLIENT"/> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 177 | </intent-filter> |
| 178 | </receiver> |
| 179 | |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 180 | <receiver android:name="com.android.inputmethod.dictionarypack.EventHandler" |
| 181 | android:exported="true"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 182 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 183 | <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 Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 187 | </intent-filter> |
| 188 | </receiver> |
| 189 | |
| 190 | <!-- Broadcast receiver for AccountManager#LOGIN_ACCOUNTS_CHANGED_ACTION. --> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 191 | <receiver android:name=".accounts.AccountsChangedReceiver" |
| 192 | android:exported="true"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 193 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 194 | <action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED"/> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 195 | </intent-filter> |
| 196 | </receiver> |
| 197 | |
| 198 | <!-- Content providers --> |
| 199 | <provider android:name="com.android.inputmethod.dictionarypack.DictionaryProvider" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 200 | android:grantUriPermissions="true" |
| 201 | android:exported="false" |
| 202 | android:authorities="@string/authority" |
| 203 | android:multiprocess="false" |
| 204 | android:label="@string/dictionary_provider_name"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 205 | </provider> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 206 | </application> |
| 207 | </manifest> |