disable/enable navbar with Tasker - Tasker Tips & Tricks

Hello everybody. I'm on AOSiP DerpFest Pie ROM. I'm looking for a way to toggle navigation bar on and off with Tasker. I've been searching through the web for a solution and I came across immersive mode for navbar only and "wm overscan" shell command, but these are not what I mean. I'm looking for a way to toggle navbar in a way it can be done with the system setting (the one shown in the attached screenshot). Maybe another shell command? A Tasker plugin? Anybody knows the solution? I'll be grateful for any hint

It may be set through a secure settings. To figure it out, look here

ktmom said:
It may be set through a secure settings. To figure it out, look here
Click to expand...
Click to collapse
Yeaaa, I managed to do this with SecureTask plugin, which was already installed on my device. Thank you very much for providing me with a clue! :highfive:

Related

Quick Toggle for Noobs to Use My Phone

Does anyone know any easy way I can toggle the following settings all at once?
-turn off hardware navigation keys
-turn on software navigation keys
-turn off lock screen or (preferably) don't require PIN/fingerprint to unlock
I ask because I often find myself having to talk my parents/friends through using my phone while I'm driving, and they don't know my PIN and can't see the navigation buttons at the bottom of my phone because I have the backlight turned off.
On my OPO, which was not-encrypted, I was content with simply disabling the PIN requirement by using a CM profile, but on my OP3T that option is grayed out (because it's encrypted, right?). I would also just use 2 QS tiles to enable the NavBar and disable the hardware keys.
Anyone know a more efficient method?
RustySpackleford said:
Does anyone know any easy way I can toggle the following settings all at once?
-turn off hardware navigation keys
-turn on software navigation keys
Click to expand...
Click to collapse
Did you find a good solution for this? I would really like to be able to switch between these modes with a quick toggle somehow. Any suggestions?
SYRE123 said:
Did you find a good solution for this? I would really like to be able to switch between these modes with a quick toggle somehow. Any suggestions?
Click to expand...
Click to collapse
I haven't found anything. If there are terminal commands to enable or disable any of these settings maybe you could do it with Tasker.
I might look into that, but it seems like more work than I'm interested in.
RustySpackleford said:
I haven't found anything. If there are terminal commands to enable or disable any of these settings maybe you could do it with Tasker.
I might look into that, but it seems like more work than I'm interested in.
Click to expand...
Click to collapse
I've looked through Tasker and haven't found anything yet

Lock Hardware/Capacitive Buttons

Hey guys,
I'm running oos beta and it appears the status bar toggle for locking hardware button is gone. I googled and can't find a module or setting that I'm missing. Anybody aware of a module or developer option to get it back?
It's been renamed to Gaming Do Not Disturb Mode
Anova's Origin said:
It's been renamed to Gaming Do Not Disturb Mode
Click to expand...
Click to collapse
Ahhhh don't I feel silly. Thanks for the info! Exactly what I needed.
Is there any way to get this any other roms? Such as LOS ? Im really missing this one now

Disable/Enable Navbar with SwiftKey

I'm looking for a way to disable the navigation bar when using SwiftKey in order not to constantly hit the home button when aiming for the spacebar and enable it again once I close SwiftKey. Immersive mode doesn't work with SwiftKey. So, ideally, I would need an adb shell command to do this, but I can't really seem to find out how to do this. I'm running AICP ROM and I theoretically have a (quick settings) toogle for this, but also no idea how to trigger such tile with Tasker.
In terms of adb shell commands I've found the navigation_bar_height/mode/visible lines in the secure settings list in adb, but don't know what the code lines would have to look like in order to toggle those in a command.
Any input would be greatly appreciated.
I think the problem isn't with swiftkey disabling immersive mode but that more than one virtual keyboard is installed. This forces the keyboard (input) switcher button bringing up the nav bar in spite of immersive mode.

change immersive mode delay?

Apologies if this is the wrong place to post this.
I would like to change the delay for the notification and navigation bar to hide in immersive mode.
adb shell settings put global policy_control immersive.full=*
This is the command i have found to activate immersive mode and it works well for me, except for the fact that the delay is too long - probably around 2000ms, i would prefer around half that.
Does anybody know where this is defined? I'm not a dev (obviously) but I am hoping it would just involve changing a value somewhere in a config file...
Thanks in advance!

Full Immersive Mode

For those that want to take advantage of this beautiful screen and all it's glory. These commands will remove the status bar, the navigation bar, or both. They must be run using ADB. I did not create this, these commands have been around for quite a while and I have been using them as far back as the Galaxy S8.
They do the same thing as immersive mode in System UI Tuner but without having to install another app and run commands for that app to work and yes before you ask, I have used that same app on some of the recent phones I have had. These commands are just for those that want the full screen experience.
Without further ado here are the commands to be placed into ADB.
To hide the Status bar:
adb shell settings put global policy_control immersive.status=*
To hide the Navigation bar:
adb shell settings put global policy_control immersive.navigation=*
To hide both Status and Navigation bars:
adb shell settings put global policy_control immersive.full=*
To revert:
adb shell settings put global policy_control null*
Hope Y'all enjoy it.
truckerdewd said:
For those that want to take advantage of this beautiful screen and all it's glory. These commands will remove the status bar, the navigation bar, or both. They must be run using ADB. I did not create this, these commands have been around for quite a while and I have been using them as far back as the Galaxy S8.
They do the same thing as immersive mode in System UI Tuner but without having to install another app and run commands for that app to work and yes before you ask, I have used that same app on some of the recent phones I have had. These commands are just for those that want the full screen experience.
Without further ado here are the commands to be placed into ADB.
To hide the Status bar:
adb shell settings put global policy_control immersive.status=*
To hide the Navigation bar:
adb shell settings put global policy_control immersive.navigation=*
To hide both Status and Navigation bars:
adb shell settings put global policy_control immersive.full=*
To revert:
adb shell settings put global policy_control null*
Hope Y'all enjoy it.
Click to expand...
Click to collapse
is there a code to disable the nav bar permanently? for instance, with the code above it basically hides the nav bar. it is still available if you swipe up. i'd like to completely disable it so it never shows and use LMT with gestures instead.
knives of ice said:
is there a code to disable the nav bar permanently? for instance, with the code above it basically hides the nav bar. it is still available if you swipe up. i'd like to completely disable it so it never shows and use LMT with gestures instead.
Click to expand...
Click to collapse
Oh my god thank you. I'm looking for the same thing. I want to remove the navigation bar entirely. I use fluid navigation gestures right now, because I absolutely hate the OnePlus navigation gestures animation you get. (Flingy shrinking square effect)It feels like it's slowing down the phone.
But when you use the fingerprint sensor with fluid gestures, for a brief moment, the system has to shoot the navigation bar back down again. it's annoying and glitchy. It feels like I can't win, there's always a stupid animation I don't want to see
Burt Squirtz said:
Oh my god thank you. I'm looking for the same thing. I want to remove the navigation bar entirely. I use fluid navigation gestures right now, because I absolutely hate the OnePlus navigation gestures animation you get. (Flingy shrinking square effect)It feels like it's slowing down the phone.
But when you use the fingerprint sensor with fluid gestures, for a brief moment, the system has to shoot the navigation bar back down again. it's annoying and glitchy. It feels like I can't win, there's always a stupid animation I don't want to see
Click to expand...
Click to collapse
edit /system/build.prop:
Code:
qemu.hw.mainkeys=1
untested
knives of ice said:
is there a code to disable the nav bar permanently? for instance, with the code above it basically hides the nav bar. it is still available if you swipe up. i'd like to completely disable it so it never shows and use LMT with gestures instead.
Click to expand...
Click to collapse
I just go into settings and then into buttons & gestures and then navigation bare and gestures and set it for gestures and viola, nav bar gone.
truckerdewd said:
I just go into settings and then into buttons & gestures and then navigation bare and gestures and set it for gestures and viola, nav bar gone.
Click to expand...
Click to collapse
yes, but the nav bar still comes up when you swipe from bottom to top or when you open the keyboard to type something.
i have it set to hide both bars and thats what it does now
---------- Post added at 02:17 AM ---------- Previous post was at 02:15 AM ----------
Heisenberg420 said:
edit /system/build.prop:
Code:
qemu.hw.mainkeys=1
untested
Click to expand...
Click to collapse
unless there is something specifically different with oneplus - this build prop edit no longer works since going to Pie.
there definitely is some way to hide it because some custom roms like Resurrection Remix still remove it completely if you want.
gonna keep trying and see if i can get rid of it all together
Hi
I love to use the phone in full immersive mode, but I have problem with the keyboard. Let's say I have kb up in the browser. Somebody sends me a msg, I have the popup (which I'd also like to be able to disable btw, in case if you know a trick), and it brings back the statusbar for the time of the pop up, and that causes the reloading of the kb. Very annoying. Plus in whatsapp it breaks the ui, the top bar with the name of the contact disappears, and the type bar also covered by the kb for a few pixel widht. If the kb is not up, there's no problem. Am I the knly lucky with these issues?
truckerdewd said:
I just go into settings and then into buttons & gestures and then navigation bare and gestures and set it for gestures and viola, nav bar gone.
Click to expand...
Click to collapse
you're right - this is the way to do it. when you have it turned on the keyboard doesn't come up. that combined with the adb code to hide both bars seems to work
knives of ice said:
yes, but the nav bar still comes up when you swipe from bottom to top or when you open the keyboard to type something.
i have it set to hide both bars and thats what it does now
---------- Post added at 02:17 AM ---------- Previous post was at 02:15 AM ----------
unless there is something specifically different with oneplus - this build prop edit no longer works since going to Pie.
there definitely is some way to hide it because some custom roms like Resurrection Remix still remove it completely if you want.
gonna keep trying and see if i can get rid of it all together
Click to expand...
Click to collapse
This worked for me:
Requirements: ADB and Fastboot installed on PC or Mac.
Instructions: Type without quotations in CMD or Windows PoweShell (use "."before command in PowerShell):
"adb shell wm overscan 0,0,0,-202"
---------- Post added at 09:32 AM ---------- Previous post was at 09:30 AM ----------
And for full, semi, etc. immersive; EdExposed with GravityBox P --> Display Tweaks --> Expanded Desktop Mode settings. In addition, GravityBox adds the Expanded Desktop mode change button to the Power Menu
adb shell settings put global policy_control immersive.full=
hides it completely, been using since I got the phone, I love the impressiveness of full screen mode, only thing is the round corners sometimes partially obstruct screen elements, my previous Mi Mix was much squarer and didnt have this (minor) issue.
I only use the code for the status bar and not the one for the the nav bar or full since I use gestures. I did try it with it with full and had no issues with the buttons popping up when I swipe up or down nor did I have a y keyboard issues.
Skenderbeggar said:
This worked for me:
Requirements: ADB and Fastboot installed on PC or Mac.
Instructions: Type without quotations in CMD or Windows PoweShell (use "."before command in PowerShell):
"adb shell wm overscan 0,0,0,-202"
---------- Post added at 09:32 AM ---------- Previous post was at 09:30 AM ----------
And for full, semi, etc. immersive; EdExposed with GravityBox P --> Display Tweaks --> Expanded Desktop Mode settings. In addition, GravityBox adds the Expanded Desktop mode change button to the Power Menu
Click to expand...
Click to collapse
"adb shell wm overscan 0,0,0,-202"
this code moved it a bit too much. any idea what number stock is? trying different values and its not working
EDIT - i kept messing with this so the keyboard was at the very bottom and the number i needed was -75
Is there an easy way to enable per app nav bar immersive mode? On stock LG Oreo, there was a toggle on the nav bar that you could enable / disable per app to show / hide the nav bar (nothing for status bar .. but I like having the status bar).
If not I think I found something to work on
Edit : So I see that Renovate Ice offers per app, but I am not going to pay for a feature that I can fix myself. I run xxx no limits, and I think I will get in touch with that dev to see if he will let me work with him to get it added in.
-- Brian
I cheesed out and paid for Renovate. It is nice that you can run Renovate with xxx No Limits at the same time .. the only issue being the timeout of the AOD . Way too fast with both installed.
Again, I have only had this phone since Friday, but I will be tearing through the code, and fixing all these little issues that bug the sh*t out of me without someone having to pay for it
-- Brian
Hi
Is anybody there uses full immersive mode on 10?
Before on 9 I had some issues, when the keyboard was active. After it was fixed. (I was on havoc).
Now as I swapped to 10 some months ago, I have the same issue. I was waiting all these months to be fixed, but still the keyboard breaks the ui. You can see in whatsapp chat, substratum, even in xda app, when you write a post.
This only happens, when I hide statbar, as navbar is always hidden, that doesn't give problem, so I did a blacklist for the statbar for tgese apps. I use system ui tuner app.
Do you know any way to fix this?
I wrote a couple of times to the forum of the rom I use, but no answer. I know, not so popular the full immersive mode, but I really like it, please share if you know a fix, thanks.
BTW @truckerdewd I recommend putting a "" around the *
The * is a wildcard character and also sometimes treated as a regex
Code:
adb shell settings put global policy_control immersive.navigation="*"
That should prevent headaches for anyone using shells that auto fill the *
anupritaisno1 said:
BTW @truckerdewd I recommend putting a "" around the *
The * is a wildcard character and also sometimes treated as a regex
That should prevent headaches for anyone using shells that auto fill the *
Click to expand...
Click to collapse
I copied and pasted the exact commands from a web page that I have saved in my email. I have used the same exact commands all the way back to when the Galaxy S8 came out without incident. Best way to prevent the * from bring auto entered in command prompt is to not use Windows shell but to actually make windows use command prompt. Windows shell sucks and I detest it.
truckerdewd said:
For those that want to take advantage of this beautiful screen and all it's glory. These commands will remove the status bar, the navigation bar, or both. They must be run using ADB. I did not create this, these commands have been around for quite a while and I have been using them as far back as the Galaxy S8.
They do the same thing as immersive mode in System UI Tuner but without having to install another app and run commands for that app to work and yes before you ask, I have used that same app on some of the recent phones I have had. These commands are just for those that want the full screen experience.
Without further ado here are the commands to be placed into ADB.
To hide the Status bar:
adb shell settings put global policy_control immersive.status=*
To hide the Navigation bar:
adb shell settings put global policy_control immersive.navigation=*
To hide both Status and Navigation bars:
adb shell settings put global policy_control immersive.full=*
To revert:
adb shell settings put global policy_control null*
Hope Y'all enjoy it.
Click to expand...
Click to collapse
thanks! it worked!
A11 broke immersive mode it seems

Categories

Resources