Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Browsing the systems files of my LG P350 I discovered a strange file inside what seems to be the XT9 files: there's a txt file called heads_of_state.txt, which contents are the following:

Hamid
Karzai
Bamir
Topi    
Sali
Berisha
Abdelaziz
Bouteflika
Ahmed
Ouyahia
Andorra
Joan
Enric 
Vives 
Sicília
Nemesi 
Marquès 
Oste
Nicolas 
Sarkozy
Christian 
Frémont
Albert 
Pintat
Jaume 
Bartumeu
José 
Eduardo 
dos 
Santos 
Paulo 
...

The list continues and I can spot a few presidents names. It's located in system/usr/xt9/databases/mdb/

What does this means?? Why the file is there? What it is porpuose?

For the curious, here's the full list: http://pastebin.com/V8hHYZmz

(I'm using the V10F firwmare, rooted with Gingerbread)

share|improve this question
3  
It's probably for the auto-complete/spellcheck dictionary so that political leaders can be added and removed more easily due to their often transient nature (but I can't prove that, so comment instead of answer). –  eldarerathis Apr 13 '12 at 16:05
1  
Why would some head of state be removed from dictionary, even if (s)he is no longer in office? Besides this list is little outdated, some of those names are not in office anymore. –  Tschareck Apr 13 '12 at 17:56
2  
I insist, this words aren't used in the XT9. –  Andres Apr 13 '12 at 18:10
1  
@eldarerathis I think the real question here is why we need a dictionary for the name of the presidents. And why it's bundled to the stock firmware. –  Andres Apr 13 '12 at 19:02
2  
Strange. I'll be this is left over from testing of some kind. They probably just imported a random list to test some function. –  Matt Apr 13 '12 at 22:21
show 10 more comments

3 Answers

I found a related github repo but don't know if its official or from some ROM developer. From the source the file heads_of_state.txt is listed under IME but has been removed in the latest commit (the only other commit). The commit message is "Deleted uneeded LG's Calibration apk". I can't conclude anything from this but maybe this will be helpful.

share|improve this answer
add comment

Just found this strange python script that is included in the XT9. Note that it uses the 'heads_of_state.txt' file as input for something. Seems like a sorting script or something.

share|improve this answer
    
I think that's the pastebin i used to post the mdb.py contents in this comment –  Andres Apr 19 '12 at 16:21
add comment

i searched the internet for it, and the file seems is for developers testing purpose, this file can be found in other platforms either. i found it in: Python Android PHP


seems like foo bar case

share|improve this answer
    
Please provide a link, I didn't find any references to such a list being used for testing. Though it indeed does look a lot like foo bar case. –  Ilari Kajaste Apr 19 '12 at 6:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.