Can't remap hardware key to APP_SWITCH - Galaxy S 4 Q&A, Help & Troubleshooting

Hi,
I'm recently trying to change the hardware key layout to get something closer to a vanilla experience ie :
- BACK on the hardware menu key
- HOME on the hardware home key
- APP_SWITCH on the hardware back key
Mapping the hardware menu key to the BACK functionality worked fine, and of course the hardware home key works already as I want.
But I can't manage to have the APP_SWITCH working on the back key (or on any other key in fact).
What I did to get to this result is editing sec_touchkey.kl (In /system/usr/keylayout) like this :
key 139 BACK
key 158 APP_SWITCH
key 102 HOME
key 217 SEARCH
Does any one has any idea why APP_SWITCH doesn't work ?
And if you have any workaround to get to the same result it would be fine for me too
Thanks !
PS : I'm on PAC man ROM on a I9505

Related

finding softwart which can simulate specfic key code

is there such a program that i can set the key code to a key
when i press the key, it's like that i am pressing another key
by the way, where can i get the benq P50 key code list?
Have a look at VJKeyPress on my website.
V

FN key remapping (function key softkey keyboard)

Hi all!
does anybody have an idea how to add some characters to the keys when the FN key is pressed? For example I wabt to have a special character when I press FN,a or FN,b. Is there any registry entry which holds the values of the already assigned keys?
thanx for your help

Milestone 2 physical keyboard mod

I am trying to edit my motorola milestone 2 physical keyboard a little. What I wan't to achieve is to make the up, down and left dpad buttons become å, ä and ö. I rooted my phone and with root explorer I managed to edit the umts_milestone2-keypad.kl and qwerty.kl files from:
Code:
...
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
...
to something along with:
Code:
...
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 Z WAKE_DROPPED
key 106 X WAKE_DROPPED
...
to be able to see if I am editing the files I want to edit, but when I reboot my phone up, down, left and right still does the same thing. Am I doing it wrong or am I editing the wrong files?
Thanks!
Edit: This might fit better in android development :S.
Anyone found a solution for this?! I've been trying to search everywhere how to reconfigure the physical qwerty for ä ö and å. Long press is not an option for me.
qemil said:
Anyone found a solution for this?! I've been trying to search everywhere how to reconfigure the physical qwerty for ä ö and å. Long press is not an option for me.
Click to expand...
Click to collapse
A while back I was trying to edit the keyboard with no luck. On the Droid 2 if you long press certain buttons you can bring up a box with those letter variants. I assume that's what you meant by longpress is no option, though.
I don't know if there is a language setting or something you can edit within the settings for the keyboard on the Milestone maybe?
The language settings won't do it.
Probably only way is through rooting and somehow editing the keyboard mappings. Haven't found a single instruction how to do this though.
This is a major issue for me since I'd like to go for a hardware qwerty device to achieve greater typing speeds but this long-press-and-select-from-screen method is too slow and kinda kills the benefit of having a physical keyboard.
Did you edit all of the files? I don't have my droid 2 yet, but I've done this on my nook color and am looking at my droid x. Did you edit qwerty.kl, cdma_droid2-keypad.kl, and maybe sholes-keypad.kl, too? The buttons weren't remapped on my nook until I'd edited all of the files the same way. Hope this helps.
Could somebody please try out what RMHisCOOL suggests? I'll buy this phone as soon as I get confirmation that the hardware keyboard can be remapped.
qemil said:
Could somebody please try out what RMHisCOOL suggests? I'll buy this phone as soon as I get confirmation that the hardware keyboard can be remapped.
Click to expand...
Click to collapse
If nobody else does, I definitely will when I get my D2. Sent today from VA to MD so I should have it in my hands by Friday for sure, I would imagine.
RMHisCOOL said:
If nobody else does, I definitely will when I get my D2. Sent today from VA to MD so I should have it in my hands by Friday for sure, I would imagine.
Click to expand...
Click to collapse
Thank you so much! I'll be checking this thread daily.

disabling capactive keys

does anyone know what keys to disable in the generic.kl to get the back, home and recents keys to be disabled?
#254 is recents
#158 is back
-PiLoT- said:
does anyone know what keys to disable in the generic.kl to get the back, home and recents keys to be disabled?
Click to expand...
Click to collapse
254 APP_SWITCH
158 BACK
102 HOME
You neglected to tell us what ROM you are using, so it's not possible to give specific advice as to which .kl file(s) to edit. Keys may be defined in multiple .kl files and ASOP and TW for instance use different paths to resolve key assignments. Perhaps peruse all of the keylayout files starting with /system/usr/keylayout/gpio-keys.kl
.
fffft said:
254 APP_SWITCH
158 BACK
102 HOME
You neglected to tell us what ROM you are using, so it's not possible to give specific advice as to which .kl file(s) to edit. Keys may be defined in multiple .kl files and ASOP and TW for instance use different paths to resolve key assignments. Perhaps peruse all of the keylayout files starting with /system/usr/keylayout/gpio-keys.kl
.
Click to expand...
Click to collapse
ah brilliant. im using stock. couldnt find info anywhere. dug up 158 and 254 by tinkering. 102 is mov_ home though
well apparently i found out its not 102. but its 172 in /system/usr/keylayout/gpio-keys.kl
158 and 254 in generic.kl

[Guide] Remaping headset keys in Generic.kl

OK guys ! after dozen experiments , perhaps someone will find it usefull....
If you use headsets, you can remap volume down and volume up buttons into next music track or previous music track when you edit keys like this :
key 114 MEDIA_PREVIOUS
key 115 MEDIA_NEXT
also....if you like to remap middle headset button you have to edit key 226 into whatever you want..
I remaped it into pause button like this ;
key 226 MEDIA_PLAY_PAUSE
Now you have complete control over your favourite player.
Remember to do backup of original Generic.kl before !
that's it for now and more when I find out something handy.
.

Categories

Resources