Hey.
Someone split a drink on my HD2 last night and now the off button won't work. I can't lock my phone, end a call or turn it off. Really annoying!
Does anyone know of a program I can use to change say the back button to do the same function of the off button? Theres bound to be one but I couldn't find one with a search.
Also if anyone has an idea how I can try and physically fix my off button without voiding the warranty (ie taking off the little void sticker and unscrewing it) that would be awesome.
Thanks!
Forsh
HI
I'm so sorry for your phone.
Maybe my solution isn't the right one, but you could use:
-lmt
+
-xda shutdown
so, for example, if you would turn off or sleep the phone you can just use a lmt command to run xda shutdown.
I hope you can fix up your phone...
Bye
P.s. I'don't know how you can change hard key function... sorry
Forsh said:
Hey.
Someone split a drink on my HD2 last night and now the off button won't work. I can't lock my phone, end a call or turn it off. Really annoying!
Does anyone know of a program I can use to change say the back button to do the same function of the off button? Theres bound to be one but I couldn't find one with a search.
Also if anyone has an idea how I can try and physically fix my off button without voiding the warranty (ie taking off the little void sticker and unscrewing it) that would be awesome.
Thanks!
Forsh
Click to expand...
Click to collapse
You could use AE Button +, there is a thread about it somewhere. It works with all of the buttons on the Leo, the evaluation copy works too.
Hey, thanks to both of you for getting back to me, I'm going to give AE Button + a go.
No problem, let us know how it go's.
For those that don't use it for anything and want to disable it cause you accidently hit it 10 times a day, flash the disable zip. If you want to enable it again, just flash the default zip
does that take care of the button completely or just it's long-press function?
Nice work! Do you think you could make it so i can hit the volume up button to bring the phone out of suspend instead of hitting the power button?
Both of the .kl files are the same...just giving ya a heads up before someone restores the default and doesn't have their search button back...but nice find. Thanks!
The default one was the one I forgot to put in there but it's fixed now
frifox said:
does that take care of the button completely or just it's long-press function?
Click to expand...
Click to collapse
Completely disabled
Besides disabling the search button, is it possible to map it to do something else like launch internet or something of that sort?
nice i seen a few people complaining that they kept hitting it all the time. good work bro
stylz3 said:
Besides disabling the search button, is it possible to map it to do something else like launch internet or something of that sort?
Click to expand...
Click to collapse
I tried making it an end button...but no go...maybe I missed something...
RavenII said:
I tried making it an end button...but no go...maybe I missed something...
Click to expand...
Click to collapse
Its probably not built into the Sense build on the device. It used to be, but idk anymore since it isn't required by Android 2.0+
Also, to the people that want it to do something else:
See my post here. My guide is from way back in the G1 days, but all the same things apply here. Just change file names. An interesting use would be to change the search button to a camera button
Or see Decad3nce's wonderful writeup on the functions you can assign here. For the CDMA Hero, again just use your judgement. Use the right files
Also, my app Search2Play will soon be making it's way to the Evo now that we have usermode system partition access. Check it out here
Nice! Thanks for this, I always hit that button by accident.
Thank you! That damn button annoys the hell out of me everyday
Strange. I love the search button and use it all the time to text, call, launch apps etc.
Glad this is helpful to all the rest!
thanks!! i hit that damn button all the time
Calkulin said:
For those that don't use it for anything and want to disable it cause you accidently hit it 10 times a day, flash the disable zip. If you want to enable it again, just flash the default zip
Click to expand...
Click to collapse
this looks sweet!
calkulin, would you be okay with me adding this to the online kitchen im slowly building for the EVO?
i'll link it back to this thread and credit your name.
If your looking to use the volume down you can just open the keymap~.kl file included in the zip with wordpad and swap the volume down and power or how ever you like. Just realize that the cap buttons won't work in place of the hardware buttons.
I posted a fix that swapped the volume down and the power button.
Nice fix tho.
joeykrim said:
this looks sweet!
calkulin, would you be okay with me adding this to the online kitchen im slowly building for the EVO?
i'll link it back to this thread and credit your name.
Click to expand...
Click to collapse
Yeah that's fine, I don't mind
joeavery2 said:
If your looking to use the volume down you can just open the keymap~.kl file included in the zip with wordpad and swap the volume down and power or how ever you like. Just realize that the cap buttons won't work in place of the hardware buttons.
I posted a fix that swapped the volume down and the power button.
Nice fix tho.
Click to expand...
Click to collapse
Is it possible to get the volume to do the wake feature while also keeping the volume buttons working like normal?
Calkulin said:
Yeah that's fine, I don't mind
Click to expand...
Click to collapse
Thanks Calkulin, its been added! Great work as always!
newbie2369 said:
Nice work! Do you think you could make it so i can hit the volume up button to bring the phone out of suspend instead of hitting the power button?
Click to expand...
Click to collapse
Get no lock from the market.
Volume down takes you streight into the phone no lock screen.
Hello
Is that possible ? the factory combination of pressing vol plus power button is tricky or at least I like to save the power button as much as possible...
Any useful idea is appreciated..
Thanks
mahanddeem said:
Hello
Is that possible ? the factory combination of pressing vol plus power button is tricky or at least I like to save the power button as much as possible...
Any useful idea is appreciated..
Thanks
Click to expand...
Click to collapse
Out of curiousity.. what rom are you running?
btm fdr said:
Out of curiousity.. what rom are you running?
Click to expand...
Click to collapse
Stock UCLF6 deodexed rooted
Dont know if this may work but its definitely worth a shot at least
https://play.google.com/store/apps/details?id=com.smart.swkey&feature=nav_result#?t=W251bGwsMSwxLDMsImNvbS5zbWFydC5zd2tleSJd
as well i do know tat Mohan_kr maker of Embryo was able to remap. maybe a quick PM to him might also help since i searched and cant find anything
after a little more research i was able to find out the that it can be change in the residing location: /system/usr/keylayout or in the framework. sorry couldnt be much help but this is what i could find
crashpsycho said:
Dont know if this may work but its definitely worth a shot at least
https://play.google.com/store/apps/details?id=com.smart.swkey&feature=nav_result#?t=W251bGwsMSwxLDMsImNvbS5zbWFydC5zd2tleSJd
as well i do know tat Mohan_kr maker of Embryo was able to remap. maybe a quick PM to him might also help since i searched and cant find anything
after a little more research i was able to find out the that it can be change in the residing location: /system/usr/keylayout or in the framework. sorry couldnt be much help but this is what i could find
Click to expand...
Click to collapse
Thanks for your input ... I am not looking for an app as most of them filled with silly ads or taking unnecessary resaurces ... I need to mod system to remap some key to take screen shots ... And I guess you're right it's somewhere around /system/usr/keylayout
Afaik not possible in stock but aokp/cm9+10 allows that remap in settings
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
There is an app called "screenshot er" that lets you take screenshots by holding down the search key, and it has a delay that you can set for however long you want, and it works amazingly well. No extra crap, just a really good app. I know it's not what you want, but it's worth checking out.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
i agree with atrix ive used then Screenshot er app before the remmaping became available and works flawless
The power button and home key works for screen shots
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
I know this is an old thread, but all the screenshot remapping threads seem old, so I'm hoping I can get some help here anyway. My stock ICS on my S2 has home+power for screen shots. Hardware buttons died (home, menu, back, search) so i use softkeys to navigate, (Button Savior, works amazing, saved me a major headache) never the less, the screen shot doesn't work by pressing power and the home soft key. I've used other roms, like CM, where the screenshot is power+vol down and i want to use this method on my stock ICS. I to, don't want an app to do it, i just want power+vol down
Been trying to use xposed additions to remap for screenshot. not working so far and unsure of reasoning why, even bought the pro version to allow a multi step action to occur
well, recently I've been trying to remap the softkeys on the note II, and I'm just not making progress. My goal is to create a small mod that turns the softkey lights off, and remaps the menu key for the back key, and the back key to recents, as well as somehow changing the home button longpress to a google now shortcut.
After doing some research, I figured changing the Generic.kl (/system/usr/keylayout/) lines 139 and 158 would make progress. However, all I've accomplished so far is disabling the softkeys.
Any help or information on this subject would be greatly appreciated.
Thanks in advance.
- and yes, I tried the ButtonRemapper apk
I made this file months ago, and it's worked on every TW rom I've had, since I HATE the backwards button layout Samsung chose. Download this file, go to your /system/usr/keylayout folder, rename your existing sec_touchkey.kl to sec_touchkey.kl.bak, then move the file I gave you into that folder. Set permissions and reboot, and you'll have the setup you want.
Obviously, just turn the backlights off in the Display settings. Do note that you won't have a menu button after you do this, I just use Button Savior to put a little shortcut off to the side. But if you come up with a more elegant solution, please feel free to let me know.
That file should do what you want, all I ask is that you credit me if you share it with anyone, put it in a rom, or whatever.
http://db.tt/RzSutNxL
Sent from my SCH-I535 using Tapatalk 2
Cruiserdude said:
I made this file months ago, and it's worked on every TW rom I've had, since I HATE the backwards button layout Samsung chose. Download this file, go to your /system/usr/keylayout folder, rename your existing sec_touchkey.kl to sec_touchkey.kl.bak, then move the file I gave you into that folder. Set permissions and reboot, and you'll have the setup you want.
Obviously, just turn the backlights off in the Display settings. Do note that you won't have a menu button after you do this, I just use Button Savior to put a little shortcut off to the side. But if you come up with a more elegant solution, please feel free to let me know.
That file should do what you want, all I ask is that you credit me if you share it with anyone, put it in a rom, or whatever.
http://db.tt/RzSutNxL
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Thanks a bunch!
idiotzach15 said:
Thanks a bunch!
Click to expand...
Click to collapse
I'll be creating a flash zip for this "fix" soon. Does anyone know where I'd change the longpress on the homebutton action?
idiotzach15 said:
I'll be creating a flash zip for this "fix" soon. Does anyone know where I'd change the longpress on the homebutton action?
Click to expand...
Click to collapse
/system/framework/android.policy.jar/PhoneWindowManager.java
At leasts thats what i can remember lol. Thats what i had to edit on my Tablet to make long press on home function as long press search.
Yeah, I'd love to find a way to enable a long press of the right hand capacitive button (back button stock, but it's the task switcher with that file I posted) to act as a menu button. That would be awesome.
Alternatively, I'd love to figure out how to change the TW soft keys to AOSP theme and layout. I love using soft keys, but I can't stand the backwards layout Samsung has chosen, and can't bring myself to using it if I can help it.
Sent from my SCH-I535 using Tapatalk 2
Cruiserdude said:
Yeah, I'd love to find a way to enable a long press of the right hand capacitive button (back button stock, but it's the task switcher with that file I posted) to act as a menu button. That would be awesome.
Alternatively, I'd love to figure out how to change the TW soft keys to AOSP theme and layout. I love using soft keys, but I can't stand the backwards layout Samsung has chosen, and can't bring myself to using it if I can help it.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
You can add your own methods to the android.policy.jar file to handle different on hold actions.
Sent from my SGH-T999
"So I put my phone into airplane mode and threw it... worst transformer ever. -.-" -My friend
elesbb said:
/system/framework/android.policy.jar/PhoneWindowManager.java
At leasts thats what i can remember lol. Thats what i had to edit on my Tablet to make long press on home function as long press search.
Click to expand...
Click to collapse
Every file editor I try is unable to open/edit the android.policy.jar file. How do I edit it?
tonyf7 said:
Every file editor I try is unable to open/edit the android.policy.jar file. How do I edit it?
Click to expand...
Click to collapse
Have to decompile it using apktool
Sent from my SPH-L710 using xda app-developers app
elesbb said:
You can add your own methods to the android.policy.jar file to handle different on hold actions.
Sent from my SGH-T999
"So I put my phone into airplane mode and threw it... worst transformer ever. -.-" -My friend
Click to expand...
Click to collapse
Is it possible to add a method that when back is pressed twice it launches an app? Or can I modify long press to launch an app like voice commands?
hi guyz.. one question.. i'd want to remap the buttons with this logoc
1 press menù -> multitasking tab
long press menù -> menù
long press home buttons -> gvoice
any idea how to use it?
i'm on swift rom v3 + perseus kernel and, i don't have the sec_touchkey file! o.o
how to?
i'd want to use the stock tw launcher, not another one..
thanks
---------- Post added at 03:58 PM ---------- Previous post was at 03:21 PM ----------
Ok i edited the file and puted it in right folder.. now i have the multitasking in normal menù press, but NOT the menù in the hold.. what could i do?
hi, is there any way to wake-up screen without home key, power key and volume key? actualy my home button is now not as hard as it was before, i am afraid it may damage some day, so does power key, i know about few apps which wakes up using sensor, but it's not for me, it drains battery too much, i want something like waking up phone with capative touch keys, or swiping them, is it possible to change key 172 which is home button to a menu key for waking up? in system/usr/keylayout/ ?
Shekar.m1986 said:
hi, is there any way to wake-up screen without home key, power key and volume key? actualy my home button is now not as hard as it was before, i am afraid it may damage some day, so does power key, i know about few apps which wakes up using sensor, but it's not for me, it drains battery too much, i want something like waking up phone with capative touch keys, or swiping them, is it possible to change key 172 which is home button to a menu key for waking up? in system/usr/keylayout/ ?
Click to expand...
Click to collapse
the situation is simple.. ALL IS POSSIBLE..
i you know java code as advance user, i can send you files witch you should recompile
but.. the situation is simple.. if you always turn on the soft buttons, you'll lose a lot of energy, since ALL screen is alimented..
Soft touch buttons uses the same touch as screen, so, you always have to aliment it
ok.. 2 issues:
1) if leg touch the soft button, screen will be turned on
2) showp-1984 creates the swipe2wake, for htc phones, you need a lot of c++ knowledge to recompile it
But.. in my opinion, buttons are "immortal" than soft touch..
I have an old keyboard.. it had about 12 years.. and works good.. and.. i used it for 6 years til change, so, dont be scary, i don't think you are breaking your buttons!!
---------- Post added at 02:03 PM ---------- Previous post was at 01:57 PM ----------
Btw.. i find the code witch is the governor of the buttons.. it's in android.policy.jar file.. and.. i tryed to force the hold home button to hold menù button, and sure, it worked, with one issue: menù always had the search function
So.. the situation is simple... i don't know how to code with java, and sure, i need a good java programmer to do what i whould do.. at last.. only one "stupid thing".. change the hold home button app switch to menù.. so.. i could have:
Menù button as app switch with 1 press (easy to do)
standard press of home as move home function and hold it for the android MENU
And back as always
I only need one coder witch can modify me the @8 VALUE
Any good person??
iba21 said:
the situation is simple.. ALL IS POSSIBLE..
i you know java code as advance user, i can send you files witch you should recompile
but.. the situation is simple.. if you always turn on the soft buttons, you'll lose a lot of energy, since ALL screen is alimented..
Soft touch buttons uses the same touch as screen, so, you always have to aliment it
ok.. 2 issues:
1) if leg touch the soft button, screen will be turned on
2) showp-1984 creates the swipe2wake, for htc phones, you need a lot of c++ knowledge to recompile it
But.. in my opinion, buttons are "immortal" than soft touch..
I have an old keyboard.. it had about 12 years.. and works good.. and.. i used it for 6 years til change, so, dont be scary, i don't think you are breaking your buttons!!
---------- Post added at 02:03 PM ---------- Previous post was at 01:57 PM ----------
Btw.. i find the code witch is the governor of the buttons.. it's in android.policy.jar file.. and.. i tryed to force the hold home button to hold menù button, and sure, it worked, with one issue: menù always had the search function
So.. the situation is simple... i don't know how to code with java, and sure, i need a good java programmer to do what i whould do.. at last.. only one "stupid thing".. change the hold home button app switch to menù.. so.. i could have:
Menù button as app switch with 1 press (easy to do)
standard press of home as move home function and hold it for the android MENU
And back as always
I only need one coder witch can modify me the @8 VALUE
Any good person??
Click to expand...
Click to collapse
I see, actually you're right, i forgot that we have to decompile android.policy.jar to be able to change wake up keys, i remember it when i saw someone changed wake-up key to volume buttons through android.policy.jar, it's quite strange that with samsung decvices which uses physical home button to screen wake, doesn't have any mod to alternative method, one you already mentioned sweep2wake, a pleasent feature to relief power button of htc devices, what about the relief for Samsung's physical home key? i am not so fussed about other use of physical key, i only want to change screen wake key to capacitive menu key or something like sweep2wake..i can see after sometime, lots of users complain about home key, so a handy mod should be there.
by the way can you send me an edited file with menu (capacitive button) wake up enabled?
Shekar.m1986 said:
I see, actually you're right, i forgot that we have to decompile android.policy.jar to be able to change wake up keys, i remember it when i saw someone changed wake-up key to volume buttons through android.policy.jar, it's quite strange that with samsung decvices which uses physical home button to screen wake, doesn't have any mod to alternative method, one you already mentioned sweep2wake, a pleasent feature to relief power button of htc devices, what about the relief for Samsung's physical home key? i am not so fussed about other use of physical key, i only want to change screen wake key to capacitive menu key or something like sweep2wake..i can see after sometime, lots of users complain about home key, so a handy mod should be there.
by the way can you send me an edited file with menu (capacitive button) wake up enabled?
Click to expand...
Click to collapse
I'd want but, i'm not a java programmer, i don't know how to do to remap a button, do you think i know how to force the electromagneticity on??
I think is not easy whaylt ypu would do.. and sure.. you have to modify more than 1 jar file.. because.. i ONLY have to REMAP a button, so, stock, only have to do ANOTHER THING... you want to change a power features.. i think you have to modify the kernel (sweep 2 wake is a feature of the kernel, not of the rom.. kernel is writed in c++.. android is writed in java, uses the java machine)
---------- Post added at 09:05 PM ---------- Previous post was at 08:22 PM ----------
Oh right.. one thing.. emh.. in my opinion.. button is a button, and samusung did some test about the resistence of the button
Sure.. time destroys all.. so.. you could have a softly botton after 12 months.. but.. i don't think you'll damage it soon..
Warranty is here.. you can send phone to the costructor if you have a problem
P.s. i have old phones, as like a siemens s10.. and.. ALL buttons are ok..
That phone was used by:
Dad > mom > me > brother > second brother
It has about, 8years of usage.. no prob..
Dont know why you are so worried!
iba21 said:
I'd want but, i'm not a java programmer, i don't know how to do to remap a button, do you think i know how to force the electromagneticity on??
I think is not easy whaylt ypu would do.. and sure.. you have to modify more than 1 jar file.. because.. i ONLY have to REMAP a button, so, stock, only have to do ANOTHER THING... you want to change a power features.. i think you have to modify the kernel (sweep 2 wake is a feature of the kernel, not of the rom.. kernel is writed in c++.. android is writed in java, uses the java machine)
---------- Post added at 09:05 PM ---------- Previous post was at 08:22 PM ----------
Oh right.. one thing.. emh.. in my opinion.. button is a button, and samusung did some test about the resistence of the button
Sure.. time destroys all.. so.. you could have a softly botton after 12 months.. but.. i don't think you'll damage it soon..
Warranty is here.. you can send phone to the costructor if you have a problem
P.s. i have old phones, as like a siemens s10.. and.. ALL buttons are ok..
That phone was used by:
Dad > mom > me > brother > second brother
It has about, 8years of usage.. no prob..
Dont know why you are so worried!
Click to expand...
Click to collapse
This is an expensive phone, so we would definitely worry about it i know it does rarely broken, but it does more or less, i don't know why samsung intend to choose physical home instead of capacitive, i had HTC Sensation, and i was glad to use sweep2wake on it to save power button, samsung's power button gives loose feeling right out of the box like it'll break anytime, so samsung needs sweep2wake or something like that much more than HTC devices, hopefully some devs will look at it, THIS WAKE-UP KEY NEED TO BE HACKED AND REPLACED, simple is that, although soft keys gives it little bit relief, but we have to wake-up device atleast 30-50 times in working days, so that's why i am really looking forward to it, can we both join hands to bring developers attention toward it? if you also want to wake-up screen with anything other than physical keys i'm sure you must be missing sweep2wake in note 2
I didn't use s2w.. why? It uses too mouch energy in standby
showp is one of my great friends in xda, and i love his kernel + his MPDECISION code
Btw, for me, you are crazy
Never ever had problems with phone buttons.. i had an n95, i sent about 1 bilion of sms.. here in italy vodafone created a promo witch gives about 100free sms per day.. i used everytime all the sms.. and.. sure.. i had to press the send button 2 timed every sms + all the other
I used that phone for 3 years.. changed it with an hd2... bought the first day (n95) and hd2 used.. 365 days x 3 = 1095.. 1095 x 100 = 19500 x 2 = 219,000 + all the other used to navigate in menù
Btw.. n95 was broken in display cable.. all buttons perfect!!
has anyone tried ButtonRemapper? http://forum.xda-developers.com/showthread.php?t=850464
before doing all the hard work
Yep and didnt work!