Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,424 Members 36,190 Now Online
XDA Developers Android and Mobile Development Forum

[Q]Activating onscreen keys and disabling capacitive keys.

Tip us?
 
belly of the beast
Old
(Last edited by belly of the beast; 14th April 2014 at 05:03 AM.)
#1  
Junior Member - OP
Thanks Meter 7
Posts: 24
Join Date: Oct 2012
Location: Dothan, AL
Default [Q]Activating onscreen keys and disabling capacitive keys.

So after a little bit of tinkering, I've managed to get M8-esque software keys on my One Max. Now I have set about disabling the capacitive home/back keys, but for the life of me, cannot manage to shut them off...does anyone happen to know the file that I need to edit?

Undertake the following AT YOUR OWN RISK, when it comes to ripping out this kind of stuff I HAVE ENOUGH TROUBLE TAKING RESPONSIBILITY FOR MY OWN ACTIONS, LET ALONE YOURS, THEREFORE, I WON'T.

UPDATE: For anyone interested in getting the keys disabled, I managed to finally get them off by using root explorer to edit the contents of:
- system/usr/keylayout/max1187x_touchscreen_0.kl
- system/usr/keylayout/himax.touchscreen.kl
- system/usr/keylayout/synaptics-rmi-touchscreen.kl

All contents of these files were backed up and deleted. Reboot and enjoy!

(I'd tried #ing them, and deleting the contents individually, but it only seems to work when ALL are blanked, someone who actually knows what they're doing can probably clarify if this is overkill)
The Following 2 Users Say Thank You to belly of the beast For This Useful Post: [ Click to Expand ]
 
waco2hot33
Old
#2  
waco2hot33's Avatar
Senior Member
Thanks Meter 132
Posts: 534
Join Date: Mar 2010
Location: Baltimore
Quote:
Originally Posted by belly of the beast View Post
So after a little bit of tinkering, I've managed to get M8-esque software keys on my One Max. Now I have set about disabling the capacitive home/back keys, but for the life of me, cannot manage to shut them off...does anyone happen to know the file that I need to edit?

Sent from my HTC6525LVW using XDA Premium 4 mobile app
You mind sharing how you did it ?


Sent from my HTC6525LVW using Tapatalk
 
belly of the beast
Old
#3  
Junior Member - OP
Thanks Meter 7
Posts: 24
Join Date: Oct 2012
Location: Dothan, AL
Quote:
Originally Posted by waco2hot33 View Post
You mind sharing how you did it ?


Sent from my HTC6525LVW using Tapatalk
Well I suspect what made it so very easy was the fact that I was on the 4.4/Sense 6 M8 port that Flyhalf posted a few weeks ago. Since it was an M8 port, I just assumed they'd be hidden in there.

You can get them up with a text edit, or you can go the easy route and use
https://play.google.com/store/apps/d...softkeyenabler

I have no idea if this would work on stock One Max ROMs, but it's worth a shot.

Sent from my HTC6525LVW using XDA Premium 4 mobile app
The Following User Says Thank You to belly of the beast For This Useful Post: [ Click to Expand ]
 
joshm.1219
Old
#4  
joshm.1219's Avatar
Senior Member
Thanks Meter 1,340
Posts: 3,159
Join Date: May 2013
Location: Philadelphia
Quote:
Originally Posted by belly of the beast View Post
Well I suspect what made it so very easy was the fact that I was on the 4.4/Sense 6 M8 port that Flyhalf posted a few weeks ago. Since it was an M8 port, I just assumed they'd be hidden in there.

You can get them up with a text edit, or you can go the easy route and use
https://play.google.com/store/apps/d...softkeyenabler

I have no idea if this would work on stock One Max ROMs, but it's worth a shot.

Sent from my HTC6525LVW using XDA Premium 4 mobile app
button savior also works.

i've been looking for how to disable the hard keys but haven't found it. I was thinking maybe using Xposed Additions to see if I could just remap the buttons to no action or something but haven't had the chance
http://farm3.staticflickr.com/2848/11738368925_6e7dbef510_o.png
  • CARRIER: Verizon
  • PHONE: Samsung S4 HTC One Max
  • CASE: Otterbox Defender modded to fit Anker 7800mah battery HTC PowerFlip
  • BOOTLOADER: MDK, loki bypass S-OFF & Relocked
  • RECOVERY: TWRP 2.7.x
  • KERNEL: Ktoonsez with Project Icarus profile and Hydra script FlyKernel
  • ROM: Eclipse TW 4.4 Adrenaline Sense 6
  • LAUNCHER & MODS: Google Now launcher with XGEL settings, GravityBox, Heads Up notifications, & Android L navbar
The Following User Says Thank You to joshm.1219 For This Useful Post: [ Click to Expand ]
 
Murrda
Old
#5  
Senior Member
Thanks Meter 86
Posts: 172
Join Date: Apr 2013
Location: Long Island, NY

 
DONATE TO ME
It'll work on stock or ports 4.4.x only but use Xposed then install GravityBox and you can add soft keys and you can turn off hard keys......... Nuff said!


Quote:
Originally Posted by waco2hot33 View Post
You mind sharing how you did it ?


Sent from my HTC6525LVW using Tapatalk


---------- Post added at 10:39 PM ---------- Previous post was at 10:33 PM ----------

I heard you can quickly edit your build.prop or you can adb pull framework-res.apk decompile it with ApkTool and edit the I think bool.XML I dunno its been a while and change show navbar from false to true then recompile it and push it back.. Restart the Android system wait for it to optimize apps and profit LOL... That's a somewhat permanent solution unless you reverse the method
The Following User Says Thank You to Murrda For This Useful Post: [ Click to Expand ]
 
belly of the beast
Old
#6  
Junior Member - OP
Thanks Meter 7
Posts: 24
Join Date: Oct 2012
Location: Dothan, AL
Quote:
Originally Posted by Murrda View Post
It'll work on stock or ports 4.4.x only but use Xposed then install GravityBox and you can add soft keys and you can turn off hard keys......... Nuff said!




---------- Post added at 10:39 PM ---------- Previous post was at 10:33 PM ----------

I heard you can quickly edit your build.prop or you can adb pull framework-res.apk decompile it with ApkTool and edit the I think bool.XML I dunno its been a while and change show navbar from false to true then recompile it and push it back.. Restart the Android system wait for it to optimize apps and profit LOL... That's a somewhat permanent solution unless you reverse the method
Hmm, I've been looking into gravitybox, but I can't seem to find any option to completely disable the hardware keys. I do see how I can map double and long presses, but nothing for just general presses. (Although if I could define the length of a long press at a laughably short time, e.g. 1ms, then assign no long press function.....that could be a janky way of getting the job done)

Sent from my HTC6525LVW using XDA Premium 4 mobile app
 
belly of the beast
Old
#7  
Junior Member - OP
Thanks Meter 7
Posts: 24
Join Date: Oct 2012
Location: Dothan, AL
The most infuriating part of this is the fact that I've been digging in system/usr/.../keylayout, systematically #ing out instances of the desired keys, but they just never ever ever unbind.

Sent from my HTC6525LVW using XDA Premium 4 mobile app
 
belly of the beast
Old
#8  
Junior Member - OP
Thanks Meter 7
Posts: 24
Join Date: Oct 2012
Location: Dothan, AL
Haha! I've fumbled my way to success! OP updated for any one who might want to do the same.

Sent from my HTC6525LVW using XDA Premium 4 mobile app

The Following User Says Thank You to belly of the beast For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes