[Guide] Remaping headset keys in Generic.kl - Samsung Galaxy S8+ Guides, News, & Discussion

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.
.

Related

I need help with ViJay key press

Hi VJ, I looked on your list but I cant find the correct #'s for the L and R softkey can you or anyone else help me please. thank you
Chakra: I just wrote appoximately a page's worth of answer why this wasn't possible. Then I had an idea :idea:
It's keys 112 and 113, left and right respectively
I love it when I prove myself wrong...
V
that doesnt seem to be working
What device are you using? 112 and 113 are for the Universal.
V
I have a KJAM
Can someone else test this. I'd be surprised it the Universal and Wizard had different keypresses. Chakra, if no one else has any luck, I'll send you a little program later to help us figure it out. I'm going out tonight, but PM me if I forget.
V
I am using ae button plus 2.1 allong with your vijay key press. I have asigned the right softkey to have three functions one press, two press, and three press. when I use vjkeypress 113 for the first press i get the reaction of the second press. and when I am in anouther program the softkey does nothing. maybee this has to do with ae not vjkeypress. I am just looking for a way to use the right softkey while also using the second and third functions when I want????
Chakra, I think that makes all the difference. I think AE Button Plus is simulating button presses, and VJKeyPress is simulating button presses, and it won't be pretty.
Try it without AE Button first, and then try playing with the order of your keypresses. It's not an ideal solution though I imagine.
V
Ill try it thanks.
For what it's worth... the key codes for an HTC Wizard WIZA200 are:
Volume slider Down : 118 (left side of device, near top)
Volume slider Up : 117 (left side of device, near top)
Comm Manager : 198 (left side of device, very top)
Left soft key : 112
Right soft key : 113
Phone answer : 114
Phone hang-up : 115
The rest are just the regular up/down/left/right/action buttons and buttons 1 through 4 (messaging, internet explorer, voice commands/recorder, camera). Not sure what codes those technically carry.

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.

Can't remap hardware key to APP_SWITCH

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

Categories

Resources