FORUMS
Remove All Ads from XDA

[Guide][17-5-2017]Hide Navigation Bar, Status Bar or both(Immersive Mode)-No App

574 posts
Thanks Meter: 321
 
By Rashad83, Senior Member on 29th November 2016, 11:37 PM
Post Reply Email Thread
Hi guys, i was searching for a way to hide the navigation bar without any app that will require you buying it or it consuming battery and after finding a couple of threads on the topic i thought of sharing my findings and also as a reference to go back to in case i forget how to. This is also good for eliminating or reducing screen burn caused by the bars on Amoled screens.

Credits go to @jplempka @cabegol @SmartPhoneLover

Type the following commands in adb/fastboot environment (adb shell) on your PC after connecting the phone in file transfer mode and usb debugging is on:

· 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*

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

Updates: (15/5/2017):

+ Immersive in all apps except certain apps
adb shell settings put global policy_control immersive.full=apps,-"app location",-"another app location"

Notes:
1. You can get the app location by going to "system/data/data" using any file browser with root, the location should start with the app folder name "com.appname"
Ex: com.whatsapp
2. Remove quotation marks(" ")when adding the location of the app also add an apostrophe(,) if you are adding more than one app and when typing the code there is no space after the apostrophe.

Ex: https://forum.xda-developers.com/sho...61&postcount=5
Credits: @wilhexm, @rizalkhoiruddin

+ Immersive in all apps but with certain apps having Status bar not hidden
adb shell settings put global policy_control immersive.navigation=apps,:immersive.status=apps,-"app location",-"second app location"

Ex: adb shell settings put global policy_control immersive.navigation=apps,:immersive.status=apps,-com.whatsapp

Notes:
1. You can get the app location by going to "system/data/data" using any file browser with root, the location should start with the app folder name "com.appname" ex: com.whatsapp
2. Remove quotation marks(" ")when adding the location of the app also add an apostrophe(,) if you are adding more than one app and when typing the code there is no space after the apostrophe

Credits: @beatschubser https://forum.xda-developers.com/sho...6&postcount=54

+ Immersive in all apps but with certain apps having Navigation bar not hidden
adb shell settings put global policy_control immersive.status=apps,:immersive.navigation=apps,-"app location",-"second app location"

Ex: adb shell settings put global policy_control immersive.status=apps,:immersive.navigation=apps,-com.whatsapp

Notes:
1. You can get the app location by going to "system/data/data" using any file browser with root, the location should start with the app folder name "com.appname" ex: com.whatsapp
2. Remove quotation marks(" ")when adding the location of the app also add an apostrophe(,) if you are adding more than one app and when typing the code there is no space after the apostrophe.


By the way this method works on all rom versions i have tested it on Nougat and all commands work. Good
luck
-------------------------------------------------------------------

Updates: (17/5/2017):

Apps Identified to not play well with navigation and status bar hidden and how to exclude them(To be updated accordingly):
Apps List:

*Whatsapp(When typing the status bar needs to be there to see what others wrote at the same time)
*Wechat(When typing the status bar needs to be there to see what others wrote at the same time)
*Youtube(When typing the status bar and navigation bar need to be there)
*Hangouts(When typing the status bar needs to be there to see what others wrote at the same time)
---------------
Code: adb shell settings put global policy_control immersive.navigation=apps,-com.google.android.youtube,:immersive.status=apps,-com.whatsapp,-com.tencent.mm,-com.google.android.youtube,-com.google.android.talk
---------------


P.S: If you want to use these commands directly on your phone without a PC you need first to be rooted, next use any shell terminal to insert the code but remove the "adb shell" part.

So in the terminal app for example if you wanted to hide both bars you type the following:

>su
>settings put global policy_control immersive.full=*
The Following 27 Users Say Thank You to Rashad83 For This Useful Post: [ View ] Gift Rashad83 Ad-Free
 
 
30th November 2016, 12:38 AM |#2  
Senior Member
Thanks Meter: 45
 
More
Thank you for this info, also I just tested it using Android terminal and it works well. I don't always have PC nearby to test things, very nice.
The Following 2 Users Say Thank You to Fe Mike For This Useful Post: [ View ] Gift Fe Mike Ad-Free
30th November 2016, 12:42 AM |#3  
Rashad83's Avatar
OP Senior Member
Thanks Meter: 321
 
Donate to Me
More
Quote:
Originally Posted by Fe Mike

Thank you for this info, also I just tested it using Android terminal and it works well. I don't always have PC nearby to test things, very nice.

Cool that's another way. I don't know why we need to do it manually instead of google offering it as an option.
30th November 2016, 03:37 AM |#4  
puertorecon's Avatar
Senior Member
Flag Chicago
Thanks Meter: 169
 
More
I would love it on as a Google option.

Sent from my Pixel XL using XDA-Developers mobile app
23rd April 2017, 04:43 AM |#5  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by Rashad83

Hi guys, i was searching for a way to hide the navigation bar without any app that will require you buying it or it consuming battery and after finding a couple of threads on the topic i thought of sharing my findings and also as a reference to go back to in case i forget how to. This is also good for eliminating or reducing screen burn caused by the bars on Amoled screens.

Credits go to @jplempka @cabegol @SmartPhoneLover

Type the following commands in adb/fastboot environment (adb shell) on your PC after connecting the phone in file transfer mode and usb debugging is on:

· 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 type:

adb shell settings put global policy_control null*

By the way this method works on all rom versions i have tested it on Nougat and all commands work. Good
luck

Thank you for the post, this is cool! Can I choose only certain apps to be immersive? or set full immersive except some apps?

---------- Post added at 03:43 AM ---------- Previous post was at 03:36 AM ----------

Quote:
Originally Posted by rizalkhoiruddin

Thank you for the post, this is cool! Can I choose only certain apps to be immersive? or set full immersive except some apps?

Just found the answer from https://forum.xda-developers.com/pix...modes-t3554299

Quote:
Originally Posted by wilhexm

Sure!
for example, if u want to enable some apps

Code:
settings put global policy_control immersive.full=com.chrome.beta,com.google.android.apps.magazines,com.medium.reader
or if u want immersive full except some apps
Code:
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,-com.google.android.keep,-com.android.settings
The difference is the "-" before [app full name]

In this case you can add app names or 'apps,-*app name* to enable or set full immersive except some apps
The Following 3 Users Say Thank You to rizalkhoiruddin For This Useful Post: [ View ] Gift rizalkhoiruddin Ad-Free
25th April 2017, 03:51 PM |#6  
Member
Thanks Meter: 4
 
More
Hi could you explain in more detail how one does this? Thank you. I have no knowledge of adb within Android.
25th April 2017, 06:09 PM |#7  
Junior Member
Thanks Meter: 0
 
More
Permission denied
Hi

I'm trying this directly from the phone but I got the message "setting permission denied"

I'm in debug and dev mode

Any idez please
26th April 2017, 06:22 AM |#8  
Rashad83's Avatar
OP Senior Member
Thanks Meter: 321
 
Donate to Me
More
Quote:
Originally Posted by fredrik0612

Hi could you explain in more detail how one does this? Thank you. I have no knowledge of adb within Android.

Sorry, there are a lot of threads about Adb. If you are not familiar with rooting, flashing a rom. Then i suggest you don't do this. Please don't take offense but it's better to read on those topics before attempting this.
26th April 2017, 06:25 AM |#9  
Rashad83's Avatar
OP Senior Member
Thanks Meter: 321
 
Donate to Me
More
Quote:
Originally Posted by Cookiemonster51

Hi

I'm trying this directly from the phone but I got the message "setting permission denied"

I'm in debug and dev mode

Any idez please

You need to be rooted to execute the command within the phone.
26th April 2017, 04:14 PM |#10  
Senior Member
Thanks Meter: 70
 
More
@ashad83
hello friend and thanks for you post.

Is possible desactivate(delete) navbar without immersive mode. For use pie etc.....my nexus 6p no root. thanks in advance.

I can´t use the code qemu.hw.mainkeys = 1....or is possible make with adb and how?

Thanks in advance....
26th April 2017, 07:14 PM |#11  
Senior Member
Flag Colchester
Thanks Meter: 1,298
 
Donate to Me
More
$ su
put global policy_control immersive.status=* <
sush: adb: not found
127|angler:/data/data/com.termux/files/home # exit
$ adb shell settings put global policy_control immersive.status=*
No command 'adb' found, did you mean:
Command 'gdb' from package 'gdb'
$
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes