aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/dictionarypack (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-1129-6126/+0
|
* LatinIME: Fix Implicit PendingIntent Vulnerabilitytechyminati2024-06-191-1/+7
| | | | | | | | | | | | * checkTimeAndMaybeSetupUpdateAlarm method created an Implicit PendingIntent vulnerability, which may cause security threats in the form of denial-of-service, private data theft, and privilege escalation. * PendingIntents are Intents delegated to another app to be delivered at some future time. Creating an implicit intent wrapped under a PendingIntent is a security vulnerability that might lead to denial-of-service, private data theft, and privilege escalation. * We've used FLAG_IMMUTABLE (added in SDK 23) to create PendingIntents for SDK > 23, This prevents apps that receive the PendingIntent from filling in unpopulated properties & Ensures that PendingIntent is only delivered to trusted components. Test: m Change-Id: I68a1f3f2d81138e42092cc201d36e5d29853a86e Signed-off-by: techyminati <sinha.aryan03@gmail.com>
* Merge "Fix array-related errorprone warnings"Treehugger Robot2022-08-241-1/+3
|\
| * Fix array-related errorprone warningsCole Faust2022-08-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | The ArrayEquals, ArrayHashCode, ArrayToString, and ArraysAsListPrimitiveArray errorprone findings were demoted from errors to warnings. Fix existing occurrences of them so they can be made errors again. Bug: 242630963 Test: RUN_ERROR_PRONE=true m javac-check Change-Id: I689397a7196277de3fd301836e72f7555e2036cb
* | Remove unused method for dictionarypackWilson Wu2022-02-231-54/+0
|/ | | | | | | | | Remove the showDictionaryAvailableNotification method since there is no module use it. Bug: 209479751 Test: presubmit Change-Id: I4c88b4a2d0cb36761d9102ce35260f93303625d9
* Update language to comply with Android’s inclusive language guidanceSeigo Nonaka2020-07-221-1/+1
| | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: tapas LatinIME && m Change-Id: I2ffb39ff70f61e579b62761d3da526a545dead1f
* Merge java-overridable/ into java/ againYohei Yukawa2018-05-062-0/+101
| | | | | | | | | | | | | | | This CL a logical revert of a previous CL [1], which separated Java files into common ones and overridable ones. Now that that overriding concept is no longer used, there is no need to keep having separate directory structure. [1]: Ic734bd4d20aa050c688a3158b1a382ae0ac18991 fb74ab15c1343084740d65ef8744cad33a678e82 Fix: 79323502 Test: make -j aosp_taimen-userdebug && make -j Test: tapas LatinIME && make -j Change-Id: I2090bc25d18e6d4f24e91c2cbfe832755cbb4e8f
* Revert "Close FileChannels in UpdateHandler#copyFile."Yohei Yukawa2016-03-031-10/+2
| | | | | | | | | | | | | | This reverts commit 3e2670265e17e91c5a8cfff01711f973dccd2a0c. It turns out that the behavior change in libcore was unintentional, and it was already fixed [1]. Let's revert our workaround back to see if the existing code is compatible with N. [1]: Ibacb192abc37870c74a2500d65b94d68f9c2318e 5e7b572c2b494ab86ddd2baca3883a40a6064c1e Bug: 26239281 Change-Id: I6cd2340492d93251231e7ee37c3d4f82c1721293
* Close FileChannels in UpdateHandler#copyFile.Keisuke Kuroyanagi2016-02-241-2/+10
| | | | | Bug: 26239281 Change-Id: Ib30beb3548f8fb4a8e338b5da863ae28c252bc2b
* Don't show download toast during SUWRussell Brenner2015-08-251-6/+16
| | | | | | | | | | | Check to see if setup wizard is running before showing toast to inform user that a download was started. Note that this will only affect the device owner; when adding new users later, the toast will still appear. (The USER_SETUP_COMPLETE flag is hidden from the SDK, while DEVICE_PROVISIONED remains available.) Bug: 22594336 Change-Id: I57c42d6f821714b71cbb066e82bba2a1dbab4951
* Don't prompt before downloading.Dan Zivkovic2015-06-253-34/+12
| | | | | | | | We don't pay attention to the answer, so don't ask. Bug 22069694. Change-Id: Ic048d5570e68fbc9438c6577e27e6c7f68428606
* Add some more logging. Why not.Dan Zivkovic2015-06-241-2/+5
| | | | Change-Id: I536212e1b3c35d75ed93f9ab3762908e3deb9a97
* Load metadata.json from resources on DB reset.Dan Zivkovic2015-06-242-8/+11
| | | | | | | | | | | This will ensure that a new (or upgraded) keyboard instance will know which dictionaries are available for download so it requests missing dictionaries. In addition, we increment the database version number to ensure upgrades of existing Fava instances start with a clean slate. Bug 22069694. Change-Id: Id71310412682543a3931f9c5c03cb0369fa7b9ac
* Clear/remove all the scheduled downloads in Download ManagerMohammadinamul Sheik2015-06-221-0/+3
| | | | | Bug: 21797386 Change-Id: I60f50a2fe890af46f5e847c34df2edf719d40ac4
* Disable download notifications.Chieu Nguyen2015-06-191-3/+1
| | | | Change-Id: I25263fe227ae88afa2021454b0dac2b0c7b9bfe0
* Do not restrict downloads to WiFi networks.Dan Zivkovic2015-06-176-96/+23
| | | | | | Bug 21900337. Change-Id: I82991b492ea4c02a28a1ccc898d6f12741f1b793
* Merge "Hide Notification when downloading the keyboard metadata" into ↵Mohammadinamul Sheik2015-06-161-5/+2
|\ | | | | | | jb-ub-latinimegoogle
| * Hide Notification when downloading the keyboard metadataMohammadinamul Sheik2015-06-151-5/+2
| | | | | | | | | | Bug: 21797386 Change-Id: Iebe9d2f18c5c8325a5601d49d8c4c65166b67036
* | Change metadata fetch interval back to 4 days.Dan Zivkovic2015-05-281-1/+1
|/ | | | | | Bug 19774872. Change-Id: Icd790414d9462ee74a7eac11dd255fddf3048dce
* Make the DictionaryService check for download every day.Mohammadinamul Sheik2015-05-121-1/+1
| | | | | Bug: 20103664 Change-Id: Iba019d5f79f46c560171e0594c2b5114b477923a
* Update the DB version.Dan Zivkovic2015-05-081-1/+1
| | | | | | Bug 20103664. Change-Id: I1e2b72979df148d8aa71e3e58437a5853e63c261
* Metadata URI does not need additionalId.Dan Zivkovic2015-05-061-3/+4
| | | | | | Bug 20701628. Change-Id: Ifba1e7dd7f9934c8c13279dfb95bf02c0e30e650
* Make the DictionaryService stage the downloaded filesMohammadinamul Sheik2015-05-042-0/+12
| | | | | Bug: 20641948 Change-Id: I6639c995b12c033bc30241cd219201dd483ee516
* Do not re-download the unused dictionaries.Mohammadinamul Sheik2015-04-152-2/+5
| | | | | | | | | | | Does the following 1. Uses dictionaries from the files/ directory while populating the entries into the pendingUpdates table. So that a download happens only if the metadata.json says so. 2. Delete an unusable dictionaries from the files/ directory. Bug: 20142708 Change-Id: Ibd738793585c39735868e324b8ad682dff0eba34
* Do not throw NPE if the dictionary info is not available on dbMohammadinamul Sheik2015-04-024-2/+22
| | | | | Bug: 20035793 Change-Id: Idc13af405eab5457954a93db3dddcd81f6eb6435
* Force download the dictionaries after the apk package is updated.Mohammadinamul Sheik2015-03-245-9/+50
| | | | | | | | - Also display the notification when the dictionaries are auto updated Bug: 19808828 Change-Id: If5c4efb73d8bb554d812afcf7deafec3ac40a462
* DO NOT MERGE. Do not access metadatadb from main thread.Ulas Kirazci2015-03-201-20/+44
| | | | | | | Also fix Refresh button replicating itself on orientation change. Bug: 19786650 Change-Id: I19a964d69d9141ba6515bbe19a120d4685628fe3
* Bump up the current metadata database version to 14.Mario Tanev2015-03-161-1/+1
| | | | Change-Id: I49057f117666291c2e9e7ba3c3627f75ffc3cca5
* Log.i on dictionary download startMohammadinamul Sheik2015-03-131-0/+2
| | | | Change-Id: I8b501fb5512d4d3bbca75e4c4be7c7eb95f32020
* Bump up the current metadata database version.Mario Tanev2015-03-131-1/+1
| | | | Change-Id: Id2814a2224b90ba124f1c9801760a2c86f2dc2e2
* Make checksum and header checks decoder dependent.Mohammadinamul Sheik2015-02-201-1/+1
| | | | Change-Id: I0ec4aa69d9b5f013ae926cc368e25225d9d3073b
* Make LocaleUtils.constructLocaleFromString as @NonnullTadashi G. Takaoka2014-11-213-11/+21
| | | | Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
* Bumping metadata database version to 11.Adrian Velicu2014-11-141-1/+2
| | | | Change-Id: I19e2f701f3e2334355bfd7105f9b62dcb53cc209
* UpdateHandler to support v202 dicts.Adrian Velicu2014-11-121-1/+3
| | | | Change-Id: Ib61a5005a82927f5e12a19c9c14f20d46572cf31
* Move util classes under commonJean Chalard2014-11-076-187/+6
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Remove a useless method.Jean Chalard2014-11-061-17/+0
| | | | | | | Yay for cleanup Bug: 18108776 Change-Id: I13f4066cd54f294377fdcf375a69350c44d4a32a
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-232-2/+13
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-2111-223/+219
| | | | | | | | | | | | | | | | | | | | | This CL fixes the following compiler warnings. - Indirect access to static member - Access to a non-accessible member of an enclosing type - Parameter assignment - Method can be static - Local variable declaration hides another field or variable - Value of local variable is not used - Unused import - Unused private member - Unnecessary 'else' statement - Unnecessary declaration of throw exception - Redundant type arguments - Missing '@Override' annotation - Unused '@SuppressWarning' annotations Bug: 18003991 Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
* Avoid downloading the metadata in quick succession.Jean Chalard2014-10-014-26/+79
| | | | | | | Bug: 17668298 Bug: 8651816 Bug: 17709442 Change-Id: Ib232f9d95d7c01a028be85d10f974a5a570c0ed5
* Remove some logs which spam encrypted bootJean Chalard2014-09-191-10/+8
| | | | | Bug: 17539539 Change-Id: Idb442c2f0db2361b8e535f39b02d209b1edd1069
* Attempt retry for broken dictionariesJatin Matani2014-09-037-60/+170
| | | | | | | | | 1. Add retry count column within metadata in dictionary pack. 2. Attempt a retry for download and installation by running StartDownloadAction. 3. If the number retrial are at the threshold, we don't attempt it again. Bug: 15150487 Change-Id: I70720353e5803fccf4728c2aa798883ba75c61e5
* Add new attributes to our notificationJean Chalard2014-08-281-3/+10
| | | | | | Bug: 17167221 Bug: 17128331 Change-Id: I6a045fd2398f40dbdc10c9d20993f7513e1f2cff
* DO NOT MERGE: Abolish source code overlay and introduce overridable src dirKen Wakasa2014-08-202-98/+0
| | | | | | | This should make IDEs happy with appropriate source code directory selection. Change-Id: Ic734bd4d20aa050c688a3158b1a382ae0ac18991 (cherry picked from commit fb74ab15c1343084740d65ef8744cad33a678e82)
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-2410-28/+22
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Increase the DB version for the next release.Jean Chalard2014-05-221-1/+1
| | | | | | Bug: 15065819 Change-Id: Ie43660109002fdb25ce68d7e64506ada0e15e621
* Check the md5 checksum of the copied file.Jean Chalard2014-05-221-1/+1
| | | | | | | | | If it doesn't match, mark it broken. It means the dictionary pack will try to install it again next time it updates. We may want to rethink this. Bug: 13125743 Change-Id: I0eb547aa7066bed8cb00c009debbafe9181c37ad
* Arrange to send the rawChecksum to LatinIME.Jean Chalard2014-05-221-4/+12
| | | | | Bug: 13125743 Change-Id: I5d111336e6a0f5ab4e93ff333654a7a1f8f46480
* Add the rawChecksum column to the database.Jean Chalard2014-05-225-15/+52
| | | | | Bug: 13125743 Change-Id: I082aa9df1dd4a10cdb3f97ee0692f2d72f6c8e7e
* Reset the client database on version upgrade.Jean Chalard2014-04-031-10/+31
| | | | | Bug: 13632164 Change-Id: Iba333db63558254d760fc80244b3c9753c26b069
* Straighten out database cursors behavior.Jean Chalard2014-02-184-84/+114
| | | | | | | | | | | | | | | | | | | Some were never closed, other closed twice. This change makes all Cursor instances behave, having the #close() call in a finally{} clause, and puts the burden of closing the cursor squarely on the creator rather than in the called methods. There is however one exception that is beyond the scope of this change: UserDictionarySettings have a Cursor member, it's never closed, and fixing the problem is not obvious. This change adds a TODO for now. It's not very clear if this change actually helps with bug#12670151, but it may be related and it's a good think to do anyway. Bug: 12670151 Change-Id: I87cc44387e7dee3da1488671b93a28d9d73f7dc0