Hi,
I`ve got a problem with my Galaxy s3. The powerbutton is broken. Now my mobile starts and, much worth, shut down randomly (or is hanging in a bootloop). I don`t want to repair the hardware as I get a new phone in a month.
Could anyone give me a hint where I can move the whole function from powerbutton to homebutton and finally how to disable the powerbutton completely?
My Device is rooted and I have already disabled the soft buttons because I enabled the onscreen buttons. So I know roughly how to change those things but in this case I don`t know where exactly. There are several "power" in the "generic.kl" file. But not sure which one is the right and more important: how to move the function to homebutton.
If anyone could give me a hint Than I would be more than grateful
Thanks, Sven
55555 said:
Hi,
I`ve got a problem with my Galaxy s3. The powerbutton is broken. Now my mobile starts and, much worth, shut down randomly (or is hanging in a bootloop). I don`t want to repair the hardware as I get a new phone in a month.
Could anyone give me a hint where I can move the whole function from powerbutton to homebutton and finally how to disable the powerbutton completely?
My Device is rooted and I have already disabled the soft buttons because I enabled the onscreen buttons. So I know roughly how to change those things but in this case I don`t know where exactly. There are several "power" in the "generic.kl" file. But not sure which one is the right and more important: how to move the function to homebutton.
If anyone could give me a hint Than I would be more than grateful
Thanks, Sven
Click to expand...
Click to collapse
Hi Sven I can help kind of if you wanted you could turn the power button fucntion off completely while the phone is on to prevent the function to be used but you cant map the functions used by the power button to the home button as far i know if you want to not use the power button while the phone is on you can use this Java code if this might help......
Java
<
KeyguardManager keyguardManager = (KeyguardManager) getSystemService(Activity.KEYGUARD_SERVICE);
KeyguardManager.KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE);
lock.disableKeyguard();
<
and then In Manifest File give this permission inside application tag
<
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"></uses-permission>
<
hope this can be used by you.
Wow, thank you so much! This is a good solution for now. I'll give it a try at this weekend and give feedback. I'm on my way right now.
If anyone else knows another way I would appreciate those ideas too. Thanks!
Related
Hey guys i have a HTC touch pro and my power button keeps going on and off by itself its almost like its stuck it has nothing to do with the button itself cause i have removed the power button but it seem to still do the same thing the pop up comes up "dou you want to turn off device" it happens like every few seconds so i basicaly cannot not do anything for more than a few seconds then it pops up, also when the phone is off it will switch it back on automaticaly. i have installed the remaping key program it has seemed to make it stop but i have lost all my buttons now only touch screen works when it ask me to add a button press and release iv tried but nothing happens in the pop down it says "none" so if there are anyone that can help me with this it will be most appricated and if there are another way of fixing the power button or other programs please let me know and i will give it ago. Many thanks
200gxi said:
Hey guys i have a HTC touch pro and my power button keeps going on and off by itself its almost like its stuck it has nothing to do with the button itself cause i have removed the power button but it seem to still do the same thing the pop up comes up "dou you want to turn off device" it happens like every few seconds so i basicaly cannot not do anything for more than a few seconds then it pops up, also when the phone is off it will switch it back on automaticaly. i have installed the remaping key program it has seemed to make it stop but i have lost all my buttons now only touch screen works when it ask me to add a button press and release iv tried but nothing happens in the pop down it says "none" so if there are anyone that can help me with this it will be most appricated and if there are another way of fixing the power button or other programs please let me know and i will give it ago. Many thanks
Click to expand...
Click to collapse
It looks like you may have a hardware issue (on the board). Did the phone get wet or damaged in any way?
hey thanks for the reply, the phone just started doing it out the blue HTC has replace the mother board 3 times and the problem still occurs i even removed the power button completely and still no luck!
200gxi said:
hey thanks for the reply, the phone just started doing it out the blue HTC has replace the mother board 3 times and the problem still occurs i even removed the power button completely and still no luck!
Click to expand...
Click to collapse
I know that the hardware starts acting funny if it get wet since the contacts for the buttons can short out. I would get HTC to take another look at it. Also, make sure that you are not damaging the device accidentally by crushing it in your pocket or things of that nature.
Hi guys,
The power button on my xperia does not seem to work correctly - it powers my xperia up but that is it. Once on, I can not use the power button to turn the screen off, I have to wait for it to time out..... I also have to pull the battery to switch the phone off :-S
Has anyone had this issue?
Thanks for your help.
Anuj
I have the same problem! ; ;
im searching the whole forum now so if i find anything ill let you know!!
i think that it has something to do with flashing the baseband wrong?
what baseband are you on?
kernel?
and rom?
anujkapila said:
Hi guys,
The power button on my xperia does not seem to work correctly - it powers my xperia up but that is it. Once on, I can not use the power button to turn the screen off, I have to wait for it to time out..... I also have to pull the battery to switch the phone off :-S
Has anyone had this issue?
Thanks for your help.
Anuj
Click to expand...
Click to collapse
I had this issue when I had spare parts installed. I had accidently deactivated the power button in the settings.
it worked
Aphex33 said:
I had this issue when I had spare parts installed. I had accidently deactivated the power button in the settings.
Click to expand...
Click to collapse
i did this and it worked for me!
to clarify its:
Spare Parts > Spare Parts Settings > End Button Behavior > Go To Sleep
So I lied... The whole spare parts thing didn't work for me.
After getting frustrated with this on multiple roms i found a solution.
I'd post the thread that i sort of found it in but i cannot exactly find it.
What i did was edit the es209a_keypad.kl in /system/usr/keylayout (with RootExplorer)
this file maps the hardware buttons on the phone and to what they do
after i changed it:
key 107 ENDCALL WAKE
key 62 ENDCALL WAKE
key 231 CALL WAKE
key 61 CALL WAKE
key 102 HOME WAKE_DROPPED
key 116 POWER WAKE
Now there are other buttons that are in the file but i just left them blank, meaning it says *key ### NAME *, with no wake or wakedropped
hopefully this can help some people
PS: you need to restart your phone for the file to take effect.
After the boot it took about 3 presses but now the power button is fully functional it puts the phone to sleep, wakes it up, and brings up the power option on long press!!!!!
Hello guys. At first i´m so sorry for my bad english, so i´ll show you a video of my problem.
Phone - HTC Hero, Android 2,1
Video:
I can´t post outside links in my messages...
youtube. com/watch?v=V1BwQZsoKCk
It will not go to sleep mode when pressing the end/power key. But it still takes phone OUT of sleep mode, but now I have to wait for the screen timeout instead of pressing the button again.
I tried to find answer to my question, but i failed... I tried Reboot, Spare Parts - i don´t know if it worked properly, Hard reset, but the power button still not working properly.
Thank you! Marty
Restore you phone to the default setting and softares
Sent from my awesome X8 using Tapatalk
I tried that... No results
Marty Chill said:
I tried that... No results
Click to expand...
Click to collapse
Try to restore your phone to the default, or try to install a custom rom
Sent from my awesome X8 using Tapatalk
Now i did a ROOT and i try to flash in some ROMs but it still not works + it cancels my outcoming and incoming calls...
Sounds like you have a failing power button.. like I do.
It's a real pain in the ass... been looking for solutions for quite a while, besides physically replacing the circuit board the button is on...
I know this is old but for anybody researching the same problem... after trying MANY different apps for taking over power button tasks, the only real solution was to buy a replacement "Flex Cable" assembly on eBay. Takes some bravery to install but everything works now.
But that's just my experience.
I suppose that the simplest way out id button remapper that you can find hear at xda.
By using such software you can easily turn any of the other physical keys of your device into the power button.
lucaoldb said:
I suppose that the simplest way out id button remapper that you can find hear at xda.
By using such software you can easily turn any of the other physical keys of your device into the power button.
Click to expand...
Click to collapse
True, and they did work once the phone was up and running. However, when something went wrong on my rom and I needed to get into recovery to re-flash... I was SOL.
Yes, remapping is applied only after the kernel is loaded... So remapping is quite useless if the phone is switched off.
If I write an app, is it possible to to override the default functionality of the hardware power button?
I only found this on google, but it didn't work:
stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android
Thank you!
I would be interested in an app to do this, as well as bringing up the power menu as holding the power button usually does.
The power button on my Desire has issues letting go... the phone seems to think that the button is always pressed, effectively making me unable to "press" the button when I want. Pretty certain it is mechanical failure, since if I take the battery out and then put back in, the phone turns on without my doing anything else. So, I cannot shutdown via the power menu... tried apps which use SU to power off/reboot, but they are causing problems with Data2Ext and A2SD+ filesystems. I also cannot do anything from hboot or fastboot... must enter recovery through a root app.. which is not always helpful.
Been looking for several months
Baschdard said:
If I write an app, is it possible to to override the default functionality of the hardware power button?
I only found this on google, but it didn't work:
stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android
Thank you!
Click to expand...
Click to collapse
I would really like for this too.
I am trying to do an in-dash install of a 7inch tablet and it is unable to sense when the power is removed. I have also tried running Tasker but it says 'Application not installed'.
So I would like to send a pulse to the power button and trigger a shutdown app. Otherwise I will just be cutting power which is sure to corrupt things
It's Needed!!!
Please see my other post in this thread:
http://forum.xda-developers.com/showthread.php?t=1052451
Thanks!!
Hi,
When doing a long-press on the power button of my Galaxy SII, after a few seconds, it powers off. This happens whether it is locked or not, and without asking for confirmation on the screen.
I'm using a Sena leather case, which presses on the power button. Each time I put it in the case, it powers off, then it restarts, and stays on "enter SIM pin code" screen. I may have discovered a new way to switch to Airplane mode but I'd like to avoid that.
Moreover, there is a distinction between :
- long press (2 seconds) : brings the power menu (Airplane / Reboot / Switch OFF)
- very long press (approx. 8 seconds) : switches the phone OFF
Also, these two keys are active even when the phone is locked.
Here's what I would like to do : disable both the 2 seconds press and the 8-seconds press when the phone is locked
I found some threads about key remapping applications or direct edit of keymap files, but none of them were successful.
Could someone point me out an application / a way to achieve that ? Does someone know if it's ever possible ?
(For now, the only workaround I found is a hardware one : disassemble the phone and sand the power button to reduce its height, so that it stays inside the casing)
Thank you in advance. Kind regards
My old HTC Hero used to do that too, which leads me to believe it is something hard-coded into Android itself. I'd suggest there is nothing much you can do, but wait and see if a dev replies or something.
Sent from my GT-I9100 using XDA
I don't know if it's possible but if it is it has to be something in the kernel.
The 8 second power off function works the same way as the on on your PC and is used if your phone stops responding so I don't see a way to disable it with an app because it's ment to turn the phone off even if an app freezes your whole phone.
Hi,
If the 8-seconds press is hard-coded, I think precautions should have been taken to avoid unwanted power off each time you put the phone into a leather pouch !
On iPhone f/ex, you have to press both power and home button during several seconds to trigger hard reboot, which makes unwanted action hard to happen unexpectedly.
It's always frustrating to encounter such a basic problems on a $600 phone using the latest state-of-the-art technology, which powers off each time you put it into your pocket ;-)
I hoped some developer has found a way to workaround this. I googled a lot, but I didn't find anything.
So, if the power button features are hard-coded, the only solution may be to hard-remove the entire power button
Problem solved.
I disassembled the phone, I removed the power button, I carefully grinded it to reduce its height, and I put it back into the phone.
(For those who may already owned an iThing, disassembling a Galaxy SII is very easy, it's a matter of seconds with a good old mini-screwdriver; proceed carefully when grinding, because if you reduce the height too much, the buttom may break)
Now my power button height is just below the casing. It's still possible to press on it with a finger, but it does not press by itself when putting the phone into my leather pouch.
Thank you for explaining it I had an issue with my S II and it went to service to solve it, they totally changed the board and was shocked when I found the short press on power button doesn't show the power menu I used to have and it switched off immediately!
I've got to return it to service and your post made me thinking it's a simple issue! It won't take time
Regards,