[Q][Android-x86] How to add a custom physical keyboard layout? - Android Q&A, Help & Troubleshooting

I'm running Android-x86 on ASUS laptop. I want to add a physical keyboard layout that simulate a gamepad. I know that I can edit Generic.kl to achieve this, but the problem is when I want to type some text, I must restore the original Generic.kl, then reboot, which is inconvenient.
I can add another language layout, for example French, and easily switch back and forth with Ctrl+Space. Since I only use English, the idea is that I will edit some language file to make it simulate gamepad, but I looked in /system/usr/keychars and there's no language-specific file there, only Generic.kcm. So where is these file? Or how can I add a custom keyboard layout?

Kureiji said:
I'm running Android-x86 on ASUS laptop. I want to add a physical keyboard layout that simulate a gamepad. I know that I can edit Generic.kl to achieve this, but the problem is when I want to type some text, I must restore the original Generic.kl, then reboot, which is inconvenient.
I can add another language layout, for example French, and easily switch back and forth with Ctrl+Space. Since I only use English, the idea is that I will edit some language file to make it simulate gamepad, but I looked in /system/usr/keychars and there's no language-specific file there, only Generic.kcm. So where is these file? Or how can I add a custom keyboard layout?
Click to expand...
Click to collapse
I`m looking for these files as well. I know it`s been 6 years (lol), but do you know where I can find the language layouts?
Thanks.

Related

Keyboard setting german?

Hi,
is there a way to change the soft keyboard (displayed when clicking on the keyboard-symbol) from qwety to qwertz ?
I do NOT mean the setting to change it on the hardware-keyboard (registry entry) which works.
I assume the settings are in the registry as well. Any hints?
i also want to know the answer.
i guess it need some new resource file for the setting?
I'm not sure but i think i know the Prob!
I use an external Keyboard with German Layout, the Softkeyboard works with some registry changes.
The external Keyboard use maybe the Registrykey HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD
The important Values are:
"Keyboard SubType"=0
"Keyboard Type"=4
Type 4 is for english, and i don't know the german value, i think it is dangerous to change it to any value, without know how.
Maybe also the prob is the Key:
"DriverName"=keybddr.dll
If it is the problem you must generate a german driver with the SDK!
As i said before, i'am not sure but this are my results and i'am also looking for a solution!
I hope that was a little help!
You could also try Resco Keyboard Pro
I mean Resco Keyboard is a a Softkeyboard,
i have described the problem about german qwertz layout support, for external Hardware Keyboard and that is not the same registry settings like softkeyboard qwertz layout!
The Prob is still the same!
I don't think that the solution for the softkeybord will work on Athena too, but maybe you can find a similar way.
This works for Trinity and Hermes devices, but both have only a QVGA screen.
http://forum.xda-developers.com/showthread.php?t=305811
Looks good, but it don't solve the Problem with an external Keyboard, i mean Hardware USB-Keyboard!
Still qwerty!
I am also very keen to find a solution to this. I am using a Finnish usb:n keyboard and need to have the 'ä' and 'ö' working.

[Q] How to modify EzInput actions?( question)

This is question bout development, so I post it here, sorry if this is wrong sub-forum
Hi everybody.
I work on Bulgarian layout. It works fairly well, but I ad to replace the French layout.To make it work better, i have 2 questions
1) Is it possible to modify the actions of the functional keys (enter, shift, change layout)
AND/OR
2)how can I change/modify the menu layout of the keyboard
(aka
Text input settings
French ->
Phone Keyboard
.....
)
to change at the very least the "French" entry with "Bulgarian"
....
thank you
Well
Modifying the xmlfiles 0C0C.xml and 0D0C.xml. replacing the char values I want, and restarting, I got a fully typing Ezinput keyboard. On the other hand, replacing in 0b0c.xml the char values I want, the layout changes, (I see the chars I want), but when I type, I get the old values.
Does anyone know where are they modified?
Is it not easier to take this Russian keyboard :
http://forum.xda-developers.com/show...12&postcount=2
and modify to Bulgarian layout?

[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:
Undock your Prime (just to be sure)
Open Root Explorer and go to "/system/usr/xt9/keychars/"
Copy the file which represents your keyboard's language (e.g. qwerty-de_DE.kcm for my german Prime dock)
Now go to "/system/usr/keychars/" (note the missing "xt9" in the path)
Mount your system as "read/write" (the little button with the caption "Mount R/W")
Rename the file "asusdec.kcm" to "asusdec.kcm.bak"
Paste your own "qwerty-xy_XY.kcm" file here (the one you copied before)
Rename that file to "asusdec.kcm"
Go to "/system/usr/xt9/keylayout/"
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)
Go to "/system/usr/keylayout/" (again the "xt9" is missing from the path here)
Rename the file "asusdec.kl" to "asusdec.kl.bak"
Paste your own file and rename it to "asusdec.kl"
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.
THX for this MOD
That is right what i needed.
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.
Works Great, thanks.
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.
Thumb keyboard
Striatum_bdr said:
Thumb keyboard
Click to expand...
Click to collapse
Sep thats what seems to be the best.
Oh thank... I always see this mod in my dream
Sent from my Transformer Prime TF201 using xda premium
Worked!
Excellent, thanks! Now I keep my Swiftkey when not docked. Why Asus is forcing us to use their keyboard is beyond me.
Gnopps said:
Excellent, thanks! Now I keep my Swiftkey when not docked. Why Asus is forcing us to use their keyboard is beyond me.
Click to expand...
Click to collapse
Swiftkey doesn't really work very well for me. it glitches up massively when trying in polaris office. But when undocked works fine. wierd....
This worked fine for me until I did the last firmware upgrade. I use Swiftkey as my soft keyboard and now I get its suggestions at the bottom of the screen all the time. Like the user above Polaris Office doesn't work at all when docked.
How can I get rid of Swiftkey when docked and use the true Asus keyboard then, is it only possible with an app?
Sent from my Transformer Prime TF201
Thank you !
Thank you very much for your help, the keyboard problem was really annoying! Now, it works really well.
This works on tf101also but the existing filenames had no d in them
"asusec.kcm"
"asusec.kl"
Many thanks
Sent from my Transformer TF101 using Tapatalk 2
Thank you so much, this was driving me nuts
Diamondback said:
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:
Undock your Prime (just to be sure)
Open Root Explorer and go to "/system/usr/xt9/keychars/"
Copy the file which represents your keyboard's language (e.g. qwerty-de_DE.kcm for my german Prime dock)
Now go to "/system/usr/keychars/" (note the missing "xt9" in the path)
Mount your system as "read/write" (the little button with the caption "Mount R/W")
Rename the file "asusdec.kcm" to "asusdec.kcm.bak"
Paste your own "qwerty-xy_XY.kcm" file here (the one you copied before)
Rename that file to "asusdec.kcm"
Go to "/system/usr/xt9/keylayout/"
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)
Go to "/system/usr/keylayout/" (again the "xt9" is missing from the path here)
Rename the file "asusdec.kl" to "asusdec.kl.bak"
Paste your own file and rename it to "asusdec.kl"
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.
Click to expand...
Click to collapse
Really cool! I'll try it as soon as I get home!
But one question remains for me: on Chrome my keyboard doesn't work properly. I have special characters, since I'm Hungarian, with the proper localized keyboard. My chars (eg. á, ő, ú, etc.) work perfectly in every app, even in the stock browser, but not in Chrome! Really weird stuff! Don't an of you have any ideas why that happens?
Doesn't work on Jelly Bean Any hints
Thanks
Got the kcm and kl file from an old rom and it works now
For those who searched for the "old" keychars, keylayout and xt9 files, I've attached them here.
keychars-xt9_WW_epad-user-9.4.5.30.zip (6.62 MB)
Hi
I try hanz0 way for 4.2 under Androwook but it's not working ...
I used files given by markusmuster.
Any idear ?
Have a nice day.
Totorux
Solved by installing Keyboard Manager on Google play.
Have a nice day
Totorux
totorux said:
Hi
I try hanz0 way for 4.2 under Androwook but it's not working ...
I used files given by markusmuster.
Any idear ?
Have a nice day.
Totorux
Click to expand...
Click to collapse

[Q] Change Layout of Bluetooth Keyboard

I bought the General Keys Bluetooth keyboard (http://www.amazon.de/GeneralKeys-Bluetooth-Mini-Tastatur-iPad-andere-Bluetooth-Geräte/dp/B004HKQ8V4) But it has only the english Layout on my HTC Flyer.
How can i change it?
Are you rooted? If so you might be able to edit "/system/usr/keychars/", other than that I'm not sure. If you install a different language for your keyboard does it switch the character set?
thewadegeek said:
Are you rooted? If so you might be able to edit "/system/usr/keychars/", other than that I'm not sure. If you install a different language for your keyboard does it switch the character set?
Click to expand...
Click to collapse
I am not rooted but i'm not afraid of doing if it will make the keyboard work But i have no idea how to change the "keychars" also if I'd be rooted, you might have to explain that to me
I already used the App External Keyboard (test version) but the only thing that happened was that now some keys (e.g. "s" or "w") start apps and i can't even write with the english layout anymore

Samsung keyboard does not allows me to switch languages...

Hi,
After a long while with the SGS5, I've decided to go back and try the native Samsung keyboard.
I've installed couple of an additional languages but even after those are selected and I go back to the keyboard - I see "English" written on the space bar but there are no arrows on the left and right of it and swiping over the spacebar does not change to any of the languages even if they are selected in the keyboard settings.
I also went and cleared memory and cache of the "Samsung Keyboard" app. Even though it went back to default settings, selecting an additional language did not turn on the left/right arrows and does not let me switch languages...
I saw that couple users had this problem in the past and the solution was (as a workaround) - try other keyboards. I was wondering if anyone faced this issue and if there is a way to fix that?
Thanks,
Try renaming /system/csc/language.xml
Reboot, choose your preferred language in the settings menu. Then see if the language is available to the keyboard.
.
fffft said:
Try renaming /system/csc/language.xml
Reboot, choose your preferred language in the settings menu. Then see if the language is available to the keyboard.
.
Click to expand...
Click to collapse
I don't have language.xml in /system/csc . Can you please re-confirm the directory name?
Thanks.
gilbnx said:
I don't have language.xml in /system/csc . Can you please re-confirm the directory name?
Click to expand...
Click to collapse
There were extensive syntax changes made in 4.4 and it can be challenging to keep track of the old vs new methods. Language.xml would have been for 4.2.2 then. So ignore the advice about language.xml then as the organization has been changed under 4.4.2.
Here are three things you can try.
First try resetting the keyboard language setting. Go the the settings menu
Settings menu > My device > Language and input
and click on the gear icon beside the Samsung keyboard and click reset settings. Now go back and see if you can select the keyboard language you desire.
If not, and it is a single language of interest to you, it will probably suffice on a 900F 4.4.2 ROM to change the default language setting. You can do that by editing /system/csc/customer.xml replacing instances of "en_GB" with the ISO code for your desired language. ISO country codes here. Note that you should use an underscore rather than hyphen and capitalize the country code to the right of the underscore. e.g. en_GB not en-gb.
<DefLanguage>en_GB</DefLanguage>
<DefLanguageNoSIM>en_GB</DefLanguageNoSIM>
If that doesn't work for you or if you want support for multiple languages, then under 4.4.2 then you would likely need to make distributed edits to multiple system apps e.g. settings.apk, systemUI.apk, framework-res.apk. There is a patch thread to do this for Motorola devices here. That won't help you directly but could serve as a template as to what is necessary if you are ambitious.
A more practical approach may be to consider migrating to a custom ROM where the multiple edits to enable multiple language support are already in place e.g. the S5 Phoenix ROM.
.
fffft said:
There were extensive syntax changes made in 4.4 and it can be challenging to keep track of the old vs new methods. Language.xml would have been for 4.2.2 then. So ignore the advice about language.xml then as the organization has been changed under 4.4.2.
Here are three things you can try.
First try resetting the keyboard language setting. Go the the settings menu
Settings menu > My device > Language and input
and click on the gear icon beside the Samsung keyboard and click reset settings. Now go back and see if you can select the keyboard language you desire.
If not, and it is a single language of interest to you, it will probably suffice on a 900F 4.4.2 ROM to change the default language setting. You can do that by editing /system/csc/customer.xml replacing instances of "en_GB" with the ISO code for your desired language. ISO country codes here. Note that you should use an underscore rather than hyphen and capitalize the country code to the right of the underscore. e.g. en_GB not en-gb.
<DefLanguage>en_GB</DefLanguage>
<DefLanguageNoSIM>en_GB</DefLanguageNoSIM>
If that doesn't work for you or if you want support for multiple languages, then under 4.4.2 then you would likely need to make distributed edits to multiple system apps e.g. settings.apk, systemUI.apk, framework-res.apk. There is a patch thread to do this for Motorola devices here. That won't help you directly but could serve as a template as to what is necessary if you are ambitious.
A more practical approach may be to consider migrating to a custom ROM where the multiple edits to enable multiple language support are already in place e.g. the S5 Phoenix ROM.
.
Click to expand...
Click to collapse
Thanks for the detailed suggestion, I did some more digging and found the fix. Apparently, if you are allowing any app to use the "accessibility" features (I'm using Tasker for example), the multi-language option on the Samsung keyboard will not work. Once I turned off the accessibility option for Tasker - the keyboard worked fine. Turned the Accessibility back on and the multi-language gone again.
Luckily, I don't need Tasker to sense any activity related to accessibility so I'm all good but this is probably a long-lasting bug since Galaxy S4 I think; looks like the phone does not like any other app to be able to use these accessibility permissions.
I had the same problem with my Samsung Galaxy S7. I read several threads that said go to Settings and Language and Input but nothing more than that. When ya in Language and Input, go to Virtual Keyboard and then add the languages you want there.
A happy Samsung convert

Categories

Resources