Hey, hopefully someone can help me.
I just changed some parts of the file Generic.kl in the system\usr\keylayout folder to disable the wakeup funtion of the power button, when phone is locked. I wanted to use only the home button for this. I didn't work as I hoped and I replaced the edited one with the one of the backup. Now every change should be replace to original state, but I lost the funtionality of back and menu buttons.
The thing is, during the changes I used them very often and they worked. But after I used my backup, which is 100% the original one, it doesnt seems to work.
I have no idea, what did happen. anyone any idea?
Related
Hi all!
Suddenly today I've noticed something...I never use the BACK hardware key on my diamond. The reason is that this button doesn't seem to make anything different than the HOME button. (of course, I may be wrong! If so, please someone point that difference.) So, the obvious idea came to me: why don't we try to remap this button.
I know that there are apps that do just that (AEBPlus for example) but if you tried these programs you know they use up to 20% of RAM (I'm talking about AEBPlus again). So this is not the best option.
Rather than these 3rd party software, I was thinking to remap the button before the RAM is cocked by means of hard-coding. Sadly for me I do not possess this kind of knowledge so I ask kindly if someone could do this for the community (if it can be done).
I thought that this button could have a similar function as the ALT-TAB but to tell you the truth anything would be better than the original function.
Waiting for your replays...
Or maybe more easier with a registry hack. I am also interested in remapping the back button!
great minds think alike, but not always on the same schedule.
i was just looking into remapping my buttons with something other than AEBplus. i have an HD2, so the built-iin button remapper only gives me control over a long press of the send button; i'm looking into remapping the back button into a short-press "alt+tab" solution and a long-press to open my task manager.
then i searched and found this: forum.xda-developers.com/showpost.php?p=1770782&postcount=1
it's basically noting how you can use shortcut files, renamed and placed in your Windows folder, that remap your buttons. just create a shortcut file and rename it with "long" or "short" button depress followed by an underscore and the documented name of the button, with the standard shortcut ".lnk" filetype, e.g. Long_Send.lnk or Short_Home.lnk. then go into the link properties and set the target to what app you want the button action to open. once built, move the shortcut file to the Windows folder and soft reset the device. et voila.
the only problem is the Back button, specifically. all the other buttons have a single, remappable function when depressed. unfortunately, the Back button is programmed to be "situationally aware" and can perform one of 3 functions based on the situation it's used in. there's an MSDN blog entry here that explains not only the uniqueness of the back button, but how it functions: msdn.microsoft.com/en-us/library/ms912123.aspx
anyways, gonna look into it some more this morning to see how i can remap the sucker with as little resources as possible, if it can be done at all, or how to do it if someone else already has, and in the case of the latter, i'll report back and bump the thread that has the answers.
-oakie
edit: no urls for me yet. fill in your own address bars. :jerkit:
edit 2: AND a 5 minute freeze between posts/edits. at this point, why even bother with registration captchas? or even new registrations at all? sounds like current members and admins would rather turn people off/away than risk a spammer gettin thru. :madjerkit:
Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)
Try using KeynumberTracker from the market. This will give you the correct key number to modify, then get ButtonRemapper from the market and remap the keys....or just edit it yourself and save using root-explorer..
im sure you've noticed that ANY button will unlock the phone when running Hyperdroid. (not to insult) i too, ran into the problem you are describing and found that mashing the physical buttons (any for any reason) just seemed hard on my precious Leo.
i downloaded "screen off and lock" from the market. it IS an ON-screen alternative (and a useful one at that) to trying to remap the physical keys. i simply replaced my launchers contact icon with the 'screen off' one (that way it will show on any home screen) and i simply go to the other end of the spectrum (using the green CALL button) to bring it off standby.
hope this helps. cheers
oh, almost forgot ... "screen off and lock" REQUIRES root!!!
MimKoRn said:
Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)
Click to expand...
Click to collapse
You might want to try editing qwerty.kl also . I was trying to disable the front keys during sleep and at first i only edited the leo-keypad.kl file and that wasnt holding . So i also edited the qwerty.kl file and it worked .
Thanx!
shanman-2 said:
Try using KeynumberTracker from the market. This will give you the correct key number to modify, then get ButtonRemapper from the market and remap the keys....or just edit it yourself and save using root-explorer..
Click to expand...
Click to collapse
Thank you all for prompt answers and useful ideas. I decided to go for the quoted way and it works great for me. Now the call button kills the screen.
I also considered a touch screen alternative as rubledub mentioned (thanx for that), but I wanted to be able to turn off the screen even when I'm not on homescreen, so I went for the first mentioned alternative. However, the idea is cool, so I'll probably get it too, just to have both alternatives at hand.
Thanx a lot again. You probably saved my phone and my nerves.
MimKoRn said:
Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)
Click to expand...
Click to collapse
I simply put lock screen widget on my screen,it s free from market and works great,now i use end key only to boot the phone
Thanks.
elesbb said:
You might want to try editing qwerty.kl also . I was trying to disable the front keys during sleep and at first i only edited the leo-keypad.kl file and that wasnt holding . So i also edited the qwerty.kl file and it worked .
Click to expand...
Click to collapse
I just wanted to say thanks for this post. I was struggling with some button remapping issues and this was the cause. I only edited the keypad.kl and not the qwerty.kl as well.
So thanks again man.
MimKoRn said:
Thank you all for prompt answers and useful ideas. I decided to go for the quoted way and it works great for me. Now the call button kills the screen.
I also considered a touch screen alternative as rubledub mentioned (thanx for that), but I wanted to be able to turn off the screen even when I'm not on homescreen, so I went for the first mentioned alternative. However, the idea is cool, so I'll probably get it too, just to have both alternatives at hand.
Thanx a lot again. You probably saved my phone and my nerves.
Click to expand...
Click to collapse
could you elaborate a bit on that? i dont know where the kwerty.kl resides (yes, i m well versed with editing things in system files with root explorer)
did you find the key number and change with another key number? if so, to set an empty key (that doesnt work on pressing) what do i replace it with?
would be appreciated
why doesnt any one use button remapper it works perfect for me i have my call button set to
shut off screen and as shutdown or restart phone i dont use my end call key for anything now
I wanted to post this as a reply to the thread that described what I tried to do which is posted in the S5 Android Development forum but since I am a newbie it wouldn't let me post there. The thread described how to remap the Capacitive Recents / Menu key so that it becomes a Menu/Recents key (i.e swap the short/long press functions). After making the prescribed edits to generic.kl and gpio-keys.kl, I couldn't figure out how to perform the last step to edit android.policy.jar. After scratching my head for a while I read the rest of the thread and found that you can only do this on a deodexed ROM.
I then went back in and edited the generic.kl and gpio-keys.kl files to the way they originally were. However, after rebooting I found that now neither the Recents/Menu capacitive key nor the Back key are working. When pressed, they light up but nothing else happens. To make matters worse, the Power key does work either. So when the unit turns itself off I now have to pull the battery, then I can press the Power key to boot the phone back up. However, once the phone has booted pressing the power key again does nothing - neither a short nor a long press.
I have looked over the edits to those two files carefully but don't see what I've screwed up. I even copied them to my PC and used Notepad++ to see if anything would be obvious. I have now done everything I can think of with no effect including a complete factory reset.
Can someone upload their working copies of these two files so I can compare to mine and see what I've done? If you have any other theories, I'd appreciate hearing them as well. Thanks in advance!
I was trying to disable the Home key from waking the device up, and I screwed my Generic.kl up as well. I changed it back (but not my gpio-keys.kl) and got the keys working again. The file is attached. Rename and drop the ".c" off of the end (had to do that to make it a valid file to upload).
And, no, I have not had success disabling the home key while the phone is sleeping.
Hello there! As the title indicates, I've ran into a bit of trouble a few minutes ago. While setting up my new replacement S5, I managed to lose both of my soft keys and my power button. While restoring the replacement, everything went smooth (Titanium Backup complete restore, files, settings, Xposed modules, etc.). However, before sliding in my SIM card, I realized there was one more VERY important issue to tackle before my new phone would match my current one...I needed to replace my left soft key from the default recent tabs, to the menu button. No sweat, I did it with my current phone, so this should be cake. Or so I thought. I tracked down the same how-to from before (written verbatim below), edited the file, rebooted, and BOOM, just like that, my soft keys and power button were completely useless. I confirmed I didn't make a typing error, in addition to sending the exact same file from my current phone to the new one, and replacing it with the file that I KNOW works...still a no-go. I even switched the wording back to its original wording. Nothing. Also, although the buttons don't work, the power button DOES work to power the phone back on, but becomes useless again once it boots up. Lastly, the home button still functions perfectly.
If anybody has any ideas, suggestions, similar experiences, they would be greatly appreciated. Both phones are obviously rooted and run 4.4.4. Model Number SM-G900V. I believe the baseband version and build numbers vary between the two though. If those numbers are important, let me know and I'll post them. If there's something else you need, just ask away.
Thank you in advance! Method used below:
To Replace the Recents button with Menu
-Navigate to system/user/keylayout/Generic.kl
-Edit Key 254 from App_Switch to Menu
-Navigate to system/user/keylayout/gpio-keys.kl
-Edit Key 254 from App_Switch to Menu
*solved* feel free to take the thread down. Thank you.
Mattrleaf said:
Hello there! As the title indicates, I've ran into a bit of trouble a few minutes ago. While setting up my new replacement S5, I managed to lose both of my soft keys and my power button. While restoring the replacement, everything went smooth (Titanium Backup complete restore, files, settings, Xposed modules, etc.). However, before sliding in my SIM card, I realized there was one more VERY important issue to tackle before my new phone would match my current one...I needed to replace my left soft key from the default recent tabs, to the menu button. No sweat, I did it with my current phone, so this should be cake. Or so I thought. I tracked down the same how-to from before (written verbatim below), edited the file, rebooted, and BOOM, just like that, my soft keys and power button were completely useless. I confirmed I didn't make a typing error, in addition to sending the exact same file from my current phone to the new one, and replacing it with the file that I KNOW works...still a no-go. I even switched the wording back to its original wording. Nothing. Also, although the buttons don't work, the power button DOES work to power the phone back on, but becomes useless again once it boots up. Lastly, the home button still functions perfectly.
If anybody has any ideas, suggestions, similar experiences, they would be greatly appreciated. Both phones are obviously rooted and run 4.4.4. Model Number SM-G900V. I believe the baseband version and build numbers vary between the two though. If those numbers are important, let me know and I'll post them. If there's something else you need, just ask away.
Thank you in advance! Method used below:
To Replace the Recents button with Menu
-Navigate to system/user/keylayout/Generic.kl
-Edit Key 254 from App_Switch to Menu
-Navigate to system/user/keylayout/gpio-keys.kl
-Edit Key 254 from App_Switch to Menu
Click to expand...
Click to collapse
If rooted, you can use this application
https://play.google.com/store/apps/details?id=com.phoenixstudios.aiogestures&hl=fr
It allows gestures but also to map menu, back and home buttons.
Best regards
Franky
So, I was attempting to remap my keys in order to restore the old menu/recent apps behavior (editing generic.kl), and something went wrong. I lost the use of Volume Down, Back, menu, and Power (?!). The backup I thought I'd made was missing, as well.
I replaced generic.kl with the file provided by @arjundev1 below, erased the cache partition, and rebooted... and got nothing. No change. As it stands, I've used this app to restore functionality to VOLUME_DOWN, MENU, and POWER (I can access APP_SWITCH by pressing the home button again after using it to return to the home screen), but the power button still fails to turn off the screen or present a power menu. Furthermore, in order for this app to restore this function, I have to use its keyboard instead of Hacker's Keyboard or any other full-sized layout.
I know it's a software issue because I use the same power button to turn the phone on (including accessing ODIN or RECOVERY mode), and the aforementioned app even registers the key press if I try to [re-]map it. It just doesn't do anything. I'm currently using either a widget or rom toolbax's rebooter menu to power down or reboot, and another widget to turn off the screen. Everything else on the phone appears to be working normally.
I edited no other files during the original remap attempt; only /system/usr/keylaout/generic.kl
let helped
I help like me.
[updated OP]
Thanks! For some reason, that didn't fix it as I thought it would. I didn't edit any other files. What else could be causing this?
new hope
please set permission rw-r-r
YAY, Progress! Menu, Back, Volume Down- all work as expected. Power wakes the screen and turns it off.
One last thing. Holding down the power button fails to bring up the power menu. What might control this?
Thx
arjundev1 said:
please set permission rw-r-r
Click to expand...
Click to collapse
Thx this worked for me.