[Q] Keylayout file Generic.kl locked in latest stable CM build? - Xperia Z1 Compact Q&A, Help & Troubleshooting

Hello everyone.
Yesterday I've upgraded my Cyanogenmod OTA to the latest stable version (M10 "11-20140916-SNAPSHOT-M10-amami).
Because CM does not detect my JAYS Five Headset by default, I had changed the "Generic.kl" file to be able to use the volume buttons.
With the new CM version installed, this file was again in its original state.
So I edited it again changing those lines:
Code:
key 257 BUTTON_2 changed to: key 257 VOLUME_UP
key 258 BUTTON_3 changed to: key 258 VOLUME_DOWN
This is resulting in the keys 257, 258 returning the action "ACTION_UNKNOWN" and the power button not working.
Is it possible that the Generic.kl file is somehow locked by the system in the latest CM? Maybe MD5 check or similar?
Here is my complete edit of the Generic.kl file: http://pastie.org/9571201
Hopefully someone of you is able to help me with this or I'll have to downgrade my system again.
Working headset buttons is crucial for me.
Thanks in advance,
McFarlane

Related

Holding # key to change profile

Anyone have found a way to change the profile pressing and holding the # key in the HTC Rom?
I came from Tmo version to HTC German, and now the # key isn't working.
Anyone pleasee!
So I'll give it up!
I tried playing a Long_Camera.lnk shortcut in \Windows folder containing a link to the Mute.exe file. That didn't work.
JAmerican
JAmerican said:
I tried playing a Long_Camera.lnk shortcut in \Windows folder containing a link to the Mute.exe file. That didn't work.
JAmerican
Click to expand...
Click to collapse
It's seems so easy
Maybe you should try to replace the xT9 of the HTC edition. Or it may be the problem of the keyboard driver kbbdr.dll. Sorry, don't quite remember the exact name.
There was a workaround for that going around a while back, wish I had a link as I got it to work, but lost the instructions -- so if I have to 'start over', I don't know what to do again. I believe it was on Howard Forum -- did you try there? Just remember googling it and coming up with the instructions to get that 'number-sign-to-vibrate-profile' feature going in a HTC ROM...
surfing10 said:
Anyone have found a way to change the profile pressing and holding the # key in the HTC Rom?
I came from Tmo version to HTC German, and now the # key isn't working.
Click to expand...
Click to collapse
Another option is to assign a speed dial hotkey to quickapp.exe, or if you use phoneAlarm, "paWakeup.exe -pm" will do exactly what you're looking for.

[MOD] Lang characters for hardware keyboard v0.3 [NOR|ESP]

Hi all!
After searching the wide web of the world I didn't find anyone who cared to program the special characters for nordic keyboards (æ,ø and å). The norwegian stock ROM has got these mapped to own keys, but I've never liked to use stock ROMs, so I was stuck with the "long press method".
New! Now Spanish is also supported!
If you screw up your phone trying to adb push, cp -f these files I'm not responsible yada yada yada (nothing wrong should happend, really)
What I've done is taking the modified files from teferi, and added my own editing for the quick keys (as I had to make place for the chars I removed from jkl) and the special chars of course.
Confirmed on my G2 (running the Sense ROM from MoDaCo), but should work for the Desire Z too! Any guinea pigs out there?
Code:
*Norwegian*
version 0.3:
-Fixed issue with , and ; didn't work on hardware keyboard.
version 0.2:
Quick change to the "Z" button, since "`" is used in command substitutions.
-alt-z is still "^", alt-shift-z = "`"
version 0.1:
-alt+j,k,l = æ,ø,å (alt+shift gives capitol letter).
- make ".com" a TAB key, as it ought to be
- left softkey is now "\" "|" "/"
- right softkeys are now "[" "(" "<" and "]" ")" ">"
- alt-z is now "^"
Code:
*Spanish version*
Version 0.2
-Corrected filenames for the new files, and included the right "originals".
Version 0.1
[Key] - [Shift + key] - [FN + key] - [Shift + FN + key]
a - A - ! - á
e - E - 3 - é
i - I - 8 - í
o - O - 9 - ó
u - U - 7 - ú
n - N - = - ñ
? - ¿ - " - ¡
. - < - : - >
INSRUCTIONS:
*Add -wwe after "keypad" in the filename for both files if your running a Desire Z based ROM. CM and G2-based will work without -wwe*
- download file
- unzip *.zip
- adb push vision-keypad.kl /sdcard/
- adb push vision-keypad.kcm.bin /sdcard/
- adb shell
- su (if you don't have ro.secure turned off)
- mount -o remount,rw /dev/block/mmcblk0p25 /system
- cp -f /sdcard/vision-keypad.kl /system/usr/keylayout/
- cp -f /sdcard/vision-keypad.kcm.bin /system/usr/keychars/
- reboot
Btw... backup of original keymapping is included... just rename them without .orig, and follow the procedure above
Code:
Guide to make your own keys:
Download a hex editor (i prefer xvi32), open the "kcm.bin", and alter the symbols shown in the attached .jpg. If you wish to alter the "main" char of the key, you can change that in the .kl file with notepad (check the difference between esp and nor to see an example).
Thanks to teferi for the base files
Novek said:
I can make files for other special characters if someone wants that... or you could simply HEX-edit the files yourself
Click to expand...
Click to collapse
Great work! But, since I'm not Norwegian, I'm not going to try it
However, I'd love to see a modification of the original English Desire Z Sense keymap with just a few modifications.
Here's a picture of the Desire Z keyboard
http://www.theunwired.net/media/news/htc_desire_z_front_open.jpg
1) Getting á, é, í, ó and ú by Shift + FN + a, e, i, o, u (I think it's Shift + Alt in the G2 keyboard). Currently I have to long press the vowel key and then touching the screen. Not efficient.
2) Getting ¿ by using Shift + ? , and maybe ¡ by pressing Shift + FN + ?.
Would it be possible?
If you need the original files or whatever, just tell me
Thank you in advance.
I would need to get the original desire z keymapping files as I've just the g2... they are a little different with the non-letter keys.
Sent from my HTC Vision using XDA App
Here it is
I've just uploaded a file with the two directories, keychars and keylayout.
I think it's interesting that there are several kcm.bin files and several kl files, for different languages, but I don't know how to select them.
Thank you again.
Actually... You can't keep both ! and "á" at the "A" key.... or at least you can't get the "á" capitol that way...
It would then be a, A, !, á available on that key.
Do you want me to remove the !, or...
I don't mind having to long press A to get the Á, I don't use it that often
cool. this is useful for me. I don't got the Nordic version so thanks
Novek said:
Actually... You can't keep both ! and "á" at the "A" key.... or at least you can't get the "á" capitol that way...
It would then be a, A, !, á available on that key.
Do you want me to remove the !, or...
Click to expand...
Click to collapse
Novek, have you had time to look over the Spanish version?
No rush, just curious.
I've actually haven't had time today but I'll try to find some time tomorrow or wednesday...
Just found a bug in the norwegian mod (the comma button doesn't work) so I'll fix that tomorrow too...
Sent from my HTC Vision using XDA App
/edit
New version up with the , and ; working...
bra jobba!! my friend just go a desire z and he was looking for this
Novek said:
I've actually haven't had time today but I'll try to find some time tomorrow or wednesday...
Click to expand...
Click to collapse
As I said, no rush... And thank you for your work
I would like to state that these files /system/keymap/* and /system/kaychar/* might be affecting the capacitive buttons belove the screen also. This will not brick anyone's phone (probably ) but will make it hard to do anything unless fixed.
What I understand:
everyone should use only the files that are meant for their specific DZ version and modify that.
I.E. G2 files on Scandinavian DZ renders capacitive buttons useless. And if u dont have adb access nearby it can be hard to do anything
Novek, I hadn't seen your private message. I already answered and I'm willing to try your alternative files
By the way, does anybody know why there is a lot of different files in /system/usr/keychars and keylayout? I mean, there's a vision-keypad.kcm.bin and a vision-keypad-esn.kcm.bin.
It would seem that the esn file could be useful for us Spanish speakers, but I don't know how to use it.
Hi Novek.
Thanks a lot for the Spanish version, but I'm afraid I'm doing something wrong.
I substituted the original files for the ones you have uploaded (I tried both doing it via Root Explorer and following your guide using adb) and when I press Shift + FN + N I still get = instead of ñ. The same with the rest of the keys.
I think I've read somewhere that the Desire Z uses the vision-keypad-wwe.kcm.bin and vision-keypad-wwe.kl file instead of the ones without wwe, could that be it?
I would assume that you can just rename the files I posted...
/edit
If it works after renaming to wwe, I'll change the uploaded files..
I'll also re-do the norwegian keymapping with the DZ-files tomorrow - removing the files for G2 now.
Sent from my HTC Vision using XDA App
Novek said:
I would assume that you can just rename the files I posted...
/edit
If it works after renaming to wwe, I'll change the uploaded files..
I'll also re-do the norwegian keymapping with the DZ-files tomorrow - removing the files for G2 now.
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Takk veldig mye!
I just renamed the files and it worked. Thank you very much
Edit 1. Mmm.. it worked at first, but now when I use Shift+FN+key I get Á, É, Í... instead of á, é, í.
Edit 2. Nevermind... I get the capitalized version when the autocorrection kicks in, at the begining of a sentence
?
Hi!
Im Hungarian so i am very interested on this application. lots of time I need áéóöőüű!!! Im a begginer in the android world.
Could everyone help for me pls!
I wanna know is this appl. works in the original ROM or not?
And could you write a step by step guide for the installation?
Bests, David!
Hi again, Novek! Just noticed that my SYM key is now working like a shortcut key When I press it, I get the "Keyboard shortcuts: Would you like to assign a shortcut to the hardware keys?" screen.
Could you make another version with this fixed? Thank you in advance
daveeer said:
Im Hungarian so i am very interested on this application. lots of time I need áéóöőüű!!! Im a begginer in the android world.
Could everyone help for me pls!
I wanna know is this appl. works in the original ROM or not?
And could you write a step by step guide for the installation?
Click to expand...
Click to collapse
In the first posting, it pretty much is a step-by-step guide. Is there any particular part that's confusing you ? Don't be afraid to ask specific questions about things. It's not dumb to ask questions, it's dumb to just try something when you don't understand what you're doing and it could mess up your phone !
Yes, as far as I know this should work with the original ROM.
It's not really clear for me, how can I make my own layout?
So which file included "which key is which letter" table, and how can i edit it?

[Q] How to disable home button?

Hi
I want to disable it, how can I do that ?
I'm on ICS 4.0.4
Please if you know tell me
Thanks in advance
Xperia-Play said:
Hi
I want to disable it, how can I do that ?
I'm on ICS 4.0.4
Please if you know tell me
Thanks in advance
Click to expand...
Click to collapse
Not trying to be a jerk here, but you could just not push the home button.
Open /system/usr/keylayout/keypad-zeus.kl in a plain-text editor
Change the line "key 102 HOME" to "key 102 "
Keep the file permissions at 0644 (rw-r--r--)
Make a backup first, because if you mess something up, most of your buttons will stop working
???
Profit

Need Help:How to make Lumia830 use virtual button bar?

Hello,my Lumia 830's "Back" button didn't work.So I want to use virtual button bar by editing registry.but I can't find this key:HKLM\SOFTWARE\Microsoft\Shell\NavigationBar\SoftwareModeEnabled
Maybe it has changed......so,where can I find it?
Sorry my English is bad....
OS Version is 15184.36002
Thank you
This is firmware version. What other values did you find under NavigationBar?
Why not add this key using custom pfd or any other app?
augustinionut said:
This is firmware version. What other values did you find under NavigationBar?
Why not add this key using custom pfd or any other app?
Click to expand...
Click to collapse
Thank you.
Other values seem like resolution…1080*1920、1366*768…when I open it,shows:values:back,hide,search,start.and key:height,separatorheight
I used interop tool 1.8beta to add this key,but it have disappeared when I rebooted
Create the key and it works
You have restored ndtksvc path? Use custom pfd, type of value is integer dword 32bit., value = 1.
augustinionut said:
You have restored ndtksvc path? Use custom pfd, type of value is integer dword 32bit., value = 1.
Click to expand...
Click to collapse
Yes!It Works.Thank you very much!
I added it by interop tool,I chose "string"type last time.
titi66200 said:
Create the key and it works
Click to expand...
Click to collapse
Thank you.It works now
Unable to edit registry on L720
Tim.G said:
Thank you.It works now
Click to expand...
Click to collapse
Hi TIm,
I want to enable virtual navigation bar on L720 running WP 8.1 (Denim). I have installed Custom PFD 3.0 and I am able to see the registry values. However, when I am trying add a key, it gives an error message that key is wrong or no permission. Kindly suggest what should I do?
Tim.G said:
Thank you.It works now
Click to expand...
Click to collapse
Dude, I have this problem too. The back, home, and browser buttons do not work, I have already restored a firmware and have upgraded pro win 10. but it did not work again. Aura that is a possibility to activate a virtual button?

volume controls

I have no practicality to make myself a module with magisk to increase the volume by acting in / vendor / etc mixer_paths_cdp.xml and other files where there is the entry: volume controls, could someone help me?
p.s
sorry, j have wrong section, but in Mi 10 T lite

Categories

Resources