Change key binding - Wing, P4350 ROM development

Hello,
Is it possible to change to key from the off switch?
I want the offswitch to be one of the keys on the sides since the off switch op top broke, it's stuck all the time.
Any suggestions?
Greetz,
Vincent

bump
bumpbumpbump

I dont think that's possible...

not even in registery?

I don't think so...
it's like trying to get your computer's [CTRL] key to replace it's power button...

izzzy12k said:
I don't think so...
it's like trying to get your computer's [CTRL] key to replace it's power button...
Click to expand...
Click to collapse
But it's possible once the computer is started it's easy to make in vb.net don't know about mobile =/

Related

Could the lack of a dedicated windows hardware button be a deal-breaker

Hi.
I notice the Touch-Cruise lacks the Windows button that activates the start menu (like on the HTC Trinity).
Does this mean you have to use the stylus every time you want to open the start menu and go down to programs.
If so that would suck wouldn't it?
Or is there some other way of activating the start menu without the stylus?
Otherwise this device ticks all the boxes for me.
Any advice appreciated.
Thanks.
tech77 said:
Hi.
I notice the Touch-Cruise lacks the Windows button that activates the start menu (like on the HTC Trinity).
Does this mean you have to use the stylus every time you want to open the start menu and go down to programs.
If so that would suck wouldn't it?
Or is there some other way of activating the start menu without the stylus?
Otherwise this device ticks all the boxes for me.
Any advice appreciated.
Thanks.
Click to expand...
Click to collapse
You can map any hardware button you like to it. I use the one below the green button.
victoradjei said:
You can map any hardware button you like to it. I use the one below the green button.
Click to expand...
Click to collapse
How do you do that.
(Sorry if this sounds like a basic question but I don't actually have the device at the moment. I'm seriously thinking of getting it though )
Also how do you like the device overall?
tech77 said:
How do you do that.
(Sorry if this sounds like a basic question but I don't actually have the device at the moment. I'm seriously thinking of getting it though )
Also how do you like the device overall?
Click to expand...
Click to collapse
Start>settings>buttons and change whatevr you want.
If it was not good there would not be so much clamouring for it Perfect untill I find a better one
get o2 orbit 2, it has also the windows picture on the button
victoradjei said:
Start>settings>buttons and change whatevr you want. If it was not good there would not be so much clamouring for it Perfect untill I find a better one
Click to expand...
Click to collapse
Cheers.
Strangely enough when you go into settings>buttons on my Trinity there's no option to change the buttons below the screen.
You can only reassign the buttons on the sides of the device.
But with the Touch-Cruise you're positive you can re-assign the buttons BELOW the screen, right?
Thanks.
tech77 said:
Hi.
I notice the Touch-Cruise lacks the Windows button that activates the start menu (like on the HTC Trinity).
Does this mean you have to use the stylus every time you want to open the start menu and go down to programs.
If so that would suck wouldn't it?
Or is there some other way of activating the start menu without the stylus?
Otherwise this device ticks all the boxes for me.
Any advice appreciated.
Thanks.
Click to expand...
Click to collapse
You can use your fingers. I don't understand where the problem is.

[REQ] A software 'go sleep' button

I want to save the hardware of my HD2 and I'm looking for a .cab that makes a software button that acts the same like pushing the 'end call' button to enter sleepmodus.
(as same as the quite usefull software 'soft reset' button)
Anybody a hint for me?
michedenhaag said:
I want to save the hardware of my HD2 and I'm looking for a .cab that makes a software button that acts the same like pushing the 'end call' button to enter sleepmodus.
(as same as the quite usefull software 'soft reset' button)
Anybody a hint for me?
Click to expand...
Click to collapse
Do I understand it right that you are searching for a tool in order not to use the default "end key" which does exactly that job very good?
Matthes42 said:
Do I understand it right that you are searching for a tool in order not to use the default "end key" which does exactly that job very good?
Click to expand...
Click to collapse
yes. the end key is hardware and i prefer a software solution. you can wake-up the HD2 with every hardware key, but onlky the end key makes it go sleep. That wont last forever... so if there's a cab to provide a button on screen. well... I would go for it
The life of a hardware key is usually in the range of a million presses, so I wouldn't worrry too much. I've never had a dead power key on any of my HTC phones, and never heard of someone with that problem... You'd have to be very unlucky to get it, unless you intend to keep your HD2 for 20 years or so, but then I'd rather worry about the flash memory being dead
Solution to your request
michedenhaag said:
I want to save the hardware of my HD2 and I'm looking for a .cab that makes a software button that acts the same like pushing the 'end call' button to enter sleepmodus.
(as same as the quite usefull software 'soft reset' button)
Anybody a hint for me?
Click to expand...
Click to collapse
Hi michedenhaag,
I know what you are up to - I using a soft key link myself
Just get MySuspend from this tread:
http://forum.xda-developers.com/showthread.php?t=544475&highlight=MySuspend
and using Advanced_Configuration_Tool_v3.3 attach your soft key (I use the left one) to MySuspend.
Thats all !!!
Working like a charm on my TD2 and will work for sure on your HD2.
Greetings from Poland
Jack_Surfer said:
Hi michedenhaag,
I know what you are up to - I using a soft key link myself
Just get MySuspend from this tread:
http://forum.xda-developers.com/showthread.php?t=544475&highlight=MySuspend
and using Advanced_Configuration_Tool_v3.3 attach your soft key (I use the left one) to MySuspend.
Thats all !!!
Working like a charm on my TD2 and will work for sure on your HD2.
Greetings from Poland
Click to expand...
Click to collapse
Thanks! works like a charm!
(and the switch itself will last, but the soldering and construction is the problem. I had over 5 HTC phones before and all got 'hardware' problems on buttons. So this saves me a lot of clicks!
michedenhaag said:
Thanks! works like a charm!
(and the switch itself will last, but the soldering and construction is the problem. I had over 5 HTC phones before and all got 'hardware' problems on buttons. So this saves me a lot of clicks!
Click to expand...
Click to collapse
You are wellcome, michedenhaag
My END button is mechanically defect...works but the touch is lossless.
(deep pushing)
Thanks for the cab "My_Suspend" !

Swap hard key functions

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.

[Q] how to access Multitasking View in ICS ?

Hi,
yesterday i updated my nexus s with ics and i wonder how to access the multitasking-view. long-holding the home-button does not work.
is there a possibility to map the multitasking-view on the settings-hardware key?
thanks!
Something's wrong with your setup, you should get access to swipe-to-close thunbnails long holding home button.
Stefanauss said:
Something's wrong with your setup, you should get access to swipe-to-close thunbnails long holding home button.
Click to expand...
Click to collapse
ok i will check it.... and the second question?
thanks

[Q] Disabling the long press function of the hw power off button.

Hi everyone,i looked for a lot of solution (here and on other forums) but none of them worked. Even Acer technics abandoned me so it's all up to software now.
I will explain briefly my problem.
The power off button of my Acer Liquid e2 (i posted this here because there are no specific board for this phone) became incredibly sensible,even when the phone is just standing on a table it hard power off because of the long press of the power off button all by itself.
Now,i tried cleaning it,insult him,even borrow him to the assistance (they said that the button is probably attached to the motherboard so no repair,buy a new one) Not a single hardware solution worked (this phone never took a hit,but i have no warranty).
So i tried software,i used two different application to understand what was the button pressed,thanks to keytracker and whichbutton now i know that the longpress of power off button is 116,and the function is KEYCODE_POWER.
Now i wanted to simply remap the hw key so it does nothing but none of the two button appear in Button remapper neither the number or the function. So i was thinking to manually edit the file that manage this kind of thing is that possible? How can i disable the power off button? Obviously the change must be made after the boot,and in a way that still let me power on the phone and unlock (for the unlock part i could just remap a long press of the back button). This is way out of my league. Any advice,any help any possible solution are much appreciated.
Sorry for my bad english and i hope someone can help,otherwise i will have to take another phone...and i really can't afford it.
Megasd said:
Hi everyone,i looked for a lot of solution (here and on other forums) but none of them worked. Even Acer technics abandoned me so it's all up to software now.
I will explain briefly my problem.
The power off button of my Acer Liquid e2 (i posted this here because there are no specific board for this phone) became incredibly sensible,even when the phone is just standing on a table it hard power off because of the long press of the power off button all by itself.
Now,i tried cleaning it,insult him,even borrow him to the assistance (they said that the button is probably attached to the motherboard so no repair,buy a new one) Not a single hardware solution worked (this phone never took a hit,but i have no warranty).
So i tried software,i used two different application to understand what was the button pressed,thanks to keytracker and whichbutton now i know that the longpress of power off button is 116,and the function is KEYCODE_POWER.
Now i wanted to simply remap the hw key so it does nothing but none of the two button appear in Button remapper neither the number or the function. So i was thinking to manually edit the file that manage this kind of thing is that possible? How can i disable the power off button? Obviously the change must be made after the boot,and in a way that still let me power on the phone and unlock (for the unlock part i could just remap a long press of the back button). This is way out of my league. Any advice,any help any possible solution are much appreciated.
Sorry for my bad english and i hope someone can help,otherwise i will have to take another phone...and i really can't afford it.
Click to expand...
Click to collapse
I know exactly what you are looking for.
I will get back to you in the next couple of minutes to tell you the file that needs to be edited.
Thanks.
Lgrootnoob said:
I know exactly what you are looking for.
I will get back to you in the next couple of minutes to tell you the file that needs to be edited.
Thanks.
Click to expand...
Click to collapse
Thanks for the help i will wait for the answer,i was thinking that if we find a way to disable only the power off function it will be perfect.
Please read this first http://source.android.com/devices/tech/input/key-layout-files.html
Ok, its in /system/usr/keylayout
Just edit the files in a text editor for your specific key number
Lgrootnoob said:
Please read this first http://source.android.com/devices/tech/input/key-layout-files.html
Ok, its in /system/usr/keylayout
Just edit the files in a text editor for your specific key number
Click to expand...
Click to collapse
I tried to edit that file even before posting here but the only key function for 116 is power wake.I looked for all the files in the directory and none of them refer to the function im looking for. Can you be more specific?
Megasd said:
I tried to edit that file even before posting here but the only key function for 116 is power wake.I looked for all the files in the directory and none of them refer to the function im looking for. Can you be more specific?
Click to expand...
Click to collapse
This is the only way to do it.
Except for some sort of xposed module if you find one.
Dont look for exactly it, but experiment and look for off the wall keys that might be helpful to edit.
---------- Post added at 02:37 PM ---------- Previous post was at 02:35 PM ----------
This thread will help http://forum.xda-developers.com/showthread.php?t=2302169
Read last post.
Lgrootnoob said:
This is the only way to do it.
Except for some sort of xposed module if you find one.
Dont look for exactly it, but experiment and look for off the wall keys that might be helpful to edit.
Click to expand...
Click to collapse
I dont like to experiment with hardware key,im looking for a way to delete only the KEYCODE_POWER function,if i completely remove the 116 string i won't even be able to boot the phone and i don't like to brick things.
Edit: That kind of edit could work,the problem is that this string:
KEY 116 POWER WAKE
KEY 116 POWER
Should stop the problem from coming when in lockscreen,i suppose that will kind of work..thanks a lot i will try it and let you know.
Megasd said:
I dont like to experiment with hardware key,im looking for a way to delete only the KEYCODE_POWER function,if i completely remove the 116 string i won't even be able to boot the phone and i don't like to brick things.
Click to expand...
Click to collapse
I doubt it because the bootloader handles power on and the POWER function seems like it would allow you to turn the screen on. Do you want me to try it on my phone before you do it on yours?
And he never said to delete it, he only said to change it to just POWER not POWER WAKE.
Seems like to delete the keycode you would have to edit the android framework and that is beyond the scope of my efforts.
EDIT: Okay I got your reply.
Lgrootnoob said:
I doubt it because the bootloader handles power on and the POWER function seems like it would allow you to turn the screen on. Do you want me to try it on my phone before you do it on yours?
And he never said to delete it, he only said to change it to just POWER not POWER WAKE.
Seems like to delete the keycode you would have to edit the android framework and that is beyond the scope of my efforts.
EDIT: Okay I got your reply.
Click to expand...
Click to collapse
I would like to thank you for the answer and the help you are giving to me,you are very kind to do so,
I can't find that specific file seckey.kl probably it varies from devices to devices..i managed to find two different files that both have the string power wake,and they are mtk-kdp.kl and querty.kl what do you think? i should probably edit both of them..but what do you think?
Megasd said:
I would like to thank you for the answer and the help you are giving to me,you are very kind to do so,
I can't find that specific file seckey.kl probably it varies from devices to devices..i managed to find two different files that both have the string power wake,and they are mtk-kdp.kl and querty.kl what do you think? i should probably edit both of them..but what do you think?
Click to expand...
Click to collapse
The android docs only said not to edit generic.kl so it seems your fine.
I would do a Recovery backup if possible then edit all of the key values.
And also make sure usb debugging is on so if you cant use the power button that you could recover with an adb shell.
Please hit the thanks button if you have the time.
Lgrootnoob said:
The android docs only said not to edit generic.kl so it seems your fine.
I would do a Recovery backup if possible then edit all of the key values.
And also make sure usb debugging is on so if you cant use the power button that you could recover with an adb shell.
Please hit the thanks button if you have the time.
Click to expand...
Click to collapse
You are a mastermind my friend A MASTERMIND the problem is solved the power off button work to lock the screen but dosent shutdown the phone anymore so everything is fixed!! i know my thanks are not usefull so i would like to ask a question,do you have any project that need to be founded? i saved a lot of money thanks to you and i will be glad to help you back. Again thanks.
Megasd said:
You are a mastermind my friend A MASTERMIND the problem is solved the power off button work to lock the screen but dosent shutdown the phone anymore so everything is fixed!! i know my thanks are not usefull so i would like to ask a question,do you have any project that need to be founded? i saved a lot of money thanks to you and i will be glad to help you back. Again thanks.
Click to expand...
Click to collapse
Glad to see it worked for you.
I will get back to you soon.
I'm building a new computer(My first build) that needs a little boost.
---------- Post added at 03:42 PM ---------- Previous post was at 03:08 PM ----------
Just realized we have to use the paypal function or google wallet to be able to accept donations.
So I will add a button for it tonight.

Categories

Resources