Hiding the navigation bar NO ROOT, non-immersive via ADB

montajd

Senior Member
Apr 24, 2015
164
32
48
Los Angeles
Hey everyone, I just wanted to share a juicy little piece of information I came across today. If you already knew about it great, for those who don't, listen up!
On Oreo, setting the navbar height to 0pt does not work. So instead, do this!

adb shell wm overscan 0,0,0,-143

That's all you need. It can also be used to set the height of the navbar to your liking. -143 just happens to be the value at which no trace of the navbar can be seen, and apps will utilize the whole screen, similar to immersive.

Why would someone want this? Easy, gestures. I personally use OnePlus Gestures, but choose whatever you want!
Anyways, enjoy!

To reset back to original settings:

adb shell wm overscan 0,0,0,0
 
Last edited:

cougar11

Senior Member
Sep 26, 2010
853
301
93
Hey everyone, I just wanted to share a juicy little piece of information I came across today. If you already knew about it great, for those who don't, listen up!
On Oreo, setting the navbar height to 0pt does not work. So instead, do this!

adb shell wm overscan 0,0,0,-143

That's all you need. It can also be used to set the height of the navbar to your liking. -143 just happens to be the value at which no trace of the navbar can be seen, and apps will utilize the whole screen, similar to immersive.

Why would someone want this? Easy, gestures. I personally use OnePlus Gestures, but choose whatever you want!
Anyways, enjoy!
How and where can i get the Oneplus Gestures on the pixel 2 xl?

And can this ADB shell comd be reverted?

thanks,
 

cougar11

Senior Member
Sep 26, 2010
853
301
93
The OnePlus Gestures app in the Play Store

https://play.google.com/store/apps/details?id=com.ivianuu.oneplusgestures

And the settings can be reverted, I've updated the OP to reflect how to do so.
just bought the app...works great. thank you.

---------- Post added at 12:47 PM ---------- Previous post was at 12:41 PM ----------

The OnePlus Gestures app in the Play Store

https://play.google.com/store/apps/details?id=com.ivianuu.oneplusgestures

And the settings can be reverted, I've updated the OP to reflect how to do so.
In landscape the nav bar shows....?

Sent from my Pixel 2 XL using Tapatalk
 

RealCaracas

Senior Member
Jan 13, 2013
187
66
48
Madrid
Hello!!.. I use this also to hide my navbar but with -170

Haven't seen the navbar since then :D

The only thing that you will miss are the bottom accesses on the lockscreen (camera, assistant), although they are still accessible by swiping from corners...

For gestures I use "Edge gestures".
 
  • Like
Reactions: erojas388

montajd

Senior Member
Apr 24, 2015
164
32
48
Los Angeles
Hello!!.. I use this also to hide my navbar but with -170

Haven't seen the navbar since then :D

The only thing that you will miss are the bottom accesses on the lockscreen (camera, assistant), although they are still accessible by swiping from corners...

For gestures I use "Edge gestures".
I didn't even think about that, I have those disabled with Substratum, thanks for pointing that out though