Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Diamondback
Old
(Last edited by Diamondback; 27th January 2012 at 11:09 PM.)
#1  
Diamondback's Avatar
Developer Committee / Senior Moderator / Recognized Developer - OP
Thanks Meter 5098
Posts: 3,775
Join Date: Jan 2010
Default [MOD][HOWTO] Adjust your hardware keyboard's default language

Hey guys,

Currently we have a very annyoing problem with the hardware keyboard. Imagine the following situation:
  • You have a country specific keyboard layout (like a german QWERTZ layout)
  • You don't want to use the pre-installed ASUS on screen keyboard

What happens now is the following:
  • You deselect ASUS' on screen keyboard
  • As soon as you do this, your hardware keyboard loses its custom layout and reverts to a generic QWERTY one

To "solve" this issue you normally need to do the following:
  • Switch to the localized ASUS keyboard once you dock your Prime
  • Switch back to the keyboard of your choice once you undock the Prime

I think I don't have to say that this behaivior is less than optimal.

I played a bit around with the system files and found out how to change the default keyboard layout to what ever you want to have.

Here is the result:
  • I don't need to ever select the ASUS keyboard again
  • I still could use the ASUS keyboard to change the keyboard layout (I could change the hardware layout to QWERTY for example)
  • I finally don't need to hassle around with different keyboards anymore

Okay now enough of that, here is how to do it:

First some facts:
  • We need to replace 2 /system files, so this may break any further OTAs
  • AFAIK the files weren't changed since the first update and normally those files aren't subject to changes, so the risk of breaking OTAs is not that high
  • If you do a backup of those files you can always restore that backup before applying OTAs

Requirements:
  • A rooted Prime
  • Some app to edit the /system partition (e.g. "Root Explorer")
  • The ability to read the entire post and to follow my instructions

Disclaimer: I am not responsible for any damage - software or hardware - you may do to your Prime. Please don't do this mod if you have no idea what I am talking about.

(I used Root Explorer for this, so if you use another app the steps may be a bit different)

So let's get started:
  1. Undock your Prime (just to be sure)
  2. Open Root Explorer and go to "/system/usr/xt9/keychars/"
  3. Copy the file which represents your keyboard's language (e.g. qwerty-de_DE.kcm for my german Prime dock)
  4. Now go to "/system/usr/keychars/" (note the missing "xt9" in the path)
  5. Mount your system as "read/write" (the little button with the caption "Mount R/W")
  6. Rename the file "asusdec.kcm" to "asusdec.kcm.bak"
  7. Paste your own "qwerty-xy_XY.kcm" file here (the one you copied before)
  8. Rename that file to "asusdec.kcm"

  9. Go to "/system/usr/xt9/keylayout/"
  10. Now copy the file you want to use ("qwerty-de_DE.kl" for my german dock) (the file is called the same as the last one you copied, only the extension is different)
  11. Go to "/system/usr/keylayout/" (again the "xt9" is missing from the path here)
  12. Rename the file "asusdec.kl" to "asusdec.kl.bak"
  13. Paste your own file and rename it to "asusdec.kl"

  14. Reboot

After the reboot, dock your Prime and test the results. If you did everything right, you should be able to select a non ASUS keyboard while keeping your custom keyboard layout.

If you want to revert the changes, just delete the two files we changed and rename the backups back to the original name.
Virtuous Ten Studio - Advanced Reverse Engineering Solution
---------------------------------------------------------
Remote Theme Injector - theme your favorite paid apk

Contact the Developer Committee with any questions or concerns regarding the Recognized Developer program.
Mention my name with @Diamondback in any post to easily get my attention.
Please use BB Codes to format your posts.



The Following 21 Users Say Thank You to Diamondback For This Useful Post: [ Click to Expand ]
 
DJ H-Up
Old
#2  
DJ H-Up's Avatar
Junior Member
Thanks Meter 2
Posts: 25
Join Date: Aug 2008
Location: Hamburg
THX for this MOD

That is right what i needed.
__________________________________________________ _______
Smartphone: HTC Desire
ROM: Stock Gingerbread 2.3.3, rooted, S-OFF
Baseband: 32.56.00.32U_5.17.05.23
--
Tablet: ASUS Transformer Prime TF201-1I067A, 64GB, gold
ROM: Stock ASUS Honeycomb 3.2.1, rooted
Build: 9.4.2.11 DE
 
newellj79
Old
#3  
newellj79's Avatar
Senior Member
Thanks Meter 191
Posts: 1,786
Join Date: Jan 2011
Wow. Are you guys the forum police? He posted in the wrong spot. Who freakin cares... Sometimes I think it would do alot of people good to just get out and have some fun.


edit... moderator, feel free to delete this post as it is most assuredly off topic.
 
Striatum_bdr
Old
#4  
Striatum_bdr's Avatar
Senior Member
Thanks Meter 628
Posts: 2,463
Join Date: May 2011
Location: Marseille
Works Great, thanks.
SGS3 I9300 - Various kernels - null_ ROM/Jelly Bam - Philz Recovery

Asus transformer Prime - Team Baked 6 (thanks to craigacgomez) - JB bootloader - TWRP Recovery



 
clouds5
Old
#5  
Senior Member
Thanks Meter 300
Posts: 1,274
Join Date: Feb 2011
Thx for this great mod worked like a charm! And its easy to revert to stock if an OTA comes around. Renaming some files isnt that much of a hassle.

Now which onscreen keyboard would you guys suggest? The original android one is ok but i'm missing the numbers.
Wondering about Battery Calibration?
--------------------------
Asus Transformer Prime, Stock Jelly Bean .15 rooted
Device&Rom: Samsung Galaxy S III | Stock rooted
Radio&Ril: Stock | Stock
Kernel: Stock
 
Striatum_bdr
Old
#6  
Striatum_bdr's Avatar
Senior Member
Thanks Meter 628
Posts: 2,463
Join Date: May 2011
Location: Marseille
Thumb keyboard
SGS3 I9300 - Various kernels - null_ ROM/Jelly Bam - Philz Recovery

Asus transformer Prime - Team Baked 6 (thanks to craigacgomez) - JB bootloader - TWRP Recovery



 
clouds5
Old
#7  
Senior Member
Thanks Meter 300
Posts: 1,274
Join Date: Feb 2011
Quote:
Originally Posted by Striatum_bdr View Post
Thumb keyboard
Sep thats what seems to be the best.
Wondering about Battery Calibration?
--------------------------
Asus Transformer Prime, Stock Jelly Bean .15 rooted
Device&Rom: Samsung Galaxy S III | Stock rooted
Radio&Ril: Stock | Stock
Kernel: Stock
 
Everblue
Old
#8  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Jul 2008
Oh thank... I always see this mod in my dream

Sent from my Transformer Prime TF201 using xda premium
 
Gnopps
Old
#9  
Member
Thanks Meter 4
Posts: 49
Join Date: Aug 2010
Thumbs up Worked!

Excellent, thanks! Now I keep my Swiftkey when not docked. Why Asus is forcing us to use their keyboard is beyond me.
 
geinome
Old
#10  
geinome's Avatar
Member
Thanks Meter 4
Posts: 77
Join Date: Mar 2011
Location: Ipswich
Quote:
Originally Posted by Gnopps View Post
Excellent, thanks! Now I keep my Swiftkey when not docked. Why Asus is forcing us to use their keyboard is beyond me.
Swiftkey doesn't really work very well for me. it glitches up massively when trying in polaris office. But when undocked works fine. wierd....

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

Advanced Search
Display Modes

report this ad
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

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more