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 | |
Rhed Jao | a630a5f | 2022-09-06 20:48:59 +0800 | [diff] [blame^] | 57 | <!-- To query enabled input methods. --> |
| 58 | <queries> |
| 59 | <intent> |
| 60 | <action android:name="android.view.InputMethod" /> |
| 61 | </intent> |
| 62 | </queries> |
| 63 | |
Tadashi G. Takaoka | 842e245 | 2013-04-26 14:01:41 +0900 | [diff] [blame] | 64 | <application android:label="@string/english_ime_name" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 65 | android:icon="@drawable/ic_launcher_keyboard" |
| 66 | android:supportsRtl="true" |
| 67 | android:allowBackup="true" |
| 68 | android:defaultToDeviceProtectedStorage="true" |
| 69 | android:directBootAware="true"> |
Jeff Hamilton | 43d34da | 2009-05-08 18:57:10 -0700 | [diff] [blame] | 70 | |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 71 | <!-- Services --> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 72 | <service android:name="LatinIME" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 73 | android:label="@string/english_ime_name" |
| 74 | android:permission="android.permission.BIND_INPUT_METHOD" |
Rhed Jao | a630a5f | 2022-09-06 20:48:59 +0800 | [diff] [blame^] | 75 | android:exported="true" |
| 76 | android:visibleToInstantApps="true"> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 77 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 78 | <action android:name="android.view.InputMethod"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 79 | </intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 80 | <meta-data android:name="android.view.im" |
| 81 | android:resource="@xml/method"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 82 | </service> |
Doug Zongker | 4fc0193 | 2010-01-27 14:32:42 -0800 | [diff] [blame] | 83 | |
satok | c2b6a35 | 2011-08-08 19:16:20 +0900 | [diff] [blame] | 84 | <service android:name=".spellcheck.AndroidSpellCheckerService" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 85 | android:label="@string/spell_checker_service_name" |
| 86 | android:permission="android.permission.BIND_TEXT_SERVICE" |
| 87 | android:exported="true"> |
satok | c2b6a35 | 2011-08-08 19:16:20 +0900 | [diff] [blame] | 88 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 89 | <action android:name="android.service.textservice.SpellCheckerService"/> |
satok | c2b6a35 | 2011-08-08 19:16:20 +0900 | [diff] [blame] | 90 | </intent-filter> |
Ken Wakasa | a7d2fc6 | 2013-07-22 12:43:37 +0900 | [diff] [blame] | 91 | <meta-data android:name="android.view.textservice.scs" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 92 | android:resource="@xml/spellchecker"/> |
satok | c2b6a35 | 2011-08-08 19:16:20 +0900 | [diff] [blame] | 93 | </service> |
Jean Chalard | 31fd54c | 2011-08-12 17:18:32 +0900 | [diff] [blame] | 94 | |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 95 | <service android:name="com.android.inputmethod.dictionarypack.DictionaryService" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 96 | android:label="@string/dictionary_service_name"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 97 | </service> |
| 98 | |
| 99 | <!-- Activities --> |
Tadashi G. Takaoka | cb0beaf | 2013-02-14 15:01:53 +0900 | [diff] [blame] | 100 | <activity android:name=".setup.SetupActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 101 | android:theme="@style/platformActivityTheme" |
| 102 | android:label="@string/english_ime_name" |
| 103 | android:icon="@drawable/ic_launcher_keyboard" |
| 104 | android:launchMode="singleTask" |
| 105 | android:noHistory="true" |
| 106 | android:exported="true"> |
Tadashi G. Takaoka | cb0beaf | 2013-02-14 15:01:53 +0900 | [diff] [blame] | 107 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 108 | <action android:name="android.intent.action.MAIN"/> |
| 109 | <category android:name="android.intent.category.LAUNCHER"/> |
Tadashi G. Takaoka | cb0beaf | 2013-02-14 15:01:53 +0900 | [diff] [blame] | 110 | </intent-filter> |
| 111 | </activity> |
| 112 | |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 113 | <activity android:name=".permissions.PermissionsActivity" |
| 114 | android:theme="@android:style/Theme.Translucent.NoTitleBar" |
| 115 | android:exported="false" |
| 116 | android:taskAffinity=""> |
Mohammadinamul Sheik | 6041586 | 2015-07-15 13:32:50 -0700 | [diff] [blame] | 117 | </activity> |
| 118 | |
Tadashi G. Takaoka | 2b5c972 | 2013-05-09 13:14:18 +0900 | [diff] [blame] | 119 | <activity android:name=".setup.SetupWizardActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 120 | android:theme="@style/platformActivityTheme" |
| 121 | android:label="@string/english_ime_name" |
| 122 | android:clearTaskOnLaunch="true" |
| 123 | android:exported="true"> |
Tadashi G. Takaoka | 2b5c972 | 2013-05-09 13:14:18 +0900 | [diff] [blame] | 124 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 125 | <action android:name="android.intent.action.MAIN"/> |
Tadashi G. Takaoka | 2b5c972 | 2013-05-09 13:14:18 +0900 | [diff] [blame] | 126 | </intent-filter> |
| 127 | </activity> |
| 128 | |
Ken Wakasa | a7d2fc6 | 2013-07-22 12:43:37 +0900 | [diff] [blame] | 129 | <activity android:name=".settings.SettingsActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 130 | android:theme="@style/platformSettingsTheme" |
| 131 | android:label="@string/english_ime_settings" |
| 132 | android:exported="true"> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 133 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 134 | <action android:name="android.intent.action.MAIN"/> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 135 | </intent-filter> |
Amith Yamasani | 36fcf25 | 2009-10-12 13:48:35 -0700 | [diff] [blame] | 136 | </activity> |
| 137 | |
Ken Wakasa | a7d2fc6 | 2013-07-22 12:43:37 +0900 | [diff] [blame] | 138 | <activity android:name=".spellcheck.SpellCheckerSettingsActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 139 | android:theme="@style/platformSettingsTheme" |
| 140 | android:label="@string/android_spell_checker_settings" |
| 141 | android:exported="true"> |
Jean Chalard | 31fd54c | 2011-08-12 17:18:32 +0900 | [diff] [blame] | 142 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 143 | <action android:name="android.intent.action.MAIN"/> |
Jean Chalard | 31fd54c | 2011-08-12 17:18:32 +0900 | [diff] [blame] | 144 | </intent-filter> |
| 145 | </activity> |
| 146 | |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 147 | <activity android:name="com.android.inputmethod.dictionarypack.DictionarySettingsActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 148 | android:theme="@style/platformSettingsTheme" |
| 149 | android:label="@string/dictionary_settings_title" |
| 150 | android:uiOptions="splitActionBarWhenNarrow" |
| 151 | android:exported="true"> |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 152 | <intent-filter> |
| 153 | <action android:name="android.intent.action.MAIN"/> |
| 154 | </intent-filter> |
| 155 | </activity> |
| 156 | |
| 157 | <activity android:name="com.android.inputmethod.dictionarypack.DownloadOverMeteredDialog" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 158 | android:theme="@style/platformActivityTheme" |
| 159 | android:label="@string/dictionary_install_over_metered_network_prompt" |
Wilson Wu | 54d4421 | 2022-08-10 14:46:45 +0800 | [diff] [blame] | 160 | android:exported="false"> |
Jean Chalard | 0cc0544 | 2013-03-15 19:00:51 +0900 | [diff] [blame] | 161 | <intent-filter> |
| 162 | <action android:name="android.intent.action.MAIN"/> |
| 163 | </intent-filter> |
| 164 | </activity> |
Sandeep Siddhartha | 8418514 | 2014-09-16 15:53:32 -0700 | [diff] [blame] | 165 | |
| 166 | <!-- Unexported activity used for tests. --> |
| 167 | <activity android:name=".settings.TestFragmentActivity" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 168 | android:exported="false"/> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 169 | |
| 170 | <!-- Broadcast receivers --> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 171 | <receiver android:name="SystemBroadcastReceiver" |
| 172 | android:exported="true"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 173 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 174 | <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/> |
| 175 | <action android:name="android.intent.action.BOOT_COMPLETED"/> |
| 176 | <action android:name="android.intent.action.USER_INITIALIZE"/> |
| 177 | <action android:name="android.intent.action.LOCALE_CHANGED"/> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 178 | </intent-filter> |
| 179 | </receiver> |
| 180 | |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 181 | <receiver android:name="DictionaryPackInstallBroadcastReceiver" |
| 182 | android:exported="false"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 183 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 184 | <action android:name="com.android.inputmethod.dictionarypack.aosp.UNKNOWN_CLIENT"/> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 185 | </intent-filter> |
| 186 | </receiver> |
| 187 | |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 188 | <receiver android:name="com.android.inputmethod.dictionarypack.EventHandler" |
| 189 | android:exported="true"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 190 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 191 | <action android:name="android.intent.action.DOWNLOAD_COMPLETE"/> |
| 192 | <action android:name="android.intent.action.DATE_CHANGED"/> |
| 193 | <action android:name="com.android.inputmethod.dictionarypack.aosp.UPDATE_NOW"/> |
| 194 | <action android:name="com.android.inputmethod.dictionarypack.aosp.INIT_AND_UPDATE_NOW"/> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 195 | </intent-filter> |
| 196 | </receiver> |
| 197 | |
| 198 | <!-- Broadcast receiver for AccountManager#LOGIN_ACCOUNTS_CHANGED_ACTION. --> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 199 | <receiver android:name=".accounts.AccountsChangedReceiver" |
| 200 | android:exported="true"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 201 | <intent-filter> |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 202 | <action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED"/> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 203 | </intent-filter> |
| 204 | </receiver> |
| 205 | |
| 206 | <!-- Content providers --> |
| 207 | <provider android:name="com.android.inputmethod.dictionarypack.DictionaryProvider" |
Ashwini Oruganti | 7c1b549 | 2020-03-23 16:23:26 -0700 | [diff] [blame] | 208 | android:grantUriPermissions="true" |
| 209 | android:exported="false" |
| 210 | android:authorities="@string/authority" |
| 211 | android:multiprocess="false" |
| 212 | android:label="@string/dictionary_provider_name"> |
Sandeep Siddhartha | d4aec65 | 2014-09-22 16:45:05 -0700 | [diff] [blame] | 213 | </provider> |
The Android Open Source Project | 923bf41 | 2009-03-13 15:11:42 -0700 | [diff] [blame] | 214 | </application> |
| 215 | </manifest> |