5,599,135 Members 34,865 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][CM10] Enable On Screen Nav Soft Keys/Disable Capacitive/Home Buttons

Tip us?
 
graffixnyc
Old
(Last edited by graffixnyc; 3rd August 2012 at 06:12 PM.)
#1  
graffixnyc's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4031
Posts: 5,256
Join Date: Jan 2011
Location: New York City

 
DONATE TO ME
Default [MOD][CM10] Enable On Screen Nav Soft Keys/Disable Capacitive/Home Buttons

This is a Mod I did for CM10
It will enable the on screen navigation soft keys. it will also disable the capacitive buttons AND the home button.

I used the Framework-res.apk from the CM 10 Preview 6 build.

This will NOT disable the capacitive lights, just the keys themselves. To disable the lights go to settings -> Advanced -> Screen and uncheck "Backlight"


Why did I do this mod?
Well, I really liked the on screen nav buttons on the GNEX. At the time I had the Galaxy S II and enabled them with AOKP but as much as I liked them I hated losing the screen real estate on the 4.3 inch screen. When I got the GS3 I felt the screen was big enough to give up a little screen RE for the nav buttons. I also did it because when I play games or hold my phone in landscape I would accidently hit the capacitive buttons so this mod also eliminated that for me


EDIT: Member NemesisRE Has posted a way to universally do this on CM 10 and other roms! Taking this mod a step further and making it easy on me so I wouldnt have to do the mod every time the CM 10 FW changed:

From NemesisRE's post(http://forum.xda-developers.com/show...2&postcount=98)

Based upon the work of graffixnyc and labbe- I made a Script that searches for the entries and changes them. All other entries (if there are others) are not affected!
Script doesn´t need BusyBox binary so its a very small Package. No Framework-res.apk is added so it should be universal.
Please make a Backup before you try this! And report if working!

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
NAV_Only: none of the hardware keys are enabled (except Volume and Power)
NAV_HomeWake: Home button wakes device but has no other function
NAV_HomeCamera: Home button opens Camera and takes Pictures but has no other function
NAV_StockKeys: Functions as normal but with on Screen Navbar
NAV_Remove: Removes the mod

Install Instructions:
- Boot into recovery
- flash with CWM
- reboot

This should work on any device with the same keybindings:

Code:

Code:
key 172	HOME
key 158	BACK
key 139	MENU
In the this files:
Code:

Code:
/system/usr/keylayout/sec_touchkey.kl
/system/usr/keylayout/gpio-keys.kl

Code:

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this Mod
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
 */
Cheers
Steven

One day some of the kids from the neighborhood carried my mother's groceries all the way home. You know why? It was outta respect." -Henry Hill

Devices:
 


Google Glass

Current Phones:
HTC One M8 Gray 32GB + 64GB SD
HTC One M7 Silver 64GB

Current Tablets:
Sony Z Ultra GPe (Phone but use as a tablet)
Samsung Galaxy Note 10.1 2014 Edition 32gb


All new members should watch this:
http://www.youtube.com/watch?v=JmvCpR45LKA


Follow me on twitter! http://www.twitter.com/graffixnyc

G+: http://gplus.to/graffixnyc
The Following 31 Users Say Thank You to graffixnyc For This Useful Post: [ Click to Expand ]
 
graffixnyc
Old
(Last edited by graffixnyc; 3rd August 2012 at 06:13 PM.)
#2  
graffixnyc's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4031
Posts: 5,256
Join Date: Jan 2011
Location: New York City

 
DONATE TO ME
DISCLAIMER: I am NOT responsible for your device. Use at own risk. If your device gets bricked its not my fault or responsibility


NEW: Universal DL links are here: http://forum.xda-developers.com/show...2&postcount=98

instructions:
Boot into recovery, flash, reboot

One day some of the kids from the neighborhood carried my mother's groceries all the way home. You know why? It was outta respect." -Henry Hill

Devices:
 


Google Glass

Current Phones:
HTC One M8 Gray 32GB + 64GB SD
HTC One M7 Silver 64GB

Current Tablets:
Sony Z Ultra GPe (Phone but use as a tablet)
Samsung Galaxy Note 10.1 2014 Edition 32gb


All new members should watch this:
http://www.youtube.com/watch?v=JmvCpR45LKA


Follow me on twitter! http://www.twitter.com/graffixnyc

G+: http://gplus.to/graffixnyc
The Following 8 Users Say Thank You to graffixnyc For This Useful Post: [ Click to Expand ]
 
labbe-
Old
(Last edited by labbe-; 22nd July 2012 at 11:47 AM.)
#3  
labbe-'s Avatar
Senior Member
Thanks Meter 245
Posts: 515
Join Date: Jun 2012
Location: Turku
wow, finally! i tried to do this in cm9 but got huge errors on recompiling the framework-res on files i didnt even touch. this forced me to use slim ics which was a bummer because it lags so much behind on cm nightlies.. i just HATE the home key :banghead:

also this allows me to remap the home key to camera so it is meta in connectbot which sppeds up using irssi quite a bit ^^

Sent from my GT-I9300 using Tapatalk 2
 
Pootie_
Old
#4  
Junior Member
Thanks Meter 4
Posts: 9
Join Date: Aug 2011
Location: Auckland
Thanks heaps for making this. The first file flashes fine however the second file keeps returning an error. I would really like to use the home button to wake from sleep.

Sent from my GT-I9300 using xda premium
 
graffixnyc
Old
#5  
graffixnyc's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4031
Posts: 5,256
Join Date: Jan 2011
Location: New York City

 
DONATE TO ME
Quote:
Originally Posted by Pootie_ View Post
Thanks heaps for making this. The first file flashes fine however the second file keeps returning an error. I would really like to use the home button to wake from sleep.

Sent from my GT-I9300 using xda premium
I'll take a look at the 2nd. It flashed fine for me. It could be a bad Upload or DL.

What was the error you got? here I reuploaded it. Try this one http://goo.im/devs/graffixnyc/CM10_NAV_HomeWake.zip

One day some of the kids from the neighborhood carried my mother's groceries all the way home. You know why? It was outta respect." -Henry Hill

Devices:
 


Google Glass

Current Phones:
HTC One M8 Gray 32GB + 64GB SD
HTC One M7 Silver 64GB

Current Tablets:
Sony Z Ultra GPe (Phone but use as a tablet)
Samsung Galaxy Note 10.1 2014 Edition 32gb


All new members should watch this:
http://www.youtube.com/watch?v=JmvCpR45LKA


Follow me on twitter! http://www.twitter.com/graffixnyc

G+: http://gplus.to/graffixnyc
The Following User Says Thank You to graffixnyc For This Useful Post: [ Click to Expand ]
 
Pootie_
Old
#6  
Junior Member
Thanks Meter 4
Posts: 9
Join Date: Aug 2011
Location: Auckland
Sorry. I cannot recall the error message. Something about a missing file. I tried the new link/file and it works perfectly. Thanks for your super quick help.

Sent from my GT-I9300 using xda premium
 
labbe-
Old
#7  
labbe-'s Avatar
Senior Member
Thanks Meter 245
Posts: 515
Join Date: Jun 2012
Location: Turku
@OP, is there any way to see from the cm10 changelog if the framework-res has been edited in any way? i know i could look it up from source but i am unsure how..

just asking because im about to flash todays build and wondering if applying this will break anything.. think ill make a nandroid just in case
 
arcadia2112
Old
#8  
arcadia2112's Avatar
Senior Member
Thanks Meter 8
Posts: 158
Join Date: Jun 2009
Location: Dark Side Of The Moon
Default Bootloop

Hi he latest CM10 preview is boot looping when installing the zip. Thanks love your work for the ROM is incomplete without it.
Sony Xperia Z
Samsung Galaxy S3 retired
Samsung Galaxy S2 retired
Samsung Galaxy S retired
BlackBerry Bold retired
HTC Legend retired
HTC HD2 retired
HTC HD retired
HTC Touch 2 retired
 
graffixnyc
Old
#9  
graffixnyc's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4031
Posts: 5,256
Join Date: Jan 2011
Location: New York City

 
DONATE TO ME
Quote:
Originally Posted by labbe- View Post
@OP, is there any way to see from the cm10 changelog if the framework-res has been edited in any way? i know i could look it up from source but i am unsure how..

just asking because im about to flash todays build and wondering if applying this will break anything.. think ill make a nandroid just in case
Quote:
Originally Posted by arcadia2112 View Post
Hi he latest CM10 preview is boot looping when installing the zip. Thanks love your work for the ROM is incomplete without it.


I will update it in a few with the new preview 7 frame work. I'm currently working on doing a couple different variations.

I have the one where all buttons are disabled and where the home button wakes (the other home button functions are still working so I'm trying to figure that out)

another variation I'm working on this second is to remap menu to the home button so the home button acts as the menu key instead. the issue I'm trying to figure out now is when I do this, The long press on the capactive menu button is enabled even when a short press is disabled. Once I figure out these too issues (getting the home button to ONLY wake the device and getting it so a long press of the menu cap button doesnt do anything) I will just update the FW for preview 7 which should only take me a few minutes

One day some of the kids from the neighborhood carried my mother's groceries all the way home. You know why? It was outta respect." -Henry Hill

Devices:
 


Google Glass

Current Phones:
HTC One M8 Gray 32GB + 64GB SD
HTC One M7 Silver 64GB

Current Tablets:
Sony Z Ultra GPe (Phone but use as a tablet)
Samsung Galaxy Note 10.1 2014 Edition 32gb


All new members should watch this:
http://www.youtube.com/watch?v=JmvCpR45LKA


Follow me on twitter! http://www.twitter.com/graffixnyc

G+: http://gplus.to/graffixnyc
The Following 2 Users Say Thank You to graffixnyc For This Useful Post: [ Click to Expand ]
 
graffixnyc
Old
#10  
graffixnyc's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4031
Posts: 5,256
Join Date: Jan 2011
Location: New York City

 
DONATE TO ME
Updated DL links for P7

One day some of the kids from the neighborhood carried my mother's groceries all the way home. You know why? It was outta respect." -Henry Hill

Devices:
 


Google Glass

Current Phones:
HTC One M8 Gray 32GB + 64GB SD
HTC One M7 Silver 64GB

Current Tablets:
Sony Z Ultra GPe (Phone but use as a tablet)
Samsung Galaxy Note 10.1 2014 Edition 32gb


All new members should watch this:
http://www.youtube.com/watch?v=JmvCpR45LKA


Follow me on twitter! http://www.twitter.com/graffixnyc

G+: http://gplus.to/graffixnyc

The Following 3 Users Say Thank You to graffixnyc For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes