[MODULE] Enable Navigation Bar [Pie] - Disable hw keys/backlight (OnePlus 3/3T)

Search This thread

Beast_Slayer

Senior Member
Sep 11, 2013
165
175
Nagpur
www.youtube.com
Magisk Module - Navigation Bar (9.0 Pie) OnePlus 3/3T​

After release of P based ROMs for OnePlus 3/T they miss out option to switch between hw buttons & On Screen Navigation bar. This module enables navigation bars with an edit in build prop. Also disables hardware buttons by commenting out key functions in keylayout and turns off backlight. Without breaking DT2W or fingerprint sensor.
This is a small module for ease of access to Navigation bar till the time being ROMs based on Android P [9.0] adds into their source.
This mod works on all ROM based on Pie [Including treble Gsi as well.].
Tested on OnePlus 3T: Pixel experience, Pgsi, Banzo Gsi.
For better usage goto Settings>>System>>Gestures>> Enable Swipe up for home button.

Text me on Telegram for issues

FEATURES
Code:
- On Screen navigation bar "qemu.hw.mainkeys="0
- Disable Hardware Buttons in synaptics.kl, Fpc1020.kl & Generic.kl 
   #key 158 - BACK
   #key 580- APP SWITCHER
   #key 102 - HOME
- Disable backlights by setting value 0 in
   "/sys/class/leds/button-backlight/max_brightness" 
- Doesn't break DT2W or Fingerprint sensor

REQUIREMENTS
  • OnePlus 3/3T
  • Android 9.0 based ROM
  • Magisk Beta v16.7 or higher
  • Module

DOWNLOADS
  • Disable hw keys & enable nav bar here
  • Disable hw keys and backlights only here

CHANGELOG
  • v2.0 - Seperate module for just disaling hw keys and backlight
  • v1.0 - Initial Release

INSTRUCTIONS
To Enable:
  • Download and flash the module
  • Reboot
To Disable:
  • Disable Module from Magisk Manager
  • Reboot
OR
  • Flash this via TWRP

LICENSE
Copyright © 2018 Beast_slayer. Licensed under the GNU General Public License v3.

CREDITS
@topjohnwu - for magisk and magisk module template
@97pratyush - for testing out this module
@akhilnarang - for replying late to my PM's but clarifying them at the end of the day
@silentvisitor - for guiding me thorough

SOURCES

Hit :good: if this helps
 

Attachments

  • photo6325827236451690536.jpg
    photo6325827236451690536.jpg
    104.3 KB · Views: 5,524
Last edited:

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,300
1
14,850
Gone
Google Nexus 4
Nexus 6
LICENSE
Copyright © 2018 joeyhuab. Licensed under the GNU General Public License v3.

You sure about this part? Doesn't look like your name... :D

Also, the warning in the readme about disabling any other modules that "conflicts with the build.prop" seems a bit excessive... You're not actually touching the build.prop file, just changing one single prop value. Almost every single Magisk module changes different prop values... It would be a whole lot of modules to disable. :laugh:
 
  • Like
Reactions: Beast_Slayer

Beast_Slayer

Senior Member
Sep 11, 2013
165
175
Nagpur
www.youtube.com
You sure about this part? Doesn't look like your name... :D

Also, the warning in the readme about disabling any other modules that "conflicts with the build.prop" seems a bit excessive... You're not actually touching the build.prop file, just changing one single prop value. Almost every single Magisk module changes different prop values... It would be a whole lot of modules to disable. :laugh:

Thanks for the heads up.

Yea about the licensing part, was referring another thread to make mine.
Correcting.

UPDATE: made changes in README.md as well.
 
Last edited:

ast00

Senior Member
Apr 29, 2012
3,031
677
NitrogenOS for example doesn't have the "Enable swipe up" option in settings.
Can you somehow make that pop up as well?
 
  • Like
Reactions: RDFARHAN

silentvisitor

Senior Member
Mar 15, 2012
4,522
2,653
Congrats

Congrats @Beast_Slayer ??
Its a very helpful module and I'm sure will and helping many. I know how hard you had to work to make it. Congrats ??

Guys, devs work hard behind the scenes to create things or make complicated things as simple as clicking a button for us. They deserve our appreciation and support. Minimum we can do is hit THANKS for them as our token of gratitude. No? :)
 
  • Like
Reactions: Beast_Slayer

Beast_Slayer

Senior Member
Sep 11, 2013
165
175
Nagpur
www.youtube.com
Congrats @Beast_Slayer ?
Its a very helpful module and I'm sure will and helping many. I know how hard you had to work to make it. Congrats ?

Guys, devs work hard behind the scenes to create things or make complicated things as simple as clicking a button for us. They deserve our appreciation and support. Minimum we can do is hit THANKS for them as our token of gratitude. No? :)

Thank you so much for your nice words.
It wouldn't have been possible without you.
Thanks again for helping out whenever I needed
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Magisk Module - Navigation Bar (9.0 Pie) OnePlus 3/3T​

    After release of P based ROMs for OnePlus 3/T they miss out option to switch between hw buttons & On Screen Navigation bar. This module enables navigation bars with an edit in build prop. Also disables hardware buttons by commenting out key functions in keylayout and turns off backlight. Without breaking DT2W or fingerprint sensor.
    This is a small module for ease of access to Navigation bar till the time being ROMs based on Android P [9.0] adds into their source.
    This mod works on all ROM based on Pie [Including treble Gsi as well.].
    Tested on OnePlus 3T: Pixel experience, Pgsi, Banzo Gsi.
    For better usage goto Settings>>System>>Gestures>> Enable Swipe up for home button.

    Text me on Telegram for issues

    FEATURES
    Code:
    - On Screen navigation bar "qemu.hw.mainkeys="0
    - Disable Hardware Buttons in synaptics.kl, Fpc1020.kl & Generic.kl 
       #key 158 - BACK
       #key 580- APP SWITCHER
       #key 102 - HOME
    - Disable backlights by setting value 0 in
       "/sys/class/leds/button-backlight/max_brightness" 
    - Doesn't break DT2W or Fingerprint sensor

    REQUIREMENTS
    • OnePlus 3/3T
    • Android 9.0 based ROM
    • Magisk Beta v16.7 or higher
    • Module

    DOWNLOADS
    • Disable hw keys & enable nav bar here
    • Disable hw keys and backlights only here

    CHANGELOG
    • v2.0 - Seperate module for just disaling hw keys and backlight
    • v1.0 - Initial Release

    INSTRUCTIONS
    To Enable:
    • Download and flash the module
    • Reboot
    To Disable:
    • Disable Module from Magisk Manager
    • Reboot
    OR
    • Flash this via TWRP

    LICENSE
    Copyright © 2018 Beast_slayer. Licensed under the GNU General Public License v3.

    CREDITS
    @topjohnwu - for magisk and magisk module template
    @97pratyush - for testing out this module
    @akhilnarang - for replying late to my PM's but clarifying them at the end of the day
    @silentvisitor - for guiding me thorough

    SOURCES

    Hit :good: if this helps
    2
    Congrats @Beast_Slayer ?
    Its a very helpful module and I'm sure will and helping many. I know how hard you had to work to make it. Congrats ?

    Guys, devs work hard behind the scenes to create things or make complicated things as simple as clicking a button for us. They deserve our appreciation and support. Minimum we can do is hit THANKS for them as our token of gratitude. No? :)

    Thank you so much for your nice words.
    It wouldn't have been possible without you.
    Thanks again for helping out whenever I needed
    2
    You sure about this part? Doesn't look like your name... :D

    Also, the warning in the readme about disabling any other modules that "conflicts with the build.prop" seems a bit excessive... You're not actually touching the build.prop file, just changing one single prop value. Almost every single Magisk module changes different prop values... It would be a whole lot of modules to disable. :laugh:

    Thanks for the heads up.

    Yea about the licensing part, was referring another thread to make mine.
    Correcting.

    UPDATE: made changes in README.md as well.
    2
    thank you so much i was looking for this
    2
    Im using Nokia 8 Oreo 8.1, i have hw buttons... Is there anyway yhu can make dis work on Nokia too please buddy!!! I would like on screen buttons too.... Thanks man! @Beast_Slayer

    PM me in xda/telegram
    Prefer telegram
    Will try my best