Disable immersive mode system-wide - Moto Z2 Play Questions & Answers

Hello,
Has anyone knows how to disable immesrsive mode system-wide (navigation bar ALWAYS visible) ? I have spent couple of weeks searching many forums, guides and apps (including xposed) and cannot find nothing... I would be very grateful for any help!!!
Thanks in advance!

You can try these shell commands, I use them to hide status bar while I'm gaming:
· Hide Status Bar only type:
adb shell settings put global policy_control immersive.status=*
· Hide Navigation Bar only type:
adb shell settings put global policy_control immersive.navigation=*
· Hide Both Bars type:
adb shell settings put global policy_control immersive.full=*
· Back to normal/default state:
adb shell settings put global policy_control null*
You can set up a Tasker profile to hide the status and/or navigation bar only when certain apps are in foreground. I'm quite sure that root is needed to run these commands. I think this is the only way to hide the navigation bar since the Motorola software doesn't have an integrated option.
For more commands, and to this via ADB, look here: https://forum.xda-developers.com/nexus-6p/general/guide-hide-navigation-bar-status-bar-app-t3509747
P.S. If you are not familiar with Tasker, use Automate, it does the same things but it is a lot easier to use.

Thank you but all I want to is to make navbar always visible, in other words prevent it from hiding. Some apps autohides navigation bar which is very annoying, especially when app not responding and you want to close it with long press back button or just want to switch to another app. I have root, unlocked bootloader, xposed and selinux set to permissive, I even can modify systemui.apk to disable this irritating immersive mode. If I only know how.

Sorry, I tought you wanted to hide the nav bar
Btw, did you try the last command (adb shell settings put global policy_control null*)? Probably it won't work but give it a try.
I'm quite sure that you can do what you want to do by modifying the framework-res.apk, but I don't know which file/string you have to modify. Try to search with notepad++ in the whole extracted apk for ''navbar'', ''navigation'' or ''immersive''

Well, thats the problem -everywhere there are tutorials how to hive navbar but I cannot find info how to make it always visible. Is it so hard to achieve?
PS I've already tried the last command, i doesn't work, seems like apps have higher priority to hiding navbar.

Related

Activating Night Mode through shell no longer works on OOS 4.0.0

Hello everyone,
As of OOS 4.0.0, the Tasker shell method for making an automated night mode switcher no longer works. I have tried both the "settings put global night_mode_enable/d 1" as well as the "settings put secure twilight_mode 1", with or without root access, with or without "su" in front of the command.
There is a method discussed here whereby night mode can be triggered via AutoTools for Tasker, but once you pull the notification panel the setting reverts.
I have also run LogCat for when you activate night mode via the Quick Settings panel, and once when you disable it. I see the services responsible but lack the knowledge to go forth. If somebody has an idea on how to get access to night mode via tasker from the provided logs (or any other means you can suggest for me to test), please feel free to post your suggestions/solutions.
Logs: https://drive.google.com/drive/folders/0Bwu1tuojwUVbUVAzQ2xKeHNGU0U?usp=sharing
PressON is capture when switching nightmode on and vice versa.

Remove clock in the status bar

In order to gain space in the notification bar I have been trying to remove the clock. I have tried using the "System UI Tuner" but as soon as I pull down the notification bar the clock reapers.
Does any one have a solution?
You can use this ADB command. I tested now it's working:
"adb shell settings put secure icon_blacklist clock"
but this command gets hidden items so you can try type this:
"adb shell settings put secure icon_blacklist clock,alarm" (or more commands)
adb commands I have tried:
Name Settings Description
cast Cast
hotspot Hotspot
bluetooth Bluetooth
zen Do not disturb
alarm_clock Alarm
managed_profile Work profile
wifi Wi-Fi
ethernet Ethernet
mobile Cellular Data
airplane Airplane Mode
Click to expand...
Click to collapse
Kineceleran said:
You can use this ADB command. I tested now it's working:
"adb shell settings put secure icon_blacklist clock"
but this command gets hidden items so you can try type this:
"adb shell settings put secure icon_blacklist clock,alarm" (or more commands)
adb commands I have tried:
Click to expand...
Click to collapse
how is the comand adb to revert this, to reapear the clock
yaco96 said:
how is the comand adb to revert this, to reapear the clock
Click to expand...
Click to collapse
same code but no "clock,alarm" thing
Do you also know how to hide the little dot on the right notch side?
No i don't sorry.

Pixel stuck in immersive full screen mode

Hello all, I have a weird bug after accepting the OTA to Android 10 two days ago. I noticed that the UI is stuck in immersive mode, meaning the nav bar and status bar disappear after a second or two. I am rooted but have not modified any system files. Went into Custom Restrictions and made sure that there was nothing checked. Not sure what else could be causing this or is there a setting somewhere that I am not finding. I toggled gestures back to 3-button and that didn't do anything either. Thanks
I managed to fix it...
Not sure how or what caused this command to be executed but "settings put global policy_control immersive.full=*" was enabled, had to rerun it without the *
For anybody curious,
https://android.gadgethacks.com/how...-auto-hide-your-pixels-software-keys-0176242/
Thanks

[MOD]No notch ? Welcome to the immersive mode ! Remove the notification bar

Hi,
Our Xiaomi MI 9T is splendid with its great AMOLED full screen without any notch or hole.
However, the web browsers like Chrome (and others apps) doesn't propose the possibility in the settings to remove the notification bar and to get a true immersive full screen mode.
No problem, adb is there!
No need to root the smartphone.
EDIT: I have tested "Immersive Manager Application" from Google Play Store and it's perfect. Very simple and it works even when you reboot your phone.
No more need to type adb commands below except at least few adb commands to grant the Secure Settings permission to the app. This is well explained by the application when you launch it the first time.
I let the adb commands below for information in case we had some "purists" who prefer adb than an immersive app.
1/ Enable the Developper mode
Go to Parameters/ About the phone
Click many times (at least 10) on the MIUI Version to activate the Developper mode
2/ Enable USB Debugging
Go to Parameters/... Others parameters/Developper options
Click on USB debugging
Click on Install via USB => You will have to connect to your MI account
Click on USB debugging (security parameters)
3/ Launch adb on your PC
Get adb.exe on the net (very easy)
Put it in a folder of your PC (for instance C:/adb)
Connect your smartphone to the PC
Launch a DOS command window
Go to the adb folder => cd /adb
To check if your smartphone is ready, type:
Code:
adb devices
If it's the first time, there will be a popup on your smartphone to authorize the adb commands
Then, normally your device will appear after typing "adb devices"
4/ Get the list of applications installed on your smartphone
Code:
adb shell pm list packages
Retrieve the name of the application(s) you want to remove the notification bar.
5a/ For instance, hide the notification bar only for Chrome and Google Photos
Code:
adb shell settings put global policy_control immersive.status=com.android.chrome,com.google.android.apps.photos
Note: Each time you enter this command, you cancel the previous one. You need to type only one command with all the apps you want to remove the notification bar (names of app are separated by a comma ,).
5b/ For instance, if you want to hide the notification bar for all the applications
Code:
adb shell settings put global policy_control immersive.status=*
6/ If you want to cancel this setting and put back the notification bar
Code:
adb shell settings put global policy_control null*
Enjoy your brillant full screen mainly when you are in dark mode.
:good:
Pls the screen..
Redmi K20 cihazımdan Tapatalk kullanılarak gönderildi
pidobeuliou said:
Hi,
Our Xiaomi MI 9T is splendid with its great AMOLED full screen without any notch or hole.
However, the web browsers like Chrome (and others apps) doesn't propose the possibility in the settings to remove the notification bar and to get a true immersive full screen mode.
No problem, adb is there!
No need to root the smartphone.
1/ Activate the Developper mode
Go to Parameters/ About the phone
Click many times (at least 10) on the MIUI Version to activate the Developper mode
2/ Activate USB Debugging
Go to Parameters/... Others parameters/Developper options
Click on USB debugging
Click on Install via USB => You will have to connect to your MI account
Click on USB debugging (security parameters)
3/ Launch adb on your PC
Get adb.exe on the net (very easy)
Put it in a folder of your PC (for instance C:/adb)
Connect your smartphone to the PC
Launch a DOS command window
Go to the adb folder => cd /adb
To check if your smartphone is ready, type:
Code:
adb devices
If it's the first time, there will be a popup on your smartphone to authorize the adb commands
Then, normally your device will appear after typing "adb devices"
4/ Get the list of applications installed on your smartphone
Code:
adb shell pm list packages
Retrieve the name of the application(s) you want to remove the notification bar.
5a/ For instance, hide the notification bar only for Chrome and Google Photos
Code:
adb shell settings put global policy_control immersive.status=com.android.chrome,com.google.android.apps.photos
Note: Each time you enter this command, you cancel the previous one. You need to type only one command with all the apps you want to remove the notification bar (names of app are separated by a comma ,).
5b/ For instance, if you want to hide the notification bar for all the applications
Code:
adb shell settings put global policy_control immersive.status=*
6/ If you want to cancel this setting and put back the notification bar
Code:
adb shell settings put global policy_control null*
Enjoy your brillant full screen mainly when you are in dark mode.
:good:
Click to expand...
Click to collapse
Thanks for the instructions bro... I like the immersive mode on all the apps but i do not in instagram app, What is the command to get the immersive mode on all the apps but not in some specifics one?
The setting is reset on reboots. How can it be persisted?
salzzz said:
The setting is reset on reboots. How can it be persisted?
Click to expand...
Click to collapse
Do you have root permissions? If the asnwer is "yes" you can do this:
Install terminal emulator from google play store. Open it and writte "su"
now writte this:
settings put global policy_control immersive.status=*
Tachan! you have immensive mode active. Only save the command in a note app. Always you reboot your phone the only thing you have to do is open terminal, su and paste your command.
A lot more easy and fast than do it with adb. the only "problem" is you need root.
If someone knows how to add an exception, please say so.
How do you show it on lock screen? Any ideas?
"Permission denial: writing to settings requires:android.permission.write_security_settings"
ramsyst said:
"Permission denial: writing to settings requires:android.permission.write_security_settings"
Click to expand...
Click to collapse
Did you manage to overcome this getting same error here
NVM, fixed it
ralphoberholzer said:
Did you manage to overcome this getting same error here
NVM, fixed it
Click to expand...
Click to collapse
Still getting the same error, how did u get around it ?
ramsyst said:
Still getting the same error, how did u get around it ?
Click to expand...
Click to collapse
Enable USB debugging (security settings) under developer options.
I used SystemUI Tuner as it allows for blacklisting apps (sucha as whatsapp) that don´t manage full screen well.
ralphoberholzer said:
Enable USB debugging (security settings) under developer options
Click to expand...
Click to collapse
Thank you! It worked, but as stated above, it reset after phone restart.
Maybe running a tasker command at boot might fix it ?
Edit: Use the Immersive Manager app (thank me later!)
ramsyst said:
Thank you! It worked, but as stated above, it reset after phone restart.
Maybe running a tasker command at boot might fix it ?
Edit: Use the Immersive Manager app (thank me later!)
Click to expand...
Click to collapse
Worked great, Thanks
pidobeuliou said:
Hi,
Our Xiaomi MI 9T is splendid with its great AMOLED full screen without any notch or hole.
However, the web browsers like Chrome (and others apps) doesn't propose the possibility in the settings to remove the notification bar and to get a true immersive full screen mode.
No problem, adb is there!
No need to root the smartphone.
1/ Activate the Developper mode
Go to Parameters/ About the phone
Click many times (at least 10) on the MIUI Version to activate the Developper mode
2/ Activate USB Debugging
Go to Parameters/... Others parameters/Developper options
Click on USB debugging
Click on Install via USB => You will have to connect to your MI account
Click on USB debugging (security parameters)
3/ Launch adb on your PC
Get adb.exe on the net (very easy)
Put it in a folder of your PC (for instance C:/adb)
Connect your smartphone to the PC
Launch a DOS command window
Go to the adb folder => cd /adb
To check if your smartphone is ready, type:
Code:
adb devices
If it's the first time, there will be a popup on your smartphone to authorize the adb commands
Then, normally your device will appear after typing "adb devices"
4/ Get the list of applications installed on your smartphone
Code:
adb shell pm list packages
Retrieve the name of the application(s) you want to remove the notification bar.
5a/ For instance, hide the notification bar only for Chrome and Google Photos
Code:
adb shell settings put global policy_control immersive.status=com.android.chrome,com.google.android.apps.photos
Note: Each time you enter this command, you cancel the previous one. You need to type only one command with all the apps you want to remove the notification bar (names of app are separated by a comma ,).
5b/ For instance, if you want to hide the notification bar for all the applications
Code:
adb shell settings put global policy_control immersive.status=*
6/ If you want to cancel this setting and put back the notification bar
Code:
adb shell settings put global policy_control null*
Enjoy your brillant full screen mainly when you are in dark mode.
:good:
Click to expand...
Click to collapse
I am sorry friend, bootloader unlocked ?
wilmerwils said:
I am sorry friend, bootloader unlocked ?
Click to expand...
Click to collapse
No, it's not necessary to unlock the bootloader.
You have just to activate the developper mode as I indicate it.
ramsyst said:
Thank you! It worked, but as stated above, it reset after phone restart.
Maybe running a tasker command at boot might fix it ?
Edit: Use the Immersive Manager app (thank me later!)
Click to expand...
Click to collapse
Yes, it's true. Each time you reboot the phone, you should loose the setting.
And good point, thank you Ramsyst, I didn't check on Google Play Store the myriad of immersive mode applications!!
I have tested "Immersive Manager Application" and it's perfect. Very simple and it works even when you reboot your phone. :good::good:
I had previously created a task with Tasker and AutoTools (paid version) to change the immersive mode with the "Custom Setting" feature. But knowing that there are many apps (free and paid version) doing that better than AutoTools, it's not usefull to describe how I did it.
pidobeuliou said:
Yes, it's true. Each time you reboot the phone, you should loose the setting.
And good point, thank you Ramsyst, I didn't check on Google Play Store the myriad of immersive mode applications!!
I have tested "Immersive Manager Application" and it's perfect. Very simple and it works even when you reboot your phone. :good::good:
I had previously created a task with Tasker and AutoTools (paid version) to change the immersive mode with the "Custom Setting" feature. But knowing that there are many apps (free and paid version) doing that better than AutoTools, it's not usefull to describe how I did it.
Click to expand...
Click to collapse
Thank you too! I didn't know this immersive mode was possible until i stumbled on your thread. Now, we can all enjoy that beautiful screen 100%!
No devices / emulator found ... Please help. I instal drivers do all on this topic
ramsyst said:
Thank you! It worked, but as stated above, it reset after phone restart.
Maybe running a tasker command at boot might fix it ?
Edit: Use the Immersive Manager app (thank me later!)
Click to expand...
Click to collapse
With Tasker you already have an option to make all apps you want to go immersive! There is no need to use any other command or app.
I believe everybody in the world should buy tasker
Is the best Android app. It may looks hard in the begining, but your imagination is the limit to do whatever you want.
Hi how can i used this on split screen but in full screen mode with status bar and navigation?
MrYuu said:
Hi how can i used this on split screen but in full screen mode with status bar and navigation?
Click to expand...
Click to collapse
You're right. I had never tested the split screen function. The notification bar is not hidden on split screen mode even when immersive mode is activated. The result is a bit weird as there is a mix of notification bar and app on the top of the screen.
"Google search" indicates that you are not the first one to face this issue... but apparently no solution has been found so far.
If somebody can help.

Adb command for hide icon to statusbar dont working

Good morning, I'm trying on my s20 to hide the icons in the status bar with adb command:
Code:
adb shell settings put secure icon_blacklist bluetooth
it does not work, or rather it works until the phone is restarted. Once turned off and on again the icons are visible again.
I have used this code on many phones and it has always worked. This is the first time I have encountered this issue.
Can you give me a solution?
Thanks
Tommasoleone said:
Good morning, I'm trying on my s20 to hide the icons in the status bar with adb command:
Code:
adb shell settings put secure icon_blacklist bluetooth
it does not work, or rather it works until the phone is restarted. Once turned off and on again the icons are visible again.
I have used this code on many phones and it has always worked. This is the first time I have encountered this issue.
Can you give me a solution?
Thanks
Click to expand...
Click to collapse
https://android.gadgethacks.com/how...re-screen-real-estate-no-root-needed-0177297/ ALL WORKS FOR ME
MASTERGRAD said:
https://android.gadgethacks.com/how...re-screen-real-estate-no-root-needed-0177297/ ALL WORKS FOR ME
Click to expand...
Click to collapse
Hi, this command hides the entire status bar.
I just want to hide icons such as bluetooth icon or gps icon etc ...
The command I wrote has always worked except for the s20
Tommasoleone said:
Hi, this command hides the entire status bar.
I just want to hide icons such as bluetooth icon or gps icon etc ...
The command I wrote has always worked except for the s20
Click to expand...
Click to collapse
If so then try with GoodLock / NiceLock..... with their modules you can do it..
S20U-Exynos
Xode said:
If so then try with GoodLock / NiceLock..... with their modules you can do it..
S20U-Exynos
Click to expand...
Click to collapse
Thanks for the information, however, if those apps can hide them there must also be the adb command.
The issue with the adb command I put is that after a reboot the icons are visible again in the status bar.
I would like to understand how to do it using adb also because that app is not available in europe and I would not like to install apps, modules, launchers just to remove icons from status bar.
I await if someone can give me some information about it.
Thanks
Tommasoleone said:
Thanks for the information, however, if those apps can hide them there must also be the adb command.
The issue with the adb command I put is that after a reboot the icons are visible again in the status bar.
I would like to understand how to do it using adb also because that app is not available in europe and I would not like to install apps, modules, launchers just to remove icons from status bar.
I await if someone can give me some information about it.
Thanks
Click to expand...
Click to collapse
No probs ... for Europe there is NiceLock which i also use and it is much more practical than ADB for such things...
S20U-Exynos
Tommasoleone said:
Hi, this command hides the entire status bar.
I just want to hide icons such as bluetooth icon or gps icon etc ...
The command I wrote has always worked except for the s20
Click to expand...
Click to collapse
works for me pal; im good.
MASTERGRAD said:
works for me pal; im good.
Click to expand...
Click to collapse
I tried nicelock but it must always remain active and cannot hide the cast icon.
But if you restart phone icons remain hidden?
MASTERGRAD said:
works for me pal; im good.
Click to expand...
Click to collapse
I asked a friend to try another country's s20 and it has the same issue.
I think it's really the 20 or the Oneui 2.1 that doesn't allow you to permanently hide the icons in the status bar.
After the restart they continue to reappear.
Can anyone give me some news or solution?

Categories

Resources