[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.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by everett52
3 hours ago
Last post by swift.kassandra
2 hours ago
Last post by pklocko
3 hours ago
Last post by bridget16
1 hour ago
Last post by rmonahan
1 hour ago
Last post by douglas.carlotta
3 hours ago
Last post by agoldner
4 hours ago
Last post by rogahn.dolores
4 hours ago
Last post by kim.nader
1 hour ago