[Mod] Enable nav bar on any rom

Search This thread

tekhna

Senior Member
Dec 31, 2007
1,214
331
Works beautifully on the 7/26 CM10 build. Only bug seems to be that the buttons don't populate in the stock camera app, there are just three white dots. Thanks!

Edit: oh, and there's a blank black bar on the lockscreen that I assue isn't supposed to be there.
 
Last edited:

Sheffy007

Senior Member
Jun 23, 2012
91
18
Works beautifully on the 7/26 CM10 build. Only bug seems to be that the buttons don't populate in the stock camera app, there are just three white dots. Thanks!

Edit: oh, and there's a blank black bar on the lockscreen that I assue isn't supposed to be there.

That's not a bug. The buttons still work. They just disappear to look cleaner. And the bar never disappears. It's just the cleanness thing. I'm going to work on stock later.

Sent from my SCH-I535 using xda app-developers app
 

prenedo

Senior Member
Mar 22, 2011
1,016
264
Google Pixel 6 Pro
Google Pixel 6
So what's the verdict on TW roms (synergy)? I would love to have this option. Does it seem like you can make it work? I've seen it on other carriers s3's... if you need testers give me a shout. Thanks for your contribution either way!

Sent from my SCH-I535 using xda app-developers app
 

Sheffy007

Senior Member
Jun 23, 2012
91
18
So what's the verdict on TW roms (synergy)? I would love to have this option. Does it seem like you can make it work? I've seen it on other carriers s3's... if you need testers give me a shout. Thanks for your contribution either way!

Sent from my SCH-I535 using xda app-developers app

I might need a tester either tonight or tomorrow. I'm thinking it might be something with the building process. And actually I think I fudged up on the process. Crap. Sorry guys. But we may have a shot!

Sent from my SCH-I535 using xda app-developers app
 
  • Like
Reactions: prenedo

Sheffy007

Senior Member
Jun 23, 2012
91
18
OP Updated with all download links. (All should work now. Let me know). Thanks for the support guys. Hope everyone likes them.

I will also take custom requests for height and width if anyone wants it.
 

sincerity

Senior Member
Dec 22, 2010
375
19
thanks for this but it bootlooped me @ samsung logo on synergy 1.3. I just reinstalled the rom and seems to be working now as it's optimizing applications...any ideas?
 

Sheffy007

Senior Member
Jun 23, 2012
91
18
thanks for this but it bootlooped me @ samsung logo on synergy 1.3. I just reinstalled the rom and seems to be working now as it's optimizing applications...any ideas?

I know this isn't ideal, but try moving the framework to /system, change permissions to rw-r--r--, then moving to /system/framework and reading the original framework as framework-res.apk.bak

If that doesn't at least bring up the nav bar, it's something wrong with the app and not the zip

Sent from my SCH-I535 using xda app-developers app
 

prenedo

Senior Member
Mar 22, 2011
1,016
264
Google Pixel 6 Pro
Google Pixel 6
Just a heads up, the synergy .zip works on 1.2. Thanks for the awesome mod! Hopefully things will get worked out for newer versions of synergy... kinda glad I didn't update now.

One thing I miss is a dedicated search key (or being able to pull up search from a long press). Could you point me in the right direction to remap long press function of the on screen home button? It's currently mapped to s-voice, which I never use...

Sent from my SCH-I535 using xda app-developers app
 
Last edited:

Sheffy007

Senior Member
Jun 23, 2012
91
18
Just a heads up, the synergy .zip works on 1.2. Thanks for the awesome mod! Hopefully things will get worked out for newer versions of synergy... kinda glad I didn't update now.

One thing I miss is a dedicated search key (or being able to pull up search from a long press). Could you point me in the right direction to remap long press function of the on screen home button? It's currently mapped to s-voice, which I never use...

Sent from my SCH-I535 using xda app-developers app

Oh wow thanks for letting me know! I'm running synergy now so I'll be working on it

Oh and I run nova launcher. You can set long press home button as search. Or if you really wanted to get into it, it's probably somewhere in the /system/usr/keylayouts
 
Last edited:

rpxz

Senior Member
Jun 5, 2011
99
11
Going to try this out on CM10 right now. I missed the g nexus button layout. Maybe someone should forward this to the devs working on CM10 so this can be an option :eek:
 

jdhas

Senior Member
Sep 22, 2010
400
96
Boston, MA
Not my idea but I find out that if you want nav bars, you can edit the framework-res.apk and replace it in /system/framework

If you want, I can take your rom-specific framework and edit it. Just let me know if anyone wants it. Also there's a mod to enable the home button as a physical camera button and disable the capacitive buttons. I can wrap it all in a flashable zip. Just want to get into the dev community.

All credit goes to monstaX for the cm10 bars on the Sprint version.

By downloading you understand that i cannot be held liable if you bork your phone. Use at your own discretion.

If it works, remember to thank me. If it doesn't, I'll do my best to fix it.

Downloads:
CM10: https://www.box.com/files/0/f/0/1/f_2749145939#/files/0/f/0/1/f_2749145939
CM10 Undo: https://www.box.com/files/0/f/0/1/f_2749148649#/files/0/f/0/1/f_2749148649
Stock (should work now): https://www.box.com/s/3cfa32fbbc6e96143e49
Stock Undo: https://www.box.com/s/6db1d4fc045eec90ace4
Synergy: https://www.box.com/s/b0c872e2d30dc16c1ef3
Synergy Undo: https://www.box.com/s/775c198d18e217c286d0
Beans: https://www.box.com/s/15af0553b3bfd9715b25
Beans Undo: https://www.box.com/s/669d8f47ef566343e14e

Sent from my SCH-I535 using xda app-developers app

Thanks for all of your work on this! I'd love to check it out, but the link to the CM10 file seems to be broken.

-J

Sent from a galaxy far, far away....
 

luuuuuuukee

Member
Jun 15, 2010
19
3
Not my idea but I find out that if you want nav bars, you can edit the framework-res.apk and replace it in /system/framework

If you want, I can take your rom-specific framework and edit it. Just let me know if anyone wants it. Also there's a mod to enable the home button as a physical camera button and disable the capacitive buttons. I can wrap it all in a flashable zip. Just want to get into the dev community.

All credit goes to monstaX for the cm10 bars on the Sprint version.

By downloading you understand that i cannot be held liable if you bork your phone. Use at your own discretion.

If it works, remember to thank me. If it doesn't, I'll do my best to fix it.

Downloads:
CM10: https://www.box.com/files/0/f/0/1/f_2749145939#/files/0/f/0/1/f_2749145939
CM10 Undo: https://www.box.com/files/0/f/0/1/f_2749148649#/files/0/f/0/1/f_2749148649
Stock (should work now): https://www.box.com/s/3cfa32fbbc6e96143e49
Stock Undo: https://www.box.com/s/6db1d4fc045eec90ace4
Synergy: https://www.box.com/s/b0c872e2d30dc16c1ef3
Synergy Undo: https://www.box.com/s/775c198d18e217c286d0
Beans: https://www.box.com/s/15af0553b3bfd9715b25
Beans Undo: https://www.box.com/s/669d8f47ef566343e14e

Sent from my SCH-I535 using xda app-developers app

the cm10 link also isn't working for me. It says the item "Has either been deleted or is unavailable to you."

Would anybody mind uploading this somewhere else? This seems great and i would love to flash cm10:fingers-crossed:
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    All, when I get a chance I plan to post instructions on how to do try out the mod for any rom you'd like (and any version for that matter).

    I'll be basing the instructions off of what I learned from Sheffy (who was nice enough to take the time to explain the mod to me), and from personal experience / trial and error.

    The instructions should remove a lot of the issues encountered, spread knowledge, provide some fun modding experience, empower users, and help our dev/modder community grow. Stay tuned...

    Sent from my SCH-I535 using xda premium



    All,
    Here's a guide on how to enable the on-screen Nav Bar buttons. It may be a good idea to take this info and append it to the OP, adding the guide marker to the title of the thread.


    Thanks:
    Sheffy007 for his nav bar zips and showing me the ropes!
    MonstaX and HolySmokesBatty for their work in this Sprint GS3 thread (a lot of useful info).
    Awais Imran who wrote this tutorial.
    ldrifta at Androidforums.com for writing this tutorial.
    iBotPeaches for this utility.


    Disclaimer:
    -As with all XDA community provided mods, try at your own risk.
    -The community is happy to help, but that doesn't mean you should expect a warrantee.
    -Most issues you'll encounter can be resolved (XDA is one of the few places that you can find a plethora of "soft bricks").
    -You can get out of most jams with a Nandroid backup. It's always important to perform a backup before attempting a new mod.
    -I've tested this method with Beans R3.1 (I know, I know, I need to flash more often). The button mapping portion (provided by Sheffy) may not work with AOSP based roms.
    -Note, I am linux guy, but you can perform this on linux, windows, and mac os x. Just grab the appropriate aapt executable (see below) and adapt the zipping to your platform.
    -It is important to note that those who wish to adjust this guide to a device other than the Verizon Galaxy S III will need to adjust the updater-script in the final CWM zip in order to prevent a brick (possibly hard brick). The Verizon Galaxy S III system partition is mmcblk0p14.



    Some quick reading and familiarization:
    apktool tutorial
    This tutorial on enabling the on-screen navigation buttons.



    What you'll need:
    -7zip (if you don't already have it).
    -apktool 1.49 with aapt (you can find it here)
    -The Java JRE from Oracle here (if you don't already have it)
    -The original ROM zip for the ROM to which you would like to add the nav bar or a copy of framework-res.apk and twframework-res.apk (touchwiz only) from your phone.
    -One of Sheffy's Nav Bar zips. I recommend the one most similar to the ROM you are using. For example, I'm on Beans R3.1, so I chose the Beans zip.



    High level overview of the process:
    -We'll be copying two Android Packages (framework-res.apk and twframework-res.apk (touchwiz only) ) from your ROM's zip (or from your phone).
    -Using apktool and the two apks as input, we'll "decompile" the framework-res package to a group of folders.
    -In this group of folders, we'll be making some changes to some xml files.
    -After the necessary changes are made, we'll be "re-compile" the framework-res.apk file.
    -Finally, we'll be packaging the the framework-res.apk in a CWM zip so we can flash it on the phone (and not have to worry about permissions)



    Step-by-step:
    1) Install 7zip.
    2) Make a new folder called "NavBar" (or whatever floats your boat) and place the the apktool_1.4.9.jar and aapt files inside. If on linux or os x, ensure the files have execute permissions by opening the folder in a terminal and running the commands "chmod 755 apktool_1.4.9.jar" and "chmod 755 aapt".
    3) Copy framework-res.apk and twframework-res.apk (if on touchwiz rom) to the NavBar folder. You can obtain these files from the system/framework/ folder in your ROM's CWM zip or from your phone (using a file manager with root permissions, copy the files to your sdcard and transfer to your computer to the NavBar folder).
    4) Open the windows command line (search for CMD from the start menu) or open a terminal (linux and osx) and open the NavBar folder on the command line.
    5) Install your existing framework files in apktool by running "java -jar apktool_1.4.9.jar if framework-res.apk" and "java -jar apktool_1.4.9.jar if twframework-res.apk".
    6) "decompile" your framework-res.apk file by running "java -jar apktool_1.4.9.jar d framework-res.apk frameworkNB".
    7) Rename the framework-res.apk file to framework-res.apk.orig.
    8) Open bools.xml from /res/values/bools.xml using a text editor such as Notepad. Find config_showNavigationBar and set its value to true (step 3 from Awais Imran's tutorial)
    9) If you prefer, resize the nav bar by opening up /res/values/dimens.xml, find navigation_bar_height and navigation_bar_width, and edit their values to something which suits you best (step 5 from Awais Imran's tutorial)
    10) "recompile" your framework-res.apk by running "java -jar apktool_1.4.9.jar b frameworkNB framework-res.apk" (you'll get quite a few default translation warnings. This is ok).
    11) Make a copy of the nav bar zip file that you chose previously (provided by Sheffy) and rename it to navbar.zip. Open the zip file in 7zip.
    12) Replace the framework-res.apk file in navbar.zip with the new framework-res.apk file you just created (with your fancy new Nav Bar).
    13) Create your own UNDO CWM zip by creating another copy of the nav bar zip file you originally chose, renaming it to navbarUNDO.zip, and copying your original framework-res.apk (which you'll have to rename from framework-res.apk.orig back to framework-res.apk in a different folder) over the framework-res.apk in the navbarUNDO.zip file.
    14) Transfer navbar.zip and navbarUNDO.zip to your SDCard, perform a nandroid backup, and flash your navbar.zip file in CWM Recovery. If you have any problems, flash navbarUNDO.zip. If you still have problems, restore your nandroid backup.

    Hope this helps!
    4
    So pretty much all of this is useless. Navigation bar can be enabled with a simple build.prop edit. The new line is

    qemu.hw.mainkeys = 0

    Sent from my SCH-I535 using xda app-developers app
    2
    Here's CM10. "Build-Height+width-Camera remapping"

    CM10-Default-Camera: https://www.box.com/s/5727959de8d33b6c1c0a

    CM10-Undo: https://www.box.com/s/5e469d885be19bf93766

    Let me know how it goes. **********Make a backup!!!!!*********

    Oh and turn auto brightness off before you flash. otherwise you'll have to turn it off and then reboot after flashing.
    1
    Any particular place where it needs to go in the build prop?

    Sent from my SCH-I535 using xda app-developers app

    I placed it beneath everything else, so it's the last line. I figured it would be easiest to find it there when I want to delete it. Reboot after you've input that line and saved it.

    Sent from my SCH-I535 using xda app-developers app