• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MOD][Magisk] Disable Navbar For 3rd-Party Navigation Gestures

Search This thread

nontheoretical

Senior Member
Sep 6, 2016
52
43
New Orleans
Google Pixel 5
If you're like me, you like using a 3rd party navigation gesture app with the navbar hidden.
In Android 11, google disabled wm overscan which makes it difficult to hide the navbar.

Luckily, it's possible with Magisk and a little bit of tinkering.

THIS GUIDE ASSUMES YOU'RE FAMILIAR WITH MAGISK AND MAGISK MODULES.


Prerequisites:
  1. Install Magisk
  2. Install Magisk Hide Props Config
  3. Install Universal SafetyNet Fix
    • optional but recommended if you use gPay, Bank Apps, etc.
  4. Install a terminal emulator (like Termux)
    • this is also theoretically possible with platform-tools and root over adb shell but my tutorial will be using the terminal
  5. Settings > System > Gestures > System Navigation is set to 3-button Navigation
    • this is only required if you're using a 3rd party gesture navigation app (I use Vivid Navigation Gestures)
    • you can skip #5 at your own risk if you wish to keep Google's Gestural Navigation but hide the UI
To disable the Navbar, enter the following commands (don't type the descriptions).
  1. su (gain root access)
  2. props (open the hideprops menu)
  3. 4 (Add/edit prop values)
  4. n (New custom prop)
  5. qemu.hw.mainkeys (the build prop for whether to include softkey navbar)
  6. 1 (sets the build prop to disable the softkey navbar)
  7. y (yes to continue with defaults)
  8. y (yes to reboot)
That's it! Once your phone reboots you should no longer have a Navbar.
In theory, this should work on many devices, but I've only tested it on my stock Pixel 3 and Pixel 5.

This method is even better than overscan IMO because it doesn't come with the same quirks.
I had issues with the volume menu appearing off-screen and certain fullscreen apps assuming the Navbar was still there.
 

elong7681

Senior Member
May 23, 2015
226
70
40
US
Moto X4
Google Pixel 2 XL
If you're like me, you like using a 3rd party navigation gesture app with the navbar hidden.
In Android 11, google disabled wm overscan which makes it difficult to hide the navbar.

Luckily, it's possible with Magisk and a little bit of tinkering.

THIS GUIDE ASSUMES YOU'RE FAMILIAR WITH MAGISK AND MAGISK MODULES.


Prerequisites:
  1. Install Magisk
  2. Install Magisk Hide Props Config
  3. Install Universal SafetyNet Fix
    • optional but recommended if you use gPay, Bank Apps, etc.
  4. Install a terminal emulator (like Termux)
    • this is also theoretically possible with platform-tools and root over adb shell but my tutorial will be using the terminal
  5. Settings > System > Gestures > System Navigation is set to 3-button Navigation
    • this is only required if you're using a 3rd party gesture navigation app (I use Vivid Navigation Gestures)
    • you can skip #5 at your own risk if you wish to keep Google's Gestural Navigation but hide the UI
To disable the Navbar, enter the following commands (don't type the descriptions).
  1. su (gain root access)
  2. props (open the hideprops menu)
  3. 4 (Add/edit prop values)
  4. n (New custom prop)
  5. qemu.hw.mainkeys (the build prop for whether to include softkey navbar)
  6. 1 (sets the build prop to disable the softkey navbar)
  7. y (yes to continue with defaults)
  8. y (yes to reboot)
That's it! Once your phone reboots you should no longer have a Navbar.
In theory, this should work on many devices, but I've only tested it on my stock Pixel 3 and Pixel 5.

This method is even better than overscan IMO because it doesn't come with the same quirks.
I had issues with the volume menu appearing off-screen and certain fullscreen apps assuming the Navbar was still there.
@nontheoretical Do we revert back by reverting the module back to defaults?
 

Hecke92

Senior Member
Dec 27, 2011
324
107
Can somebody help me real quick?

I installed it, but after reboot I only get a blinkung "lock"-icon and nothing more, cant control my phone.

Tried to revert it using adb, but I get
C:\WINDOWS\system32>adb shell
$ su -c
/system/bin/sh: su: inaccessible or not found
$
 

titanreign

Member
Nov 1, 2012
47
10
Not working on op7 pro running a11 (oos 11.0.1.1)
I've always just edited build.prop adding the qemu.hw.mainkeys=1 myself. Neither of which seem to be working for me now.
 

andybones

Forum Moderator
Staff member
May 18, 2010
14,636
14,924
Google Pixel 5
Can probably pull the modified .apk from this MOD
 
Last edited:
  • Like
Reactions: Veiranx and pchel48

Pho3nX

Senior Member
Jun 13, 2013
2,421
1,762
If you're like me, you like using a 3rd party navigation gesture app with the navbar hidden.
In Android 11, google disabled wm overscan which makes it difficult to hide the navbar.

Luckily, it's possible with Magisk and a little bit of tinkering.

THIS GUIDE ASSUMES YOU'RE FAMILIAR WITH MAGISK AND MAGISK MODULES.


...

Work perfectly on my Xiaomi.eu ROM (Mi 11) and Lawnchair 11 + My Gesture - Edge navigation gesture

Thx mate, i miss my Launcher so long time, i don't like MIUI Launcher


PS ; i have install my program after lol, without Navbar & Gestures. If Someone forget to install Gesture app BEFORE, just :

- Click Settings > Search "Google Play" > "Google Play Protect" > In "Security Status again "Google Play Protect" > Use Back Arrow on Front left > You are on Google Play, now just install your favorite Gesture app :)
 
Last edited:

Veiranx

Member
Dec 2, 2020
23
2
Can probably pull the modified .apk from this MOD
Works perfectly. The only slight to this method is that there are three one-pixel lines along the bottom of the screen. Small price to pay compared to having the camera slowly switching modes!
 
Last edited:

Veiranx

Member
Dec 2, 2020
23
2
Screenshot_20210812-092914_XDA_Developers.png


I already have the obvious three lines there, but just below them are the barely visible extra lines.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    If you're like me, you like using a 3rd party navigation gesture app with the navbar hidden.
    In Android 11, google disabled wm overscan which makes it difficult to hide the navbar.

    Luckily, it's possible with Magisk and a little bit of tinkering.

    THIS GUIDE ASSUMES YOU'RE FAMILIAR WITH MAGISK AND MAGISK MODULES.


    Prerequisites:
    1. Install Magisk
    2. Install Magisk Hide Props Config
    3. Install Universal SafetyNet Fix
      • optional but recommended if you use gPay, Bank Apps, etc.
    4. Install a terminal emulator (like Termux)
      • this is also theoretically possible with platform-tools and root over adb shell but my tutorial will be using the terminal
    5. Settings > System > Gestures > System Navigation is set to 3-button Navigation
      • this is only required if you're using a 3rd party gesture navigation app (I use Vivid Navigation Gestures)
      • you can skip #5 at your own risk if you wish to keep Google's Gestural Navigation but hide the UI
    To disable the Navbar, enter the following commands (don't type the descriptions).
    1. su (gain root access)
    2. props (open the hideprops menu)
    3. 4 (Add/edit prop values)
    4. n (New custom prop)
    5. qemu.hw.mainkeys (the build prop for whether to include softkey navbar)
    6. 1 (sets the build prop to disable the softkey navbar)
    7. y (yes to continue with defaults)
    8. y (yes to reboot)
    That's it! Once your phone reboots you should no longer have a Navbar.
    In theory, this should work on many devices, but I've only tested it on my stock Pixel 3 and Pixel 5.

    This method is even better than overscan IMO because it doesn't come with the same quirks.
    I had issues with the volume menu appearing off-screen and certain fullscreen apps assuming the Navbar was still there.
    2
    On Pixel 5, after setting prop, there's a delay when switching between camera modes. It goes from 1 sec without it enabled to almost 5 second after enabling it.
    This is known issue when doing this MOD. I believe that SystemUIGoogle.apk needs to be modified to remedy it.
    2
    Can probably pull the modified .apk from this MOD