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.
Related
HTC TOUCH HDThe device stuck in animated gif. Try to do hardreset, first become bootloaderscreen and then a message "No image file"
Please Help
What a hell of a job with these small buttons!
Thanks in advance!
this way
On a powered off phone hold down the volume down and the volume up button and power on at the same time. After a couble of secunds you will get a warning... You can now let go of the buttoms. if you want to proceed with the hard-reset you press wolume up buttom otherwise you press something else..
Rememeger you will delete all you data by hard-resseting your phone
luckyuser said:
HTC TOUCH HDThe device stuck in animated gif. Try to do hardreset, first become bootloaderscreen and then a message "No image file"
Please Help
What a hell of a job with these small buttons!
Thanks in advance!
Click to expand...
Click to collapse
I had some issues as well the first time I wanted to hard-reset my HD. But after several times, I got it. I laid down my HD, pressed the upper and lower volume button at the same time with my right hand, and pressed the power button at the same time with my left hand, and it will come.
Just try several times, and you'll get the same. But try to backup some part before if it's possible!
The one you've done (I guess) is the bootloader, which will appear when you press the volume down and power button at the same time.
GreenFrog
I have a Dutch device, so I don't know exactly how it's called in the English rom. But this is what I did:
Goto 'Settings' => 'System' and then something called 'Opslag wissen' in the Dutch rom. In english it would be something like 'Delete data'.
When you do that you are asked to enter "1234" and press the YES button. After that, the default settings are restored and all data is deleted.
Now this is my issue: I had installed several programs on the memory card and they are stil there, which is good. They even work after the reset, which is also good. But I can't put them in the programs menu or programs tab anymore, which is not good.
Does anyone know how to solve this? Or do I have to get rid of all the programs and reinstall them again?
Grtz,
Thijs
Re-install the applications..
Hey.. I think the easyest is to re-install the applications... Just because you choose to install them om the memorycard, the software stills place som files in windows system files...
backup
just to be sure i always have a map on external storage with all the cab files i installed. in case of hard reset ik can always reinstall everything whereever i am.
thijs84 said:
I have a Dutch device, so I don't know exactly how it's called in the English rom. But this is what I did:
Goto 'Settings' => 'System' and then something called 'Opslag wissen' in the Dutch rom. In english it would be something like 'Delete data'.
When you do that you are asked to enter "1234" and press the YES button. After that, the default settings are restored and all data is deleted.
Now this is my issue: I had installed several programs on the memory card and they are stil there, which is good. They even work after the reset, which is also good. But I can't put them in the programs menu or programs tab anymore, which is not good.
Does anyone know how to solve this? Or do I have to get rid of all the programs and reinstall them again?
Grtz,
Thijs
Click to expand...
Click to collapse
you can re-create shortcuts in Programs folder with Resco Explorer just by tapping and holding down and then selecting "create shortcut". hope it helps
GreenFrog said:
I had some issues as well the first time I wanted to hard-reset my HD. But after several times, I got it. I laid down my HD, pressed the upper and lower volume button at the same time with my right hand, and pressed the power button at the same time with my left hand, and it will come.
Just try several times, and you'll get the same. But try to backup some part before if it's possible!
The one you've done (I guess) is the bootloader, which will appear when you press the volume down and power button at the same time.
GreenFrog
Click to expand...
Click to collapse
@GreenFrog Thanks for the quick reply!
Now i know what I was doing wrong, I pressed the upper and lower volume button at the same time pressing the power button, but I'm instantly hold the powerbutton down, instead of pressing it one's!
But the mean problem for all this misery was a corrupted SD-Card (There were no more Apps installed, something had blow them away,the directory Programfiles was complet empty), the device couldn't start up Windows Mobile. When I remove the SD-card everything works fine again, except that i have to re-install all apps.This looks very strang to me, never had such an issue before!
the trick is to hold both the volume keys down and to press the power button just once. It will not work if you hold down the power button while the device is turning on.
Hope this helps
This also stumped me for a while.
The difference between going to the bootloader and doing a hard reset is that to do hard reset, you press BOTH the up and down side of the volume key whereas to go to bootloader, you press only the lower side of the volume key. In both cases, you press the power button.
Remember to do this after shutting down the device.
The approach of going into setting and do a clear storage is fine as long as the device is not frozen up yet.
Hope this makes it clearer for everyone.
skreis said:
you can re-create shortcuts in Programs folder with Resco Explorer just by tapping and holding down and then selecting "create shortcut". hope it helps
Click to expand...
Click to collapse
You beat me to it, but yes, listen to the man, as he knows what he's talking bout
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.
Hi all,
My phone rebooted and I lost all custom settings (like text size, custom ringtone etc.), while retaining other apps data. This was simple to repair
Problem is, since then my "Home" button doesn't execute launcher anymore. If I long-press, it shows tasks list, so the button is working, but short press does.. nothing.
I installed Home2 Shortcut - doesn't work either.
Cleared TouchWiz settings - no change
Cleared "Application preferences" - no change
Installed Nova Launcher - works fine, but won't return to home screen on "Home" press.
I guess some simple setting got corrupted, but I've no idea where to look for that. I'd rather not reflash the phone just because of this one button, but it's quite nice to be able to go to Home screen
Any advice?
Try this:
1. Long-press home button and select the "cheese"
2. Go to the last tab called "Clear default Settings"
3. You will have there something called: TouchWiz Home. Clear it.
4. Go back to the start screen and long-press home button again.
Joku1981 said:
Try this:
1. Long-press home button and select the "cheese"
2. Go to the last tab called "Clear default Settings"
3. You will have there something called: TouchWiz Home. Clear it.
4. Go back to the start screen and long-press home button again.
Click to expand...
Click to collapse
Thanks for suggestion, but I already tried that. Home button still doesn't react to short press.
Actually, it does react to short press - when I want to wake up the phone. But it doesn't run launcher.
I have exactly the same problem. Button physically works fine will click to show lock screen when off , double press for s voice ( when on ) and hold for task manager. it just wont single press to actually go home..grrrrrrrr
Stasheck said:
Thanks for suggestion, but I already tried that. Home button still doesn't react to short press.
Actually, it does react to short press - when I want to wake up the phone. But it doesn't run launcher.
Click to expand...
Click to collapse
---------- Post added at 09:01 AM ---------- Previous post was at 08:41 AM ----------
ok solution for me was a full master reset via recovery. All good now.
tinentiuk said:
I have exactly the same problem. Button physically works fine will click to show lock screen when off , double press for s voice ( when on ) and hold for task manager. it just wont single press to actually go home..grrrrrrrr
Click to expand...
Click to collapse
Yeah, I figure a reset/reflash will do, but it's another couple hours (which I don't have ) to restore everything after that
I got the same problem
I was planning to upgrade firmware anyway though
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