[Guide] [Root] Get rid of navbar without any drawbacks (no xposed / substratum)

Search This thread

nxss4

Senior Member
Nov 14, 2011
396
119
C:\Users
As we all know, it's not possible to remove the 5t navbar by doing a build.prop edit.
This is necessary when switching to gesture based navigation (https://play.google.com/store/apps/details?id=com.suphi.swipenavigation)

Pros of gesture navigation: It gives back precious screen estate, prevents burn in and keeps me from tapping the home key instead of 'space' when typing

For more information: https://forum.xda-developers.com/oneplus-5t/themes/setup-navbar-clean-t3708211

The substratum theme disabling the navbar is not an option for me (it breaks the restart menu) and neither is xposed (tripping safety net).

Listen me out: xposed is temporary, it will be removed later on!

So here it goes:

Additional step: idk if this is necessary, I did it and it worked:
Download a build.prop editor and modify this line "#qemu.hw.mainkeys=0"
Don't forget to remove the hashtag, and change 0 into 1

1) Install magisk and download systemless xposed throught magisk. (sdk 25, of course)
2) Don't forget to install xposed installer.apk
3) Reboot
4) Download gravity box nougat through the xposed installer app, enable it.
5) Open gravity box, In 'navigation bar tweaks' turn on the master switch and then turn 'enable navigation bar' off.
Optional: go to media settings and force media volume, this always pisses me off...
6) Reboot
7) Go to settings, buttons, and now a setting to disable the navigation bar magically appeared! Turn it off. IT SHOULD LOOK LIKE THE SCREENSHOT ATTACHED
8) Have some fun playing with the "capacitive keys backlight" option even though your 5t doesn't have any.
9) Disable xposed framework in magisk
10) Reboot, the navbar should be gone (if not, tell me, there is an additional step that might be necessary, but i prefer to don't have people messing with their build.prop) then check safety net, and install swipe navigation (can be tricky without navbar :p). https://play.google.com/store/apps/details?id=com.suphi.swipenavigation

Let me know if it works!

Edit: image is broken. https://imgur.com/a/xmA1K
attachment.php
 

Attachments

  • Screenshot_20171129-214412.jpg
    Screenshot_20171129-214412.jpg
    246.3 KB · Views: 5,860
Last edited:

Bradl79

Senior Member
May 25, 2008
3,357
4,583
J'Ville
Dude thank u, it works how I wanted it, i just wanted the Navbar height lowered without the power button issues with the other mod and this works great, thank u for the tutorial
 

Squabl

Senior Member
Jun 21, 2014
297
125
1) Install magisk and download systemless xposed throught magisk. (sdk 25, of course)
2) Don't forget to install xposed installer.apk
3) Reboot
4) Download gravity box nougat through the xposed installer app, enable it.
5) Open gravity box, In 'navigation bar tweaks' turn on the master switch and then turn 'enable navigation bar' off.
Optional: go to media settings and force media volume, this always pisses me off...
6) Reboot
7) Go to settings, buttons, and now a setting to disable the navigation bar magically appeared! Turn it off.
8) Have some fun playing with the "capacitive keys backlight" option even though your 5t doesn't have any.
9) Disable xposed framework in magisk
10) Reboot, the navbar should be gone

Let me know if it works!

I did like you suggested and it worked! Thanks! After disabling the navigation bar in GravityBox I rebooted my phone and opened up the phone's settings menu and voila. Now I have a button to disable/enable navigation bar. I uninstalled gravity box and xposed and my phone still passes safetynet. Two screenshots below:
Edit. Attachments didn't work, here is a link instead:
https://imgur.com/a/93uU4
 
Last edited:
  • Like
Reactions: dajj

nxss4

Senior Member
Nov 14, 2011
396
119
C:\Users
I did like you suggested and it worked! Thanks! After disabling the navigation bar in GravityBox I rebooted my phone and opened up the phone's settings menu and voila. Now I have a button to disable/enable navigation bar. I uninstalled gravity box and xposed and my phone still passes safetynet. Two screenshots below:
Edit. Attachments didn't work, here is a link instead:
https://imgur.com/a/93uU4

That's strange, I thought that button was there from the beginning?
 

bp328i

Senior Member
May 22, 2010
2,155
1,196
Tampa Bay
7) Go to settings, buttons, and now a setting to disable the navigation bar magically appeared! Turn it off.

If you are talking about the second option in my screenshot this option has always been there.
 

Attachments

  • Screenshot_20171129-140740.jpg
    Screenshot_20171129-140740.jpg
    212.5 KB · Views: 805
Last edited:

Squabl

Senior Member
Jun 21, 2014
297
125
That's strange, I thought that button was there from the beginning?
Yeah, it was from the begining. :eek: Was there an other one while the GravityBox was installed and after uninstalling it the option to turn on/off the navigation bar also vanished? I tested it a couple of times on and off and didn't even notice it had gone when I took the screenshot.

I guess I would have to install xposed/GravityBox again to get the navigation bar back if for some reason I wanted it?
 

bp328i

Senior Member
May 22, 2010
2,155
1,196
Tampa Bay
Yeah, it was from the begining. :eek: Was there an other one while the GravityBox was installed and after uninstalling it the option to turn on/off the navigation bar also vanished? I tested it a couple of times on and off and didn't even notice it had gone when I took the screenshot.

I guess I would have to install xposed/GravityBox again to get the navigation bar back if for some reason I wanted it?


Ok,

So there was another option listed there to turn off the nav bar and not just the one to hide it. Cool...
 

nxss4

Senior Member
Nov 14, 2011
396
119
C:\Users
If you are talking about the second option in my screenshot this option has always been there.

Nope, it's not that setting.
Once you disable the navbar in gravitybox the 'buttons settings menu' changes to the Oneplus 5 one, very funny.

I should've taken a screenshot of it.

If this doesn't work for you, then download a build.prop editor and modify this line "#qemu.hw.mainkeys=0"
Don't forget to remove the hashtag, and change 0 in 1

After doing this, follow the guide again, then the OP5 settings should appear in settings => buttons
 

nxss4

Senior Member
Nov 14, 2011
396
119
C:\Users
Yeah, it was from the begining. :eek: Was there an other one while the GravityBox was installed and after uninstalling it the option to turn on/off the navigation bar also vanished? I tested it a couple of times on and off and didn't even notice it had gone when I took the screenshot.

I guess I would have to install xposed/GravityBox again to get the navigation bar back if for some reason I wanted it?

Yep, there are other settings when xposed is enabled, I'll try to do it again and take a screenshot!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    As we all know, it's not possible to remove the 5t navbar by doing a build.prop edit.
    This is necessary when switching to gesture based navigation (https://play.google.com/store/apps/details?id=com.suphi.swipenavigation)

    Pros of gesture navigation: It gives back precious screen estate, prevents burn in and keeps me from tapping the home key instead of 'space' when typing

    For more information: https://forum.xda-developers.com/oneplus-5t/themes/setup-navbar-clean-t3708211

    The substratum theme disabling the navbar is not an option for me (it breaks the restart menu) and neither is xposed (tripping safety net).

    Listen me out: xposed is temporary, it will be removed later on!

    So here it goes:

    Additional step: idk if this is necessary, I did it and it worked:
    Download a build.prop editor and modify this line "#qemu.hw.mainkeys=0"
    Don't forget to remove the hashtag, and change 0 into 1

    1) Install magisk and download systemless xposed throught magisk. (sdk 25, of course)
    2) Don't forget to install xposed installer.apk
    3) Reboot
    4) Download gravity box nougat through the xposed installer app, enable it.
    5) Open gravity box, In 'navigation bar tweaks' turn on the master switch and then turn 'enable navigation bar' off.
    Optional: go to media settings and force media volume, this always pisses me off...
    6) Reboot
    7) Go to settings, buttons, and now a setting to disable the navigation bar magically appeared! Turn it off. IT SHOULD LOOK LIKE THE SCREENSHOT ATTACHED
    8) Have some fun playing with the "capacitive keys backlight" option even though your 5t doesn't have any.
    9) Disable xposed framework in magisk
    10) Reboot, the navbar should be gone (if not, tell me, there is an additional step that might be necessary, but i prefer to don't have people messing with their build.prop) then check safety net, and install swipe navigation (can be tricky without navbar :p). https://play.google.com/store/apps/details?id=com.suphi.swipenavigation

    Let me know if it works!

    Edit: image is broken. https://imgur.com/a/xmA1K
    attachment.php
    9
    Root / non root method

    Hi, a much better approach is to use the command below. It will disable the navbar without restarting. No need to install xposed or gravitybox.

    ROOT Method - enter in a terminal app (i.e. Termux)

    0 for off
    Code:
    su -c settings put system buttons_show_on_screen_navkeys 0

    1 for on
    Code:
    su -c settings put system buttons_show_on_screen_navkeys 1

    NON ROOT Method - enter using adb command

    0 for off
    Code:
    adb shell settings put system buttons_show_on_screen_navkeys 0

    1 for on
    Code:
    adb shell settings put system buttons_show_on_screen_navkeys 1
    2
    Anyone knows how to get the gap under the dock closed?
    If you enabled the default "Hide the navigation bar" in Android, disable it again. :)
    2
    Hi guys, I just updated my post to avoid confusion on which code to be used for root / non-root method.

    https://forum.xda-developers.com/showpost.php?p=75023979&postcount=64

    For rooted users, you can create a quick setting task in Tasker to make it easier to switch the navbar on or off. See screenshots attached.

    I hope this helps.
    2
    @nxss4 I think using joneplus tools to add a quick settings toggle to turn off navigation bar as mentioned by @prile97 is a way easier method.


    Install https://play.google.com/store/apps/details?id=net.jroot3d.joneplustools

    A quick settings tile will now be available to toggle the navigation bar on or off. (open the app in case the tile is not available.

    Could you also add this method to the OP. Seems a lot easier than xposed.
    Thank you.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone