Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
heien
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 23
Join Date: Jan 2007
Location: Fredensborg
Default Remapping hardware keyboard on rooted u20i. Where to look? :)

Hi all.

As subject states im looking for information about where i should look for altering the keyboard mapping on my u20i. I've tried looking in /system/usr/, but cant seem to find the right file.

Help would be appriciated.

regards, Heien.
The Following User Says Thank You to heien For This Useful Post: [ Click to Expand ]
 
aron.sjoberg
Old
#2  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Dec 2009
Location: Stockholm
I am also very interested in this!

My swedish X10 Mini Pro have ' as the alt symbol on the e-key. This symbol is almost never used and I would like it to be remapped to " instead...
 
aron.sjoberg
Old
#3  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Dec 2009
Location: Stockholm
Would it not be possible to edit and replace the qwerty.xml-files in system/usr/keyboard-config/layouts?

For example, in my swedish qwerty-se-fi.xml-file I have
Quote:
<key id="18"
primaryNormal="e" primaryShifted="E"
associatedNormal="&apos;" associatedShifted="&apos;"/>
Would it work if I change it to
Quote:
<key id="18"
primaryNormal="e" primaryShifted="E"
associatedNormal="&quot;" associatedShifted="&quot;"/>
and replace the original file on the phone?

However, I don´t really know how to copy and overwrite files (it didn´t work with a file explorer on the phone itself).

When I use "adb push qwerty-se-fi.xml /system/usr/keyboard-config/layouts" I get "Permission denied".

When I try "adb remount" I get "remount failed: Operation not permitted".

If I try through adb shell it still do not work:

Code:
D:\tools>adb shell
$ su
su
# adb push qwerty-se-fi.xml /system/usr/keyboard-config/layouts
adb push qwerty-se-fi.xml /system/usr/keyboard-config/layouts
adb: not found
The qwerty-se-fi.xml-file is in the tools-folder. The phone have USB debugging activated.
 
fenrisf
Old
#4  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Dec 2007
Location: Móstoles
Try this:

D:\tools>adb shell
$ su
su
# adb push qwerty-se-fi.xml /system/usr/keyboard-config/layouts/qwerty-se-fi.xml
adb push qwerty-se-fi.xml /system/usr/keyboard-config/layouts/qwerty-se-fi.xml
 
aron.sjoberg
Old
(Last edited by aron.sjoberg; 5th August 2010 at 05:06 PM.)
#5  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Dec 2009
Location: Stockholm
Hmm... I still get the "adb: not found" error.

Also tried "mount -o rw,remount /dev/block/mtdblock0 /system" before.
 
aron.sjoberg
Old
#6  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Dec 2009
Location: Stockholm
Got some nice help on a swedish forum with the commands and was successful in edit and replace the qwerty-se-fi.xml-file in /system/usr/keyboard-config/layouts.

This did not, however, result in a different layout on the keyboard, so I assume there is more to this then just edit the single qwerty.xml-files.
 
The Solutor
Old
#7  
The Solutor's Avatar
Senior Member
Thanks Meter 68
Posts: 792
Join Date: Dec 2006
Location: Turin
mount the system partition rw
install busybox on the phone

then use cp -f (force) to copy the files back and forth

http://forum.xda-developers.com/show...4&postcount=38
 
zegoo
Old
#8  
zegoo's Avatar
Member
Thanks Meter 5
Posts: 50
Join Date: Feb 2010
D:\tools>adb shell
$ su
su
# adb push qwerty-se-fi.xml /system/usr/keyboard-config/layouts
adb push qwerty-se-fi.xml /system/usr/keyboard-config/layouts
adb: not found


adb is a windows command, not a shell command on U20i !

You just have to do that:
Connect your phone to the PC, only in charge, your
D:\tools>adb push qwerty-se-fi.xml /sdcard
D:\tools>adb shell
$ su
# mount -o rw,remount /dev/block/mtdblock0 /system
# cp -r /sdcard/ qwerty-se-fi.xml /system/usr/keyboard-config/layouts
# mount -o ro,remount /dev/block/mtdblock0 /system
# reboot


It should work now !
 
2be
Old
#9  
Junior Member
Thanks Meter 1
Posts: 12
Join Date: Aug 2010
Quote:
Originally Posted by aron.sjoberg View Post
Got some nice help on a swedish forum with the commands and was successful in edit and replace the qwerty-se-fi.xml-file in /system/usr/keyboard-config/layouts.

This did not, however, result in a different layout on the keyboard, so I assume there is more to this then just edit the single qwerty.xml-files.
aron: I flashed my phone and didn't think about backup. Could you please post the swedish files so I can get swedish keys ÅÄÖ to function again. (im from Sweden too)

thanks
 
aron.sjoberg
Old
#10  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Dec 2009
Location: Stockholm
Of course! I am on the road right now but will try and post the files later this evening!

Sent from my U20i using XDA App

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more