Okay. Since a lot of people are starting to link to this thread when people have problems with the hardware keyboard, I thought I would change this post to a guide instead
This guide is using ADB. Guide to root explorer method: http://forum.xda-developers.com/showpost.php?p=8971685&postcount=33 (Credits to the original poster).
1. Paste the following lines in a CMD (windows) or Terminal (mac) and it's assumed that you have root
Code:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
cp /system/usr/keyboard-config/keyprint.xml /sdcard/keyprint.xml
Now you have the keyprint.xml on your SD Card. Open it with your favorite text editor (On your computer).
You will get a file looking like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--
*********************************************************************
* ____ _____ _ *
* / ___| ___ _ __ _ _ | ____|_ __(_) ___ ___ ___ ___ _ __ *
* \___ \ / _ \| '_ \| | | | | _| | '__| |/ __/ __/ __|/ _ \| '_ \ *
* ___) | (_) | | | | |_| | | |___| | | | (__\__ \__ \ (_) | | | | *
* |____/ \___/|_| |_|\__, | |_____|_| |_|\___|___/___/\___/|_| |_| *
* |___/ *
* *
*********************************************************************
* Copyright 2010 Sony Ericsson Mobile Communications AB. *
* All rights, including trade secret rights, reserved. *
*********************************************************************
-->
<!--
Keyprint name: QWERTY Swedish/Finnish
-->
<keyprint>
<script name="cyrillic" keylayout="cyrillic"/>
<script name="greek" keylayout="greek"/>
<script name="latin" keylayout="qwerty-no-dk"/>
</keyprint>
It's the line
Code:
<script name="latin" keylayout="qwerty-no-dk"/>
We're interested in. "qwerty-no-dk" represents your hardware keyboard layout.
This can be changed to anything found in the layouts folder.
You can see the avaliable languages by typing the following commands (I assume you started a new CMD or terminal)
Code:
adb shell
su
cd /system/usr/keyboard-config/layouts
ls
Now you get a list of all the avaliable languages in your firmware. And can change the keyprint.xml file accordingly.
When you're done, save the file. It's now time to upload it again.
And again, type the following commands, in a new CMD or Terminal.
Code:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
cd /system/usr/keyboard-config/
rm -r keyprint.xml
cp /sdcard/keyprint.xml /system/usr/keyboard-config/keyprint.xml
Now you need to reboot your phone, and you'll have the new hardware layout
ENJOY!
(Oh, and if there's any errors in this guide, please tell me. This is done out of my memory.)
Original post said:
Hey!
I've changed my build.prop file to a NG2 code yesterday, and got the 1.2 update for my X10 mini pro.
However, now the keyboard layout of the hardware keyboard is swedish or something. I want it to be danish!
Æ becomes ä
Ø becomes ö
But å is right.
What file/files should I look in for the config?
I've got danish language on the phone, it's just the layout for the hardware keyboard that's wrong.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=7827223&postcount=88
vlissine said:
http://forum.xda-developers.com/showpost.php?p=7827223&postcount=88
Click to expand...
Click to collapse
hmm thanks. but it didn't work
I've got the file, and as I thought it said swedish / finish layout.
It looked like this:
Code:
<keyprint>
<script name="cyrillic" keylayout="cyrillic"/>
<script name="greek" keylayout="greek"/>
<script name="latin" keylayout="qwerty-se-fi"/>
</keyprint>
I've tried changing it to:
Code:
<keyprint>
<script name="cyrillic" keylayout="cyrillic"/>
<script name="greek" keylayout="greek"/>
<script name="latin" keylayout="qwerty-dk"/>
</keyprint>
didn't work.
Then I tried:
Code:
<keyprint>
<script name="cyrillic" keylayout="cyrillic"/>
<script name="greek" keylayout="greek"/>
<script name="latin" keylayout="qwerty-dan"/>
</keyprint>
And still no luck
Any ideas?
How about qwerty-da?
thekindladies said:
How about qwerty-da?
Click to expand...
Click to collapse
nope
Checked the folder Layouts inside the keyboard-config folder. And in there there's a layout called qwerty-se-fi (like it was when I pulled the keyprint.xml the first time), and there's one called qwerty-no-dk and i've tried changing the keyprint file to qwerty-no-dk, but still no luck :S
nevermind.. played around with the files, and now it works.. don't know what I did
But thanks for your help!
and I was just about to tell you I was going to try it out on my phone. I might do it anyway. I might be asking for your help
thekindladies said:
and I was just about to tell you I was going to try it out on my phone. I might do it anyway. I might be asking for your help
Click to expand...
Click to collapse
hehe.. You just do that
think the trick is to delete the original keymap file from the phone before copying. and not just overwriting.
And maybe to do a restart immediatly after, and selecting the right language (again) in the settings..
That's what I did when it worked
I simply moved my modified file to the keyboard-config folder with root explorer and it got overwritten. I now definitively have a qwerty keyboard. Tell me, where are those elusive Danish letters supposed to be?
ok, found them. though i didn't need to change the language in settings. lovely. i shall certainly not be keeping azerty =D
thekindladies said:
ok, found them. though i didn't need to change the language in settings. lovely. i shall certainly not be keeping azerty =D
Click to expand...
Click to collapse
haha
maybe that's not what did the trick then.. As said, I don't know what I did
change in the last of the 3 lines the "qwerty-se-fs" value to any name found in ./layout/ (without .xml added to the name of course)
(change description as well if you like)
delete keyprint.xml before copying modified keyprint.xml
don't know if deleting is necessary, but works definately
good work guys!
greets Mo
Mooozer said:
change in the last of the 3 lines the "qwerty-se-fs" value to any name found in ./layout/ (without .xml added to the name of course)
(change description as well if you like)
delete keyprint.xml before copying modified keyprint.xml
don't know if deleting is necessary, but works definately
good work guys!
greets Mo
Click to expand...
Click to collapse
can you please be a bit clearer?
which files do we change?
he is talking about the keyprint.xml in system/usr/keyboard-config folder and the keyboard layout file (e.g. qwerty-se-fi.xml) in the system/usr/keyboard-config/layouts folder.
check the layouts that are already present in the layouts subfolder. if the one you need is already there, simply edit the keyprint.xml file to change the line before last to match the layout you need.
i have an azerty keyprint but if i needed the qwerty-se-fi layout, then i'd change the line <script name="latin" keylayout="azerty"/> to <script name="latin" keylayout="qwerty-se-fi"/>. there is another line where AZERTY comes up, but you don't actually need to edit that one, since it is only a comment and not a proper code.
now, if you need a layout that is not already present on the phone, you can edit a copy of an existing one in the layout subfolder.
i in the end kept my azerty keyboard with some modifications to suit my needs, like
<key id="16"
primaryNormal="a" primaryShifted="A"/>
associatedNormal=""" associatedShifted="""
<key id="17"
primaryNormal="z" primaryShifted="Z"
associatedNormal="ž" associatedShifted="Ž"/>
and so on.
it is fairly simple but make sure you overwrite the original keyprint.xml file with the modified one otherwise the system will still be reading that one instead of the new file.
i am still on android 1.6. i don't know if the paths are the same in 2.1.
this trick doesnt work for me
at default i get the swedish on the keyprint, it messed up with the hardware keyboard espesially with the comma, dot, ? and so on. and then i modified the keyprint
from qwerty-se-fi to qwerty-en
reboot
hey its still like that....didn't work HELP
casablank0,
check the file again to verify that the changes were saved. i did exactly the same thing using root explorer and it works.
i did, in fact i've tried many times, reboot many times....
didn't work....
totally confused
maybe you could attached or paste the content of the file here so others can help out
thekindladies said:
he is talking about the keyprint.xml in system/usr/keyboard-config folder and the keyboard layout file (e.g. qwerty-se-fi.xml) in the system/usr/keyboard-config/layouts folder.
check the layouts that are already present in the layouts subfolder. if the one you need is already there, simply edit the keyprint.xml file to change the line before last to match the layout you need.
i have an azerty keyprint but if i needed the qwerty-se-fi layout, then i'd change the line <script name="latin" keylayout="azerty"/> to <script name="latin" keylayout="qwerty-se-fi"/>. there is another line where AZERTY comes up, but you don't actually need to edit that one, since it is only a comment and not a proper code.
now, if you need a layout that is not already present on the phone, you can edit a copy of an existing one in the layout subfolder.
i in the end kept my azerty keyboard with some modifications to suit my needs, like
<key id="16"
primaryNormal="a" primaryShifted="A"/>
associatedNormal=""" associatedShifted="""
<key id="17"
primaryNormal="z" primaryShifted="Z"
associatedNormal="ž" associatedShifted="Ž"/>
and so on.
it is fairly simple but make sure you overwrite the original keyprint.xml file with the modified one otherwise the system will still be reading that one instead of the new file.
Click to expand...
Click to collapse
that was very clear...thank you man.
but still no success here...
keyprint already says qwerty-en and that xml is in my layouts folder but its like the system is still reading the qwerty-se-fi layout!
i'm gonna try editing the qwerty-se-fi.xml to reflect the qwerty-en layout and see if it works...
*no go...
it's as if it's reading another keyprint.xml somewhere...
are all the ones editing the keyprint.xml here on 2.1?
Related
First root the phone.
http://forum.xda-developers.com/showthread.php?t=824788
Then fix the layout.
http://forum.xda-developers.com/showpost.php?p=7827223&postcount=88
That´s all, folks!
I can't change my layout.
My layout code is: <script name="latin" keylayout="qwerty-se-fi" />
Any ideas to change it?
I'm from portugal...
EDIT
Forget it, just needed to restart the phone
Hey Guys,
Im opening this topic here as Im not allowed yet to post in development section.
I recently flashed my SK17i with the newest firmware.
Now the HW keyboard is in qwerty layout.
Anyone knows how to change it back to qwertz?
I tried the terminal tutorial and the Rom Manager app from the thread in development section, but both dont work for me. Even after rebooting layout stays qwerty...
Sent from my SK17i
pal follow this method
h/w keyboard fix
root your phone, mount sys as writable, copy & change the xml file just using the notepad. after this paste it again.
path given in the above thread.
Phone is already rooted.
What exactly do I have to change in the xml file?
I guess it is what the "busybox sed... " command would do?
But what do I change in that file if I do it manually?
I already looked at that file but I dont really get how it works...
Would be great if someone would tell me in more detail.
Thanks
<?xml version="1.0" encoding="qwertz"/>
<Script name="cyrillic" keylayout="cyrillic"/>
<Script name="greek" keylayout="greek"/>
<Script name="hebrew" keylayout="hebrew"/>
<Script name="latin" keylayout="qwertz"/>
<Script name="thai" keylayout="thai"/>
</Keyprint>
This is what is in the file right now. Layout is qwerty.
So what am I to change to get qwertz?
Sent from my SK17i
if you have root explorer, you dont need use command line.
copy keyprint.xml on your sd-card
edit keyprint.xml with notepad++ (or other)
replace qwerty by which you want (azerty, qwertz...)
save file
now, copy keyprint.xml from your sdcard and replace/erase keyprint.xml in system/...
restart your phone
done
I used es file explorer to do this job , thus below mentioned steps are according to that
# root your phone
# open es file explorer & grant root access & mount system as writable from settings menu (see attached screenshot)
# now go to the following path - system/usr/keyboard-config & copy keyprint.xml to your sd card & move it to your desktop for edit (you can edit from your phone also if you have any editor for it) [to go to system folder press the star icon on top left hand side of the window of es file explorer]
# modify the latin line - <Script name="latin" keylayout="your region lang"/>
# save the xml file & put it back to the system folder. restart your phone. & voila!! you got your usual keyboard
I hope it helps
I know how to edit files and use root explorer thats not the problem.
But I dont know what (else) to change in the xml file. I postet its contents in my post above.
As you can see it already states latin = qwertz. still the layout is qwerty.
The term qwerty does not even show up anywhere in that file...
I also rebooted quite some times now
Is there maybe another thing which has to be edited?
upload your original xml file & let us know which firmware you used in your phone
As hotdude said the only thing you needed to change is the latin line
Your xml file is not correct beacause you have "<?xml version="1.0" encoding="qwertz"/>"
instead of <?xml version="1.0" encoding="utf-8"?/>
look mine :
Code:
<?xml version="1.0" encoding="utf-8"?>
<Keyprint>
<Script name="arabic" keylayout="arabic"/>
<Script name="cyrillic" keylayout="cyrillic"/>
<Script name="greek" keylayout="greek"/>
<Script name="hebrew" keylayout="hebrew"/>
<Script name="latin" keylayout="azerty"/>
<Script name="thai" keylayout="thai"/>
</Keyprint>
just replace azerty by qwertz
Still no luck...
The file looks like this now:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Keyprint>
<Script name="cyrillic" keylayout="cyrillic"/>
<Script name="greek" keylayout="greek"/>
<Script name="hebrew" keylayout="hebrew"/>
<Script name="latin" keylayout="qwertz"/>
<Script name="thai" keylayout="thai"/>
</Keyprint>
But still got qwerty layout...
I even tried to backup qwerty-en.xml file and replace it with renamed qwertz.xml but still no change in Layout...
Of course I rebooted after every change I made.
I guess I will have to take a look into the older german firmware how it is done there...
EDIT: Firmware is the Generic Trade United Kingdom 4.0.2.A.0.42 from Wotan Server.
That's weird i have the same firmware (the UK one from wotan)
my physical keyboard is azerty when change the xml file to qwertz it's working
Edit: Your code is still not correct remove the "/" from this line :
<?xml version="1.0" encoding="utf-8"?/>
Hope for you it will work
The "/" was just a typo it is not in the actual file on the phone...
Could you be so kind to upload your complete .xml keyprint.xml file?
Maybe I messed mine up somehow...
Thank you very much.
Yes
I uploaded the keyboard-config folder in attachement
The Arabic line is missing the XML file, perhaps that's the cause that the ycript isn't running properly? I've just changed my layout from qwerty-dk back to qwertz without problems.
Thank you so much peexl
My .xml file was really messed up.
Mine looked like:
<Script name="latin" keylayout="qwertz"/>
And the correct version is:
<Script keylayout="qwertz" name="latin"/>
Dont know how it got that wrong as it was that way for every language, maybe something was not flashed right...
But anyhow IT WORKS NOW
Thanks to everyone who posted to help
and special thanks to peexl for posting your files ^^
Hi,
In France, the 4th Mobile Operator, FREE, is launching a wifi access for mobile phone. This access is relayed by all the Adsl Box from FREE ADSL.
The SSID of this Wifi Access is "FreeWifi_secure" and it is protect by WPA EAP-SIM.
FREE is solding some android phones with the ability to configure EAP-SIM but they do not share the changes they made it on their Roms.
I use an EVO 3D GSM with KingIceCobra3D 1.2. And i found a simple method to connect to this wifi.
In the file:
/data/misc/wifi/wpa_supplicant.conf
Code:
adb shell cat /data/misc/wifi/wpa_supplicant.conf
ctrl_interface=wlan0
update_config=1
device_type=10-0050F204-4
config_methods="push_button keypad"
[COLOR="Red"]network={
ssid="FreeWifi_secure"
key_mgmt=WPA-EAP IEEE8021X
eap=SIM
priority=5
}
[/COLOR]
Add theses Lines in red
Carefull to preserve the rigths of this file after the modification
1) Get the File and rename it to wpa_supplicant.conf
2)
Code:
adp push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
adb shell chown 1000:1010 /data/misc/wifi/wpa_supplicant.conf
adb shell chmod 660 /data/misc/wifi/wpa_supplicant.conf
adb shell ls -l /data/misc/wifi/wpa_supplicant.conf
-rw-rw---- 1 1000 1010 272 May 17 09:10 /data/misc/wifi/wpa_supplicant.conf
adb shell cat /data/misc/wifi/wpa_supplicant.conf
ctrl_interface=wlan0
update_config=1
device_type=10-0050F204-4
config_methods="push_button keypad"
network={
ssid="FreeWifi_secure"
key_mgmt=WPA-EAP IEEE8021X
eap=SIM
priority=5
}
FXJumper.
Just checked on mwakious3Drom 4.0 ... works great
remerciements?
tuxstang said:
Just checked on mwakious3Drom 4.0 ... works great
Click to expand...
Click to collapse
I would like +1 on my "thank meter" and you will my first fan ;-)
merci,
fx
Hi Fxjumper,
I'm really interesting in your solution.
I don't find data/misc ...
Can I create it or have I to use a specific file manager.
I have tried with "file manager" and "file expert"
Thanks for your help
Optimus 2X - CM7 Temasek Kang -104
mgl2 said:
Hi Fxjumper,
I'm really interesting in your solution.
I don't find data/misc ...
Can I create it or have I to use a specific file manager.
I have tried with "file manager" and "file expert"
Thanks for your help
Optimus 2X - CM7 Temasek Kang -104
Click to expand...
Click to collapse
Use a root file browser. Root Explorer. Also, be sure to mount it as RW (advanced options)
Thank u for your help.
a) All right : I put the wpa_supplicant.conf into my phone but now i can't activate wifi due to an error
b) what the second code is for ? (what have i to do with this code ?)
thx
Edit : a) it's Ok now after editing the file : i don't have to replace the initial text but to add the red text from fxjumper (i'm an idiot cause that's what he said )
The B) point isn't resolve : what is the code for and when have i to put it inside ?
Hello,
The second code is an example to install the wpa_supplicant.conf file. This replaces your ssid configured.
Your solution is preferable, because you do not remove your existing configuration but add the SSID "FreeWifi_secure".
Sincerely,
fxjumper said:
Hello,
The second code is an example to install the wpa_supplicant.conf file. This replaces your ssid configured.
Your solution is preferable, because you do not remove your existing configuration but add the SSID "FreeWifi_secure".
Sincerely,
Click to expand...
Click to collapse
It works for you????
I did it and it can t connect to the network but it s trying now...
Any idea?
Precisions
(Google traduction --- sorry)
After a few questions in Private Message, here is a method from a blank file and edit it.
i) file format (dos or unix encode)
ii) to file permissions
This is how I propose to proceed
1) recovering the file on the computer
2) we change
3) upload it on the mobile
4) we check the consistency of the file (right)
------------------------
It is left
------------------------
1) I assume the phone is Rooted
we will save the file wpa_supplicant.conf that derail and recreate one:
Code:
adb shell
cd /data/misc/wifi
cp-a wpa_supplicant.conf wpa_supplicant.conf.sav
rm wpa_supplicant.conf
exit
Switch OFF/ON the wifi
Copy the file on the computer
pull adb shell /data/misc/wifi/wpa_supplicant.conf wpa_supplicant.conf
2) To modify the file I suggest you use notepad++
http://download.tuxfamily.org/notepa....Installer.exe
Edit the file, and add at the end
network = {
ssid = "FreeWifi_secure"
key_mgmt = WPA-EAP IEEE8021X
eap = SIM
priority = 5
}
save
3) is the upload
Code:
adb push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf.new
4) It checks the credentials and the owner and the old file
Code:
adb shell
cd /data/misc/wifi/
ls -l wpa_supplicant.conf
----> -rw-rw ---- 1 1000 1010 185 May 20 5:31 p.m. wpa_supplicant.conf
We crush our file
Code:
cat wpa_supplicant.conf.new > wpa_supplicant.conf
This should solve our problem of right and permissions
we check again:
Code:
ls -l wpa_supplicant.conf
----> -rw-rw ---- 1 1000 1010 185 May 20 5:31 p.m. wpa_supplicant.conf
Sincerely,
Another way, as we most use a custom rooted rom, is to use a rooted filemanager.
For exemple, i use ES File Explorer, set so it accesses /data RW, then edit the file with ES's editor. No need to set back file's permissions.
tuxstang said:
Another way, as we most use a custom rooted rom, is to use a rooted filemanager.
For exemple, i use ES File Explorer, set so it accesses /data RW, then edit the file with ES's editor. No need to set back file's permissions.
Click to expand...
Click to collapse
And it works for you??????
I did it and it can t connect....
Who have it working?????? and what did you do????
B_e_n said:
And it works for you??????
I did it and it can t connect....
Who have it working?????? and what did you do????
Click to expand...
Click to collapse
Hello B_E_N,
In private message, you said you are using a motorola milestone xt720 under cronosx 2.3.7, a cyanogen mod 7 customized.
Now i sent you a patch with /system/framework/com.orange.authentication.simcard.jar
We are waiting your test ...
Sincerely,
CM9 nightlies + SGS
Hello,
I just tried this modification, but cannot find a way to make it work...even though I doublecheck both the permission and the content of the file
For information, I'm running CM9 nightlies for my Samsung Galaxy S.
Until now it doesn't work for me ... even with rom toolbox. Permissions and owners are checked and ok.
Next try : via adb & androisd sdk.
o2x - cm7 - FREE
One more thing : no more error message but wifi try to connect without result ...
o2x - cm7 - FREE
B_e_n said:
And it works for you??????
I did it and it can t connect....
Who have it working?????? and what did you do????
Click to expand...
Click to collapse
Here's how i proceede from ground up on my EVO 3D, with Mwakious, Predator and KingCobra ICS roms.
1/ go in settings and select FreeWifi_secure
2/ set a lock PIN as requested
3/ switch off WiFi
4/ open ES File Explorer
5/ check "Up to Root", "Root Explorer" and "Mount FileSystem" in ES File Explorer settings
6/ navigate to /data/misc/wifi
7/ edit wpa_supplicant.conf
8/ save
9/ switch on WiFi and select FreeWifi_secure
10/ unset lock PIN
Hope it helps.
it was that easy?????
should work on all rooted phone so
works like a charm on my evo
Don't work with my phone...
How do you change owners parameters with ES explorer ?
Regards.
o2x - cm7 - FREE
Hi,
maybe you can use an alternate method on post #11 in
http://forum.xda-developers.com/showthread.php?t=1639437&page=2
what's your phone by the way ?
I'm using CM7.2 on a Nexus One.
I edited the file with ES Explorer, saved, activated wifi...
But doesn't work... It tries to connect but fails.
Hi all,
I've just reverted to 2.1.1.Clean.0.0 v6 because other ROMs seem to be too slow (laggy, ..., whatever) and while I'm configuring It I tweak the keyboard layout (not the keyprint) in order to have the physical keyboard covering all useful characters used in *NIX shells (eg., connect via SSH to a server with your mimmi).
I don't know if there's someone who still use 2.1 based ROM (I don't know if It could work on newest ROMs); in that case here are the changes:
Code:
[...]
<key id="16"
primaryNormal="q" primaryShifted="Q"
associatedNormal="[" associatedShifted="{"/>
<key id="17"
primaryNormal="w" primaryShifted="W"
associatedNormal="]" associatedShifted="}"/>
<key id="18"
primaryNormal="e" primaryShifted="E"
associatedNormal="<" associatedShifted=">"/>
[...]
<key id="24"
primaryNormal="o" primaryShifted="O"
associatedNormal="/" associatedShifted="\\"/>
[...]
<key id="30"
primaryNormal="a" primaryShifted="A"
associatedNormal="^" associatedShifted="$"/>
<key id="31"
primaryNormal="s" primaryShifted="S"
associatedNormal="|" associatedShifted="&"/>
<key id="32"
primaryNormal="d" primaryShifted="D"
associatedNormal="`" associatedShifted="%"/>
[...]
<key id="44"
primaryNormal="z" primaryShifted="Z"
associatedNormal="~" associatedShifted="~"/>
[...]
<key id="40"
primaryNormal="'" primaryShifted="""
associatedNormal="-" associatedShifted="_"/>
[...]
You could look the meaning of "&<NAME>;" syntax right here: http://en.wikipedia.org/wiki/List_o...eferences#Character_entity_references_in_HTML.
That's the complete XML:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--
*********************************************************************
* ____ _____ _ *
* / ___| ___ _ __ _ _ | ____|_ __(_) ___ ___ ___ ___ _ __ *
* \___ \ / _ \| '_ \| | | | | _| | '__| |/ __/ __/ __|/ _ \| '_ \ *
* ___) | (_) | | | | |_| | | |___| | | | (__\__ \__ \ (_) | | | | *
* |____/ \___/|_| |_|\__, | |_____|_| |_|\___|___/___/\___/|_| |_| *
* |___/ *
* *
*********************************************************************
* Copyright 2010 Sony Ericsson Mobile Communications AB. *
* All rights, including trade secret rights, reserved. *
*********************************************************************
-->
<!--
Keylayout name: qwerty-en
-->
<keylayout>
<!-- First row -->
<key id="16"
primaryNormal="q" primaryShifted="Q"
associatedNormal="[" associatedShifted="{"/>
<key id="17"
primaryNormal="w" primaryShifted="W"
associatedNormal="]" associatedShifted="}"/>
<key id="18"
primaryNormal="e" primaryShifted="E"
associatedNormal="<" associatedShifted=">"/>
<key id="19"
primaryNormal="r" primaryShifted="R"
associatedNormal="1" associatedShifted="1"/>
<key id="20"
primaryNormal="t" primaryShifted="T"
associatedNormal="2" associatedShifted="2"/>
<key id="21"
primaryNormal="y" primaryShifted="Y"
associatedNormal="3" associatedShifted="3"/>
<key id="22"
primaryNormal="u" primaryShifted="U"
associatedNormal="*" associatedShifted="*"/>
<key id="23"
primaryNormal="i" primaryShifted="I"
associatedNormal="+" associatedShifted="+"/>
<key id="24"
primaryNormal="o" primaryShifted="O"
associatedNormal="/" associatedShifted="\\"/>
<key id="25"
primaryNormal="p" primaryShifted="P"
associatedNormal="prefix:@" associatedShifted="prefix:@"/>
<!-- Second row -->
<key id="30"
primaryNormal="a" primaryShifted="A"
associatedNormal="^" associatedShifted="$"/>
<key id="31"
primaryNormal="s" primaryShifted="S"
associatedNormal="|" associatedShifted="&"/>
<key id="32"
primaryNormal="d" primaryShifted="D"
associatedNormal="`" associatedShifted="%"/>
<key id="33"
primaryNormal="f" primaryShifted="F"
associatedNormal="4" associatedShifted="4"/>
<key id="34"
primaryNormal="g" primaryShifted="G"
associatedNormal="5" associatedShifted="5"/>
<key id="35"
primaryNormal="h" primaryShifted="H"
associatedNormal="6" associatedShifted="6"/>
<key id="36"
primaryNormal="j" primaryShifted="J"
associatedNormal="#" associatedShifted="#"/>
<key id="37"
primaryNormal="k" primaryShifted="K"
associatedNormal="(" associatedShifted="("/>
<key id="38"
primaryNormal="l" primaryShifted="L"
associatedNormal=")" associatedShifted=")"/>
<key id="14"
meta="META_DEL" allowRepeat="true"/>
<!-- Third row -->
<key id="44"
primaryNormal="z" primaryShifted="Z"
associatedNormal="~" associatedShifted="~"/>
<key id="45"
primaryNormal="x" primaryShifted="X"/>
<key id="46"
primaryNormal="c" primaryShifted="C"/>
<key id="47"
primaryNormal="v" primaryShifted="V"
associatedNormal="7" associatedShifted="7"/>
<key id="48"
primaryNormal="b" primaryShifted="B"
associatedNormal="8" associatedShifted="8"/>
<key id="49"
primaryNormal="n" primaryShifted="N"
associatedNormal="9" associatedShifted="9"/>
<key id="50"
primaryNormal="m" primaryShifted="M"
associatedNormal="0" associatedShifted="0"/>
<key id="51"
primaryNormal="," primaryShifted=";"
associatedNormal=";" associatedShifted=";"/>
<key id="52"
primaryNormal="." primaryShifted=":"
associatedNormal=":" associatedShifted=":"/>
<key id="28"
meta="META_ENTER"
primaryNormal="\n" primaryShifted="\n"
associatedNormal="\n" associatedShifted="\n"/>
<!-- Fourth row -->
<key id="56"
meta="META_ALT_LEFT"/>
<key id="42"
meta="META_SHIFT_LEFT"/>
<key id="214"
primaryNormal="prefix:?" primaryShifted="!"
associatedNormal="!" associatedShifted="!"/>
<key id="57"
primaryNormal=" " primaryShifted=" "
associatedNormal=" " associatedShifted=" "/>
<key id="15"
primaryNormal=" " primaryShifted=" "
associatedNormal=" " associatedShifted=" "/>
<key id="40"
primaryNormal="'" primaryShifted="""
associatedNormal="-" associatedShifted="_"/>
<key id="216"
meta="META_SYM"/>
<!-- Extra keys -->
<key id="103"
meta="META_DPAD_LEFT" allowRepeat="true"/>
<key id="108"
meta="META_DPAD_RIGHT" allowRepeat="true"/>
</keylayout>
You could copy It to "/system/usr/keyboard-config/layouts/" directory (backing up the original into current local directory):
Code:
pc ~$ adb pull /system/usr/keyboard-config/layouts/qwerty-en.xml .
pc ~$ adb push qwerty-en.xml /sdcard/
pc ~$ adb shell
mimmi /$ su -
mimmi /# ash
mimmi /# mount -o remount,rw /system
mimmi /# cp /sdcard/qwerty-en.xml /system/usr/keyboard-config/layouts/
mimmi /# mount -o remount,ro /system
mimmi /# exit
mimmi /# exit
mimmi /$ exit
"ash" execution is optional: I use It because of the tab-completion
I use "qwerty-en.xml" as keyprint, but you could adapt to yours as well
Cheers,
ff0000.it
it an easy and a fine tweak that i have been using too.
i always wondered why the & and % wasn't on the HW-keyboard when so meny blue-key combinations are not used. I have put & to blue+S and % to blue+X.
some one should make a little app to costumize the HW-keyboard
Emperor.dk said:
it an easy and a fine tweak that i have been using too.
i always wondered why the & and % wasn't on the HW-keyboard when so meny blue-key combinations are not used. I have put & to blue+S and % to blue+X.
some one should make a little app to costumize the HW-keyboard
Click to expand...
Click to collapse
If you'd have asked 6 weeks ago... I'd have tried as it was summer but school tomorrow as for the idea, its great. Stuff like the pipe and tidle are needed for SsH and other terminal stuff.
X10man
Sent from my U20i using xda premium
x10man said:
If you'd have asked 6 weeks ago... I'd have tried as it was summer but school tomorrow as for the idea, its great. Stuff like the pipe and tidle are needed for SsH and other terminal stuff.
Click to expand...
Click to collapse
For SSH sessions and shell scripting you need those extra characters indeed... I'm not quite an app-guy, I still prefer editing configuration file and seeing Android packaging things like the framework is one of the baddest crap I've seen on Android (after being based mostly on Java and XML) but that's a bit off-topic .
Cheers,
ff0000.it
I haven't understud very well, but I need the ITALIAN keyboard layout... I saw this tread http://forum.xda-developers.com/showthread.php?t=1582023 but there isn't anything....
so, you have done what i'm looking for?
fraliup said:
I haven't understud very well, but I need the ITALIAN keyboard layout... I saw this tread http://forum.xda-developers.com/showthread.php?t=1582023 but there isn't anything....
so, you have done what i'm looking for?
Click to expand...
Click to collapse
Nope, I simply add extra characters to certain buttons of the physical keyboard.
Besides, I'm italian , but due using GNU/Linux and most of the time being in front of a terminal I rely on the English layout.
Anyway, your link doesn't point to the layout itself, they use the wrong term; those are the keyprints (if I'm right they collect all valid layouts for the device) and I'm using qwerty-en that should fit well on your device too (my mimmi has been purchased in Italy, and that keyprint is right).
If you miss accents I think you should configure the right language.
All of this depends on what ROM you're using
Cheers,
ff0000.it
input method
ff0000.it said:
Nope, I simply add extra characters to certain buttons of the physical keyboard.
Besides, I'm italian , but due using GNU/Linux and most of the time being in front of a terminal I rely on the English layout.
Anyway, your link doesn't point to the layout itself, they use the wrong term; those are the keyprints (if I'm right they collect all valid layouts for the device) and I'm using qwerty-en that should fit well on your device too (my mimmi has been purchased in Italy, and that keyprint is right).
If you miss accents I think you should configure the right language.
All of this depends on what ROM you're using
Cheers,
ff0000.it
Click to expand...
Click to collapse
ok.. I try to be more clear, and I will write you a PM..
I use this rom : http://forum.xda-developers.com/showthread.php?t=1504637
In other roms there is the stock input method, but in my rom there is the xperia s one... so when I use the physical keyboard, it makes some force close, don't use the blue bottons and the accents.....
so I need the stock input method... and I think also layout
thank for your help
fraliup
fraliup said:
ok.. I try to be more clear, and I will write you a PM..
I use this rom : http://forum.xda-developers.com/showthread.php?t=1504637
In other roms there is the stock input method, but in my rom there is the xperia s one... so when I use the physical keyboard, it makes some force close, don't use the blue bottons and the accents.....
so I need the stock input method... and I think also layout
thank for your help
fraliup
Click to expand...
Click to collapse
You use SEMC debrand engine? The keyboard is the main bug in that ROM and can't be fixed with a simple keyprint/layout that are available for others.
X10man
Sent from my U20i using xda premium
x10man said:
You use SEMC debrand engine? The keyboard is the main bug in that ROM and can't be fixed with a simple keyprint/layout that are available for others.
X10man
Sent from my U20i using xda premium
Click to expand...
Click to collapse
yes, but this wasn't write clear in the rom page...
with the istallation of the stock imput method , the problem isn't solved? if I don't use the xperia s keboard, it doesn't maatter !
or do you think It won't work?
Works flawlessly on mini CM10 4.0.1 x).
Thanks a lot dude .
I need help on creating an app which requires root access.
Purpose of this app
1) Able to access a file in root/data/data/*APP XYZ*/*THIS FILE*
2) Generate a random string of number
3) Replace the specific string in *THIS FILE* with the randomly generated number
4) Saves *This File*
Right now I can do it manually but it is rather tedious. Was thinking if it would be possible to create an app to do this automatically with one click.
__________________________________________________________________________
After typing the above, I was thinking that maybe a shell script would do just fine.
Yeah a script would simply be more than enough !
#!/system/bin/sh
set number=$RANDOM
echo "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
*random unimportant stuff*
<string name="uuid">302$number-abcdefghijk</string>
</map>
" > /data/data/com.app/shared_prefs/app.xml
For some reason this script fails to run.
I want to change the uuid string but it doesnt seem to want to run.