FORUMS
Remove All Ads from XDA

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

165 posts
Thanks Meter: 174
 
Post Reply Email Thread
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 if this helps
Attached Thumbnails
Click image for larger version

Name:	photo6325827236451690536.jpg
Views:	4096
Size:	104.3 KB
ID:	4575639  
The Following 11 Users Say Thank You to Beast_Slayer For This Useful Post: [ View ] Gift Beast_Slayer Ad-Free
 
 
19th August 2018, 08:23 AM |#2  
Didgeridoohan's Avatar
Forum Moderator
Thanks Meter: 7,413
 
Donate to Me
More
Quote:
Originally Posted by Beast_Slayer

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

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

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.
The Following User Says Thank You to Didgeridoohan For This Useful Post: [ View ] Gift Didgeridoohan Ad-Free
19th August 2018, 08:26 AM |#3  
Beast_Slayer's Avatar
OP Senior Member
Flag Nagpur
Thanks Meter: 174
 
Donate to Me
More
Quote:
Originally Posted by Didgeridoohan

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

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.

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.
The Following 2 Users Say Thank You to Beast_Slayer For This Useful Post: [ View ] Gift Beast_Slayer Ad-Free
19th August 2018, 10:30 AM |#4  
Junior Member
Thanks Meter: 3
 
More
Does it work on OnePlus 3 on Android Pie roms and Magisk 16.7?
🤔🤔
The Following User Says Thank You to 97pratyush For This Useful Post: [ View ] Gift 97pratyush Ad-Free
19th August 2018, 10:31 AM |#5  
Senior Member
Flag Sarajevo
Thanks Meter: 242
 
More
thank you so much i was looking for this
The Following 2 Users Say Thank You to ele95 For This Useful Post: [ View ] Gift ele95 Ad-Free
19th August 2018, 10:31 AM |#6  
Beast_Slayer's Avatar
OP Senior Member
Flag Nagpur
Thanks Meter: 174
 
Donate to Me
More
Quote:
Originally Posted by 97pratyush

Does it work on OnePlus 3 on Android Pie roms and Magisk 16.7?
🤔🤔

Yes latest Magisk 16.7 and any Pie based rom for 3/3T
The Following User Says Thank You to Beast_Slayer For This Useful Post: [ View ] Gift Beast_Slayer Ad-Free
19th August 2018, 10:32 AM |#7  
Beast_Slayer's Avatar
OP Senior Member
Flag Nagpur
Thanks Meter: 174
 
Donate to Me
More
Quote:
Originally Posted by ele95

thano you so much i was looking for this

Sure
Hit thanks if this helps
The Following User Says Thank You to Beast_Slayer For This Useful Post: [ View ] Gift Beast_Slayer Ad-Free
19th August 2018, 01:09 PM |#8  
Senior Member
Flag Bengaluru
Thanks Meter: 50
 
More
Is there a way to auto hide the navbar or is it suppose to stay there in pie?
19th August 2018, 01:15 PM |#9  
Beast_Slayer's Avatar
OP Senior Member
Flag Nagpur
Thanks Meter: 174
 
Donate to Me
More
Quote:
Originally Posted by Vishruth97

Is there a way to auto hide the navbar or is it suppose to stay there in pie?

Pie just made it's way to Android buddy.
For now, yes it's supposed be that way no options to auto hide.
The Following User Says Thank You to Beast_Slayer For This Useful Post: [ View ] Gift Beast_Slayer Ad-Free
19th August 2018, 02:34 PM |#10  
whalesplaho's Avatar
Senior Member
Flag Treasure Island
Thanks Meter: 2,617
 
More
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
The Following User Says Thank You to whalesplaho For This Useful Post: [ View ] Gift whalesplaho Ad-Free
19th August 2018, 04:01 PM |#11  
Beast_Slayer's Avatar
OP Senior Member
Flag Nagpur
Thanks Meter: 174
 
Donate to Me
More
Quote:
Originally Posted by whalesplaho

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
The Following 2 Users Say Thank You to Beast_Slayer For This Useful Post: [ View ] Gift Beast_Slayer Ad-Free
Post Reply Subscribe to Thread

Tags
backlights, disable hardware keys, disable hw keys, enable on screen navigation bar, navigation bars

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes