[TUT][GUIDE] How to add user dictionary to aosp 4.0.4 keyboard

Wechy77

Senior Member
Dec 26, 2011
1,544
1,732
0
Here
In AOSP keyboard is EN, DE, ES, FR and IT include, so you dont need any user dictionary.

I will show you, how i make my own hungarian user dictionary in 5 min, with 30.000 words.

What you need:
Rooted 4.0.4
AOSP Keyboard
Root explorer (or similar)

Word list in your language Some list is here: http://udm.adrianvintu.com/, but you can search by google. You can search your frequency list here. I find out, that up to 10.000 word user dictionary don't slow down your keyboard.
For editing db file: sqliteman

At first save some words to user dict in your phone.

Then witth root exploer copy:
data/data/com.android.providers.userdictionary/databases/user_dict.db to sd card, then from sd card copy it to PC

Then run sqliteman. Open user_dict.db
Dubble click on words. Click export data (above wordlist, near „Mona Lisa” :) See pict. 1.
Choose csv, export to file, add a filename (I added „probe”), Encoding: UTF-8, Line End: MS WINDOWS See pict. 2
Now you have a 'probe' file in the folder you have saved 'user_dict.db'

Open it with notepad, or notepad ++, and replace all ',' with ';' and delete all ”. Save, and rename the file to „probe.csv”
Now you can open it with excel.
In excel you should see somthing like in pict. 3
Open your downloaded worlist add copy all words to column B. Pull down the sequence number, language code, and the other 2 numbers. Save the file.
Delete all rows you had in „user_dict.db”
Now go to sqliteman, and click on Database --> Import table data, then import your edited csv file. In import choose semicolon. Click Ok.

Above wordlist click on „Commit the current transaction int he result table”. It is the icon with the green arrow.
Click File --> Exit. :p

Now you have a user dictionary with lot of words in your language.

Copy the modded user_dict.db from PC to sd card root, then with root explorer replace orginal file with that one.

Thats it. For me works perfectly.

Ps.: Sorry for my bad english
 

Attachments

Last edited:

Wechy77

Senior Member
Dec 26, 2011
1,544
1,732
0
Here
In these link you can search if your language is supported in keyboard:
LatinIME merged
Now: Hungarian, Persian, Czeh, Ukrainan, Bulgarian, Croatina, Greek is supported.

If AOSP keybord has your language letters, then you can add your user dictionary.
 
Last edited: