yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] buzzaldrine:
here is what it says everytime.

Too many arguments

usage: settings [--user <USER_ID> | current] get namespace key

settings [--user <USER_ID> | current] put namespace key value

settings [--user <USER_ID> | current] delete namespace key

settings [--user <USER_ID> | current] list namespace

'namespace' is one of {system, secure, global}, case-insensitive

If '--user <USER_ID> | current' is not given, the operations are performed on the system user.

i copied and pasted the test you wrote to me the first time. this is exactly what i was getting everytime.
[Nexus 6P General] Rashad83:
Try this:

Insert: adb shell

Click Enter

Insert: settings put global policy_control immersive.status=apps,-com.instagram.android

Click Enter
[Nexus 6P General] buzzaldrine:
not all heroes wear caps =)

you da real mvp.

thanks for the quick fix, have good weekend!:good::good::good::good:
[Nexus 6P General] Rashad83:
You are welcome, have a great weekend too.
[Nexus 6P General] Muhammad.toufix:
Hi, I want to hide my navbar after 10 seconds inactivity or more. Default hide time is too short for me.

How to make custom timeout for hide navbar?
[Nexus 6P General] EMJI79:
I don't think it is possible yet or else maybe some custom ROM makes it possible.

It's a very good idea otherwise.
[Nexus 6P General] euphoriaa:
Is there a way to only hide status bar but not the navigation bar? As the navigation bar in android 10 is already 'invinsible' and I wish to use the stock gesture function.

Currently I can only access the navigation bar by swiping up once 1st, that will show the status bar and the navigation bar before being able to use it.
[Nexus 6P General] jsusang:
Has anyone had problems accessing the Edge Screen (Note9/Android 10) after hiding the status & navigation bars via adb command?
[Nexus 6P General] jsusang:
Found an article on Gadget Hacks that gives instructions on how to hide the status bar by adjusting the overscan values on a Samsung Galaxy S20.

Since I could not get immersive mode settings to work after updating to Android 10, I tried this method on the Note9 while using the adb commands:

adb shell wm overscan 0,-43,0,0

Using this method may affect the fingerprint scanner.

Also using Samsung's Good Lock app, NavStar, to show/hide the navigation bar.

Here's the article:

https://android.gadgethacks.com/how-to/hide-status-bar-top-your-galaxy-s20s-screen-0286753/
[Nexus 6P General] CLS_phone:
Hi there,

I had used these commands via adb tool for a while, such as:

adb shell settings put global policy_control immersive.status=* or ~ full=* etc.

It used to be working fine, but I found it's disabled automatically.

I try doing it again and it looks OK when the command is given to the phone via USB/adb. Then the status bar comes right back by just locking and unlocking the screen.

What's going on? What have I done?

It's Mi A3 with stock ROM, global version, android 10.
[Nexus 6P General] EMJI79:
If you want to root, there's a magisk module that works for hiding navigation bar.
[Nexus 6P General] Ammitz:
Would this work for Oneplus 8T?

I tried but couldn't get it to work.
[Nexus 6P General] cheen11:
Hmm i tried all commands in the thread but they seem to enable immersive on everything. Im trying to enable it for firefox only and would prefer still having the bars on the home screen. I know this is an old thread, not sure if something has changed since then or im doing something wrong
[Nexus 6P General] MammothJerk:
This is exactly what i was looking for as well, the command to only hide the status bar in firefox is:

adb shell settings put global policy_control immersive.status=org.mozilla.firefox

just change the immersive.status to immersive.full and it should work no problem to hide the navbar as well.
[Nexus 6P General] hinds90:
I'll probably give this a try later. So the and she'll method removes to factory nav bar on the s8?
[Nexus 6P General] tnick84:
How to enable Mobile Data file in quick setting

Type these adb commands

adb shell settings get secure sysui_qs_tiles (this will show all active quick setting tiles in notification dropdown)

Then type: settings put secure sysui_qs_tiles "(<----a space after tiles then parenthesis)

Now right click. This will populate your qs tiles list.

At the end it should say "work". Type ,MobileData" (comma at the beginning with no spaces and a parenthesis at the end.

Hit enter

That's it! Should be at the end of qs tiles in notifications dropdown
[Nexus 6P General] Grushteniak:
Amazing guide, thanks [MENTION=5856830]tnick84[/MENTION] and [MENTION=8212503]rizalkhoiruddin[/MENTION] for sharing it.

I found an app that can help you guys with the package name: https://play.google.com/store/apps/details?id=com.csdroid.pkg
[Nexus 6P General] Rashad83:
No, the guide in this thread is to simply auto hide the navigation bar or status bar or both. So if you swipe near the edge they will show up and when not using they will hide.

To remove the navigation bar completely you need to edit the build.prop and add a code to it. If you search online you will find a step by step guide on how to do it.
[Nexus 6P General] isaakmg:
Hello friend, thank for you anser I can pull build.pro but no push, because my phone isn´t root and no hav twrp....

Solution for this?

Thanks in advance....
[Nexus 6P General] Rashad83:
I am afraid not, you don't have to be rooted to do this but you need twrp to push the build.prop. Try this guide http://www.theandroidsoul.com/edit-build-prop-without-root-using-adb-in-twrp-recovery/
[Nexus 6P General] RandyBoyz92:
I got my answer
[Nexus 6P General] Harekicker:
Hi just had a quick question about immersive mode

So i got it working and all apps do display full screen, but I'm wondering if its possible to have the status and nav bar being displayed while on home screen, app switcher and app drawer maybe, but completely hidden when inside any apps

Thanks
[Nexus 6P General] Rashad83:
Yes it's possible, you can show and hide it in multiple or a single app.

You need first to identify the app name in this case Google Now Launcher and the launcher folder location(I am assuming this is your launcher) by the way the folder of Google Now launcher on Nougat is: com.google.android.launcher

The following code is for a single app:

So on the PC you enter:

adb shell settings put global policy_control immersive.full=-com.google.android.launcher

On Phone if rooted, and have a terminal:

>su

>settings put global policy_control immersive.full=-com.google.android.launcher

If you want to hide multiple apps:

On the PC you enter:

adb shell settings put global policy_control immersive.full=apps,-com.google.android.launcher, -"location of the other app"

ex: adb shell settings put global policy_control immersive.full=apps,-com.google.android.apps.nexuslauncher,-com.twitter.android,-com.google.android.apps.photos,-com.google.android.GoogleCamera,

you add a negative sign before each app location and an apostrophe if there is another app after it.

On Phone if rooted, and have a terminal:

Same like before but without adb shell
[Nexus 6P General] Harekicker:
Oh sorry I am on the S8 and using the default samsung launcher

So would the file be a com.google file or com.samsung? I cant seem to find it
[Nexus 6P General] Rashad83:
I am not sure, you will have to search for it in the system folder.

look for system/data/data .........

or install an app from the play store that locates an app folder location.
[Nexus 6P General] radioraheem2:
Hi Rashard, I too want to have navigation buttons always on the home screen, disappearing only when I go into apps. I tried the command you listed to exclude my launcher (Nova) and it didn't work. once i enter the prompt adb shell settings put global policy_control immersive.full=-"nova launcher file name here", it would just bring back the buttons to every part of the phone.

Do you know another work around? Specifically I don't even care to hide navigation for most apps, I only want it for Instagram.

thank you

Ben
[Nexus 6P General] Rashad83:
The command line you entered is wrong.

On PC type:

adb shell settings put global policy_control immersive.full=apps,-com.teslacoilsw.launcher
[Nexus 6P General] radioraheem2:
thank you kind sir!
[Nexus 6P General] Rashad83:
You are welcome.:good:
[Nexus 6P General] c200amgpacket:
On my s8+ works excellent thank you!!!!
[Nexus 6P General] jbpf77:
I did this to try and remove the nav bar while I was using the keyboard, as I keep tapping Home instead of the space bar due to there being no physical 'lip' separating them any more. It worked removing the nav bar from the home screen etc, but it comes back whenever the keyboard is open. Any way to stop this happening? Also, any way to make the nav bar stay open a bit longer after you swipe to see it? It disappears really quickly. Thanks!
[Nexus 6P General] Rashad83:
I am afraid not, your best option is to disable the navigation bar from the build.prop and install a custom navigation bar which gives you more options.
[Nexus 6P General] gdeath07:
Works perfect! 1 more thing,will there be any conflict/problem in the future update? should we revert back if there is a available update/s? thank you again!
[Nexus 6P General] Rashad83:
If there is a reset to the OS you will just have to redo the process. You don't have to revert, if you lose the ability to auto hide after the update just redo the process one more time.
[Nexus 6P General] Grushteniak:
I'm trying to combine things here:

I want to hide navigation bar when using any app except Nova Launcher AND want to hide status bar to all apps except Nova Launcher and WhatsApp (WhatsApp does not work well with status bar hidden, maybe something related to my lower DPI).

I'm using these two commands:

settings put global policy_control immersive.navigation=apps,-com.teslacoilsw.launcher

settings put global policy_control immersive.status=apps,-com.teslacoilsw.launcher,-com.whatsapp

When I run the second one, the settings applied by the first one are 'discarded'. Any ideas on how to combine these two commands to have a full immersive mode on all apps (except Nova Launcher) and to show only statusbar on WhatsApp? I've tried several combinations with no luck.
[Nexus 6P General] Rashad83:
Any command line will remove the previous command executed, also you cannot combine two effects(hide the navigation in some apps and the status bar in some other apps) you can apply only one effect(one bar "status or navigation", two bars) and exclude from it multiple apps.

Edit: It seems there is a way to combine effects but you need to use a single command line. Please check the first post.
[Nexus 6P General] TehPirate_:
Would it be possible to remap the activity to show the bars with the bixby button? I find swiping up for the navbar causes unnecessary scrolling.

edit: Just realized this was a Nexus forum, sorry. Followed from Google
[Nexus 6P General] Rashad83:
No problem, if I understood this correctly you want to show/ auto hide both bars once you click the Bixby button depending on the state of the bars. I think it's possible to remap using tasker by making tasker execute the adb commands once the physical button is clicked, another option is to use a custom quick settings tile to change into immersive mode. Have you tried the following apps: Shortcutter Quick Settings, Nougat Quick Settings .

If you just want to disable immersive mode from just the Bixby app simply locate the application folder and exclude it from being immersive as suggested earlier in a previous post, please check earlier posts on how to exclude an app.
[Nexus 6P General] TehPirate_:
Could you go into some more details in regards to shortcutter? I was originally just referring to the swiping action which displays the bars if it was possible to call through an activity or such. But toggling immersive would work too.

How would I go about it with shortcutter?
[Nexus 6P General] Rashad83:
Install the app from play store, once you open it it will tell you how to use it. Now if you are rooted you can just add a tile to quick settings easily. If you are not rooted you need to enable settings secure option in the app, the app will tell you the command line you have to type through​ Adb to enable immersive tile.

After enabling the quick access you should be able to drag a tile called immersive into the quick settings shade by clicking the pen icon. There are videos on YouTube of how to do it if it's not clear.
[Nexus 6P General] ragingd:
If you used adb command to hide the navbar in a single app, is there a way to revert the app back to normal?
[Nexus 6P General] Rashad83:
Yes, use the command line for going back to normal.
[Nexus 6P General] yash92duster:
[MENTION=4093352]Rashad83[/MENTION]

Thanks mate:D
[Nexus 6P General] skandyrocks:
I am not sure if I am the only one here in this thread, but I discovered some really bad battery drain when I use adb shell settings put global policy_control immersive.navigation=*. Android system consumes more than 20% of my battery, especially when I don't use my phone very often.

I looked around the web a little and found that thread in Google products forum:

d/msg/nexus/Ue9yOjq4y4A/PCOIyME_DgAJ (I am not allowed to post links because I am a newbie)

tl;dr: logcat "spam" when screen is off

so I tried adb shell settings put global policy_control immersive.navigation=apps,-com.google.android.googlequicksearchbox and BAM - logspam gone, battery consumption back to normal.
[Nexus 6P General] Rashad83:
So you mean if you didn't hide the navigation bar in Google quick search the battery consumption went to normal. I think this issue is dependent on the rom. Also have you tried to clear cache of all apps and restart the device and see if the issue was still persistent.

Anyway I don't think it has anything to do with hiding the navigation bar, because my phone sleeps without any drain. The issue with Android system consuming battery is different with each rom from my experience with every security update and depending on what apps I have on my phone the consumption varied.
[Nexus 6P General] Barkuti:
Cool!

Pretty neat stuff. I was once a user of CM Browser and loved the way it disposed of the status bar without killing the navigation one, something which for (phone, high dpi) devices without dedicated navigation buttons results in an improvement on landscape aspect ratio. Handy. :cowboy:

Question on the matter: as a user of UI Tuner (changes resolution/dpi) I've observed that, above certain resolution values and/or reduced dpi (above a certain zoomed out view), the SSOO awfully relocates the navigation bar below the viewport.

Is there any known way to force the operating system to stick the navigation bar at the side no matter what? Thanks. :)

Regards my fellows. :cool:
[Nexus 6P General] Rashad83:
If you do find out, let us know. Good luck.
[Nexus 6P General] beatschubser:
There's actually a way you can do this.

Example

App A: status bar only

App B: nav bar only

App C: fully immersive

settings put global policy_control immersive.navigation=app.a,app.c:immersive.status=app.b,app.c

Both commands are executed at once and won't override themselves.

Regards :cool:
[Nexus 6P General] Grushteniak:
It worked, thank you!
[Nexus 6P General] b0Ne83:
Anyway to make this auto hide after 10 seconds of not clicking on the screen and double tapping for it to reappear?
[Nexus 6P General] Rashad83:
For now i don't know a way to do it, if you manage to find out a way let us know.

By the way i have updated the OP.
[Nexus 6P General] programci:
That is fantastic. Now, I loved my Galaxy S8. But i have a question, is there a way to assign Bixby button to go back to home (desktop) ? So we wouldnt need to swipe up for home button
[Nexus 6P General] Rashad83:
https://www.xda-developers.com/how-...-the-galaxy-s8-s8-to-launch-google-assistant/
[Nexus 6P General] Grushteniak:
I'm looking for a way to increase the time navigation bar stays visible when immersive mode is enabled, but I'm pretty much in the dark. Have you found anything?
[Nexus 6P General] b0Ne83:
No but this would help so much. I hope one of the developers can make this happen for us. I keep finding it difficult to go back when the messages app is open and keyboard comes up.

Let me know!

-b0Ne
[Nexus 6P General] memokalel:
Hi, is there any option to disable Navbar and status bar with ADB, no Root? not hidding, disable it.
[Nexus 6P General] memokalel:
I have a better command.

adb shell settings put global policy_control immersive.navigation=apps,-com.teslacoilsw.launcher:immersive.status=apps,-com.teslacoilsw.launcher,-com.whatsapp,-com.facebook.katana

I used facebook too, ´cause y don´t like it without status bar!

thats´all
[Nexus 6P General] Rashad83:
You can do it for the navigation bar but you will need TWRP to make the changes.

What you do is flash TWRP then you mount system. Take the build.prop file Change it by adding the code for disabling the navigation bar( you can do this on PC) then after you are done put back the build.prop in its place with default permissions(664). If you want the stock recovery back just extract it from your stock rom (recovery.img).

Then using your PC flash the recovery back using fastboot flash recovery command.

This process is more for advanced users, don't try doing this before reading on how to flash TWRP, backup and how to use Fastboot commands and everything else, you can end up in a bootloop if things go south but it's doable. You can start by visiting thses links: http://www.theandroidsoul.com/edit-build-prop-without-root-using-adb-in-twrp-recovery/

https://www.androidexplained.com/nexus-6p-disable-navigation-bar/

http://www.theandroidsoul.com/remove-twrp-recovery-restore-stock-recovery/
[Nexus 6P General] samsungrek:
Im using to hide nav buttons on my S8: adb shell settings put global policy_control immersive.navigation=*

There is a problem when entering split screen and using two app side by side. For example youtube and chrome(screenshot belove). Youtube video works but the chrome shows just a black image and 1/3 shows the actual site. Also the nav buttons pops up when using split screen.

Any method to fix this? I remember Nexus 5X had the same problem with this command.

For example is there a command like there is for certain apps: Immersive in all apps but with certain apps having Navigation bar not hidden, but for split mode?
[Nexus 6P General] Rashad83:
I have no issues with chrome and YouTube in split screen mode. I have even tested this, attached is my screenshot​. By the way YouTube doesn't play well with status and navigation bar hidden especially when typing a comment. So try to exclude YouTube navigation bar from being hidden by entering the following code:

>adb shell settings put global policy_control immersive.navigation=apps,-com.google.android.youtube

See if that solves it. By the way regarding my screenshot all my apps are in immersive mode except the ones that are misbehaving. Regarding the recent apps screen you can't hide the navigation bar from it so it will always pop up.
[Nexus 6P General] samsungrek:
I tried again to test the split screen mode but now when I try to put Chrome up and Youtube down the Chrome works fine but Youtube doesnt. When I try to play a video its complitely black.

Ill try tomorrow to use the code you gave and comment back if it worked.

Thank you for quick reply.
[Nexus 6P General] Rashad83:
Sure no problem. If you are still facing problems​ with chrome or YouTube and you don't mind having the navigation bar in them simply exclude both apps.

So if the code for excluding YouTube didn't work, enter the following code to exclude both apps:

>adb shell settings put global policy_control immersive.navigation=apps,-com.google.android.youtube,-com.android.chrome
[Nexus 6P General] samsungrek:
>adb shell settings put global policy_control immersive.navigation=apps,-com.google.android.youtube

Solved the problem also the comment section works like it should.

Thank you.
[Nexus 6P General] multibugs:
On my Galaxy S8 I excluded the launcher which fixed the black multiscreen problem on chrome and youtube. The benefit is it still hides the nav and status bars when using chrome and youtube in regular full screen mode. It does show the status and nav bar on the homescreen though, but I wanted that anyways.

>adb shell settings put global policy_control immersive.full=apps,-com.sec.android.app.launcher

I also tried excluding the multiscreen app itself which fixes the black screen bug, and it also hides the status and nav bars on the homescreen. Something weird was happening when I hit the home key from inside the multiscreen app and tried swiping down from the hidden status bar. It wouldn't come down. I'm not sure exactly what was happening so use this one at your own risk.

>adb shell settings put global policy_control immersive.full=apps,-com.samsung.android.app.multiwindow

remember this is for galaxy s8 so your launcher and multiwindow app names are probably different
[Nexus 6P General] Rashad83:
I think the multi window screen on Samsung is different from the OS built in one, the built in one you can't hide the navigation bar or your not supposed to because if you could it would have been by the command line for immersive. Regarding YouTube I suggest you show the navigation bar & status bar because it miss behaves when typing a message. Previously I mentioned you can't hide the navigation bar in recent apps screen what I meant is the OS built in multi window screen sorry for that, actually the recent apps is already immersive if you apply the command line for immersive.

The black gap issue i don't face it with my setup, so i am not sure what is causing it.
[Nexus 6P General] youngblood68:
hello , I have the app installed and can use it , but I just can't get to exclude from apps like telegram? i first put adb shell press enter and then settings..... but not working or i am doing something wrong here . I have the s8 plus can someone please help me with this and put exactly what i should type or step by step, thank you
[Nexus 6P General] Rashad83:
What app do you mean?(you mean a shell terminal)

The first post states clearly what you need to do never the less please explain in detail what you want to achieve, what apps you want to exclude and are you rooted or not?

To use a terminal you need to be rooted, after that once you open the terminal type:

>su

After that enter one of the command lines in the first post without adb shell, so you type:

>Settings put .......
[Nexus 6P General] youngblood68:
ah . sorry my bad , i have on the phone Shortcutter , dont have root , and I am doing it using adb fastboot program , whatsapp telegram and messenger ,
[Nexus 6P General] Rashad83:
Still not clear, if you want to have a quick settings tile to enable immersive mode, hide the navigation bar or status bar simply make sure to follow this guide(using this method you can't exclude apps you will simply have to click the tile to hide and unhide): https://android.gadgethacks.com/how...ile-any-nougat-device-no-root-needed-0177342/

-------------------------

If you don't want to use an app like shortcutter, which this thread is for you need to follow this guide first: https://www.google.de/amp/www.droidviews.com/enable-immersive-mode-without-root/amp/

Once you reach to the section where you have to enter the command(step 5) type this instead(this command will enable immersive mode except for the apps you mentioned I have added YouTube to the list):

> adb shell settings put global policy_control immersive.full=apps,-com.google.android.youtube,-com.whatsapp,-org.telegram.messenger,-com.facebook.orca
[Nexus 6P General] youngblood68:
is this all in one ? or first adb shell enter and then settings on second line ?
[Nexus 6P General] youngblood68:
dont know what i am doing wrong but , as you can see i put it in like this and not working ? can you do a screen shoot and show me please
[Nexus 6P General] Rashad83:
Is USB debugging on and is the connection to the PC in file transfer mode instead of the default one (charge only).

If you did that type in the Cmd:

>adb devices

A pop up notification will show on your phone enable it.

Then type again:

>adb devices

You should see your device connected, if it is enter the command again.