(Question) Pixel 2/Pixel 2 XL ADB Change Navigation Bar Color? - Google Pixel 2 Questions & Answers

Hey guys, Im new to here.
So, basically I was reading another thread talking about using adb shell command to change the variables of the colour index setting of the android navigation bar. However, only available on S8 (?). I tried multiple times inputting the following commands into my mac terminal by connecting to my pixel 2 XL and reboot, no luck. What I wanted to was to make the navigation bar looks translucent so in certain apps like Chrome I would be able to view the contents seep through the bar's transparency thus making the screen looks bigger.
adb shell settings put global navigationbar_color -0
adb shell settings put global navigationbar_currentcolor -0
Click to expand...
Click to collapse
Does anyone know if the above commands only works on S8, which enables user to change the setting> display> navigation bar? Appreciate if this could be answered in the adb manner cause I didn't really like how the navbar app worked.
Im currently using the Navigation hider app, this works perfectly if you havent tried please do. But I just want to explore for an alternative.
P.s. Sorry I couldn't post the link of the app here since XDA forum implemented a policy preventing user to spam.

Related

[Q] Disable SystemUI without disabling notifications?

greetings fellow XDA members.
need some professional help regarding the tabs' systemui.
i personally hate the system bar at the bottom, it takes up space which isnt really needed.
most of us would definitely accidentally pressed the buttons there while playing some games.
so what i usually do is to hide the system bar via honeybar.
problem is, no back home nor menu buttons. so i used an overlay. worked pretty well and soon enough i graduated to using GMD gesture control[awesome app]
now i have no system bar + freestyle gesture controls tailored to my own style.
the new problem is that since hiding the system bar simply kills systemui, i am unable to receive any notifications except toasts from su etc and using notification apps just doesnt work seamlessly like the systemui.
is there anyway to hide/kill system bar without killing the notification?
or better, is it at all possible to have a regular non tab status bar [aka top statusbar + pulldown notification] for our tab?
i apologize for being long winded, just trying to be detailed.
any help is appreciated. googling it gave diff answers not relating to tabs so im at a lost.
Only workable way I found was to
decompile framework-res.apk, track down dimens.xml and edit "status_bar_height" and "navigation_bar_height" = 0, depending on what dpi you use, I use 213 and that shows a combined bottom bar.
Its important to mention that since the combinedbar thinks its still there a transparent area still occupy the space when ex. in any dialogs that uses dimming you´ll see a area without dim, so esthetically all 3 backgroundDimAmount´s should be also set to 0 in /values/styles.xml.
Still any apps you open, will open in fullscreen and occupy entire screen..
There is a challenge if you dissable GMD, making it very difficult to return or manouver, unless I find a way to add back or home to the powermenu in CM9, which I haven´t yet..
This stops polluting catlog with systemui crashes every darn minute, wich bordered me from the beginning..
If you have ideas I am all ears
cheers!
thanks for the reply.
im a newbie when it comes to edting xml files, heck im not even sure how to decomompile the framework-res.apk but i'll tinker around for a lil bit and see what comes out of edting the files.
if its similar to editing xml files from within an apk, then i guess im safe since ive tinkered with an xml file that granted apps permission to save data to ext sd. thats a start i guess.
youve basically given me something to work with.
will get back here if i have any further queries or run into any problems with your stated workaround.
Sent from my GT-P6800 using XDA Premium App
Zulhitler said:
thanks for the reply.
im a newbie when it comes to edting xml files, heck im not even sure how to decomompile the framework-res.apk but i'll tinker around for a lil bit and see what comes out of edting the files.
if its similar to editing xml files from within an apk, then i guess im safe since ive tinkered with an xml file that granted apps permission to save data to ext sd. thats a start i guess.
youve basically given me something to work with.
will get back here if i have any further queries or run into any problems with your stated workaround.
Sent from my GT-P6800 using XDA Premium App
Click to expand...
Click to collapse
ok, if you need any help just pm me..
systemui.apk
biopsin said:
ok, if you need any help just pm me..
Click to expand...
Click to collapse
Hi, I'm not a tech geek, but interested in tweaking my tab, but if you please share your updated framework-res.apk so i can just replace it with mine :fingers-crossed:
vijay.alapati said:
Hi, I'm not a tech geek, but interested in tweaking my tab, but if you please share your updated framework-res.apk so i can just replace it with mine :fingers-crossed:
Click to expand...
Click to collapse
My framework is way to heavy slimmed for your likings, but I could rather make a specific one for your current os.
PS. there is some preparations:
1. you will need to setup GMD and assign home,back,show notifications and so on..(activate GMD notification icon (optional))
2. just in case, make important shortcuts on home to apps drawer, open notification, so on if GMD stops working
3. make a restore CMW package of current framework-res and SystemUI, you might change your mind
I have not mentioned this, but sometimes GMD will be unresponsive when waking up the device (worst case 20-30sec), therefore it is wise to have some sort of backup shortcuts of some kind if you can´t wait for it to restart..
(future focus : adding home or back to the powermenu if GMD would be switched off.)
If you are rooted and running the lastest CM10 (from Aorth) or CM10.1 rom, you can use the expanded desktop option:
http://www.youtube.com/watch?v=m1u2c_s1QaI
Not sure about getting notifications, will have to try that out later...
Since you're using GMD gesture control, why not set it to disable the notification bar on some apps, but leave it open for others? You could, for example, run "fullscreen" in everything but your home screen if you wished, and just go there periodically for notifications. I also found that if you make a custom gesture to show notifications, it will both reactivate the notification bar and then pop the notifications out. You can use that gesture and then re-hide the bar manually.
If you are rooted and running the lastest CM10 (from Aorth) or CM10.1 rom, you can use the expanded desktop option:
http://www.youtube.com/watch?v=m1u2c_s1QaI
Not sure about getting notifications, will have to try that out later...
Click to expand...
Click to collapse
As you say, he dosen´t show if notifications work, I will asume this still kills systemui in the background...
Since you're using GMD gesture control, why not set it to disable the notification bar on some apps, but leave it open for others? You could, for example, run "fullscreen" in everything but your home screen if you wished, and just go there periodically for notifications. I also found that if you make a custom gesture to show notifications, it will both reactivate the notification bar and then pop the notifications out. You can use that gesture and then re-hide the bar manually.
Click to expand...
Click to collapse
I experienced instability, it also consumes more battery when systemui is killed like this, and my logs got polluted with crash reports more or less every minute, therefore I looked for a solution to preserve both..

Question about the latest update?

Hello!
So I just have a quick question about the latest update for the S8, where they removed black as an option for the Navbar color and enabled us to hide it (immersive mode).
Whenever you hide the navbar, how does the "swipe up" gesture work in reality? As in how "good" does it work? I remember (before the update) trying the immersive mode with Custom Navigation bar (app), and the swipe up gesture was bad, whenever I tried to get the navbar up, I was scrolling up in the app I was using as well..?
leeswagger said:
Hello!
So I just have a quick question about the latest update for the S8, where they removed black as an option for the Navbar color and enabled us to hide it (immersive mode).
Whenever you hide the navbar, how does the "swipe up" gesture work in reality? As in how "good" does it work? I remember (before the update) trying the immersive mode with Custom Navigation bar (app), and the swipe up gesture was bad, whenever I tried to get the navbar up, I was scrolling up in the app I was using as well..?
Click to expand...
Click to collapse
It works great. Much easier than previously. And here's a link on Reddit to get Black NavBar back, it works and is safe.
https://www.reddit.com/r/GalaxyS8/comments/6ickwa/revert_a_black_color_on_navbar_settings/
ggrant3876 said:
It works great. Much easier than previously. And here's a link on Reddit to get Black NavBar back, it works and is safe.
https://www.reddit.com/r/GalaxyS8/comments/6ickwa/revert_a_black_color_on_navbar_settings/
Click to expand...
Click to collapse
Alright great!
Nice! But how much different is that from this: https://www.xda-developers.com/change-galaxy-s8-navigation-bar-color/amp/ ?
I'd rather use ADB than download an apk from an unknown source
leeswagger said:
Alright great!
Nice! But how much different is that from this: https://www.xda-developers.com/change-galaxy-s8-navigation-bar-color/amp/ ?
I'd rather use ADB than download an apk from an unknown source
Click to expand...
Click to collapse
It's just easier than ADB, if you don't have the sdk downloaded or not around a PC. I used ADB to get rid of the battery icon in the status bar. The apk is just an overlay like all of these.
https://forum.xda-developers.com/galaxy-s8+/themes/substratum-inversion-ui-overlay-overlays-t3604341
ggrant3876 said:
It's just easier than ADB, if you don't have the sdk downloaded or not around a PC. I used ADB to get rid of the battery icon in the status bar. The apk is just an overlay like all of these.
https://forum.xda-developers.com/galaxy-s8+/themes/substratum-inversion-ui-overlay-overlays-t3604341
Click to expand...
Click to collapse
Yea alright, I just don't know the upload source, so ADB "feels" safer
Just installed it, works great, thank you indeed.

Hide your Navigation Bar

You can hide your navigation bar using the "Custom Navigation Bar" app. It works great, no root needed just Grant permission using adb. It'll definitely give your screen more real estate and prevent screen burn ins. Just swipe up and the navigation bar reappears with a transparent background.
https://play.google.com/store/apps/details?id=xyz.paphonb.systemuituner
Screenshots
One more
Ordered mine today through Best buy. Should be here Wednesday. Seems like a pretty good deal.
Is there a way to re-enable long press home for google assistant and long press apps for dual window?
shiz0id said:
Is there a way to re-enable long press home for google assistant and long press apps for dual window?
Click to expand...
Click to collapse
It's workiing for me but I had to turn immersive mode off and back on after I installed this app to get GA working. Don't theme the buttons or GA won't work
can use adb to hide only navigation bar, or only status bar or both.
i am currently hiding only navigation bar and loving it so far.
king23adrianc said:
can use adb to hide only navigation bar, or only status bar or both.
i am currently hiding only navigation bar and loving it so far.
Click to expand...
Click to collapse
Hiding the status bar doesn't work well with device, it throw off the touch sensor, for example if you were to try and click on a link you couldn't youd have to touch just below the link to click the link
Im going to buy the pro as im very satisfied on it. The youtube is displaying correctly vs the layout was offering to the other thread.
mackentosh said:
Hiding the status bar doesn't work well with device, it throw off the touch sensor, for example if you were to try and click on a link you couldn't youd have to touch just below the link to click the link
Click to expand...
Click to collapse
yes that's why I said did adb hide navigation bar only
ad78 said:
Im going to buy the pro as im very satisfied on it. The youtube is displaying correctly vs the layout was offering to the other thread.
Click to expand...
Click to collapse
yes youtube is weird. so I chose adb hide navigation bar except youtube, launcher, camera and photos.
king23adrianc said:
yes that's why I said did adb hide navigation bar only
yes youtube is weird. so I chose adb hide navigation bar except youtube, launcher, camera and photos.
Click to expand...
Click to collapse
i uninstalled layout. instead i whitelist "*" then install custom navigation bar
all my apps were full screen now and youtube is full screen as well.
My Phone arrived today, unlocked the Bootloader and installed the Android 8.0 Beta on it, the Commands for whitelisting every app doesn't work here, can someone help? The Commands are accepted on adb, but after Reboot for example the Youtube App is still NOT Fullscreen or Instagram either
Wanya79 said:
My Phone arrived today, unlocked the Bootloader and installed the Android 8.0 Beta on it, the Commands for whitelisting every app doesn't work here, can someone help? The Commands are accepted on adb, but after Reboot for example the Youtube App is still NOT Fullscreen or Instagram either
Click to expand...
Click to collapse
Try this apo This, this is a better app
https://play.google.com/store/apps/details?id=in.tsdo.elw
mackentosh said:
Try this apo This, this is a better app
https://play.google.com/store/apps/details?id=in.tsdo.elw
Click to expand...
Click to collapse
thx, that is hiding the navbar, but how is it possible that the Apps goes fullscreen around the Top Nodge (around the Camera Lens)
Wanya79 said:
thx, that is hiding the navbar, but how is it possible that the Apps goes fullscreen around the Top Nodge (around the Camera Lens)
Click to expand...
Click to collapse
With this app majority of all apps are full screen, Instagram definitely is
Wanya79 said:
My Phone arrived today, unlocked the Bootloader and installed the Android 8.0 Beta on it, the Commands for whitelisting every app doesn't work here, can someone help? The Commands are accepted on adb, but after Reboot for example the Youtube App is still NOT Fullscreen or Instagram either
Click to expand...
Click to collapse
thats because essential removed the whitelist since the last 2 Nougat builds
mackentosh said:
Try this apo This, this is a better app
https://play.google.com/store/apps/details?id=in.tsdo.elw
Click to expand...
Click to collapse
i dont like this. try youtube, remove the navbar and full screen on landscape, the aspect ratio is very odd
FYI this isn't an OLED screen, so burn-in isn't a reason to do this. LCD doesn't have that issue.
Great info was looking for something like this.
With custom nav bar the keyboard pops up like it is suppose to.
with the other app the keyboard had problems displaying, bought the pro version.
qnc said:
Great info was looking for something like this.
With custom nav bar the keyboard pops up like it is suppose to.
with the other app the keyboard had problems displaying, bought the pro version.
Click to expand...
Click to collapse
No need for an App.
· 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*
Exclude Google apps
adb shell settings put global policy_control immersive.navigation=apps,-com.android.chrome,-com.android.vending,-com.google.android.gm,-com.google.android.googlequicksearchbox

[HOW TO]Move the clock in Android Pie

How to move the clock on the right or put it in the center on android pie​
There is a way to move the clock on the right where it was. For me, personally, I get used to to be in the left, but I also like to be able to personalize my phone on the way I want. Now, this is possible
1. You need to install an app called System UI Tuner and register for the beta program. After this, you have to receive an update of the app. Update it.
2. Need to give it permission through ADB. Here are the commands:
adb shell pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS
adb shell pm grant com.zacharee1.systemuituner android.permission.PACKAGE_USAGE_STATS
adb shell pm grant com.zacharee1.systemuituner android.permission.DUMP
3.Go to Status bar > Custom and click Add item. Enter the key "right_clock_position". Enter whatever name for it you want. The new item will be created. Toggle it OFF.
Screenshot:
https://i.imgur.com/iTGR24G.jpg
The littles little buggy for me, just keep it in mind. Also, the clock can be moved in the center with "middle_clock_position"
Source: Reddit
Thank you sooooooo much for this FIX, it was driving me nuts!
OMG!!!!!!!!!!!! Best pie mod ever!
fantastic app, there is the option to hide status bar e recall it with a swype when needed
Wish this had come out sooner, but LOVE it!
OK, I'm an idiot...where do I sign up for the beta of System UI Tuner?
I found it.... (I'm still an idiot)
From the last update of the app, you don't need anymore to add keys. There is option for moving the clock.
View attachment 4708037
So glad to have the clock back where it belongs
larryk said:
OK, I'm an idiot...where do I sign up for the beta of System UI Tuner?
I found it.... (I'm still an idiot)
Click to expand...
Click to collapse
So where is it?
After you have installed the app, wait about 15 - 20 minutes, and go back into the play store on that app, and you should see a link to join the beta program. I did it from the phone, I don't know if it shows up on a PC.
AWESOME!!! Thanks ?
Does it have date in status bar?
Sent from my iPad using Tapatalk
FYI,to the OP and everyone who used this method: You don't need to do anything in special to accomplish this. Go to settings>press the magnifying glass and type in "clock"> go to "clock style" and choose whatever one you desire including the big font one prior to android pie. Your welcome.
racingmatt1 said:
FYI,to the OP and everyone who used this method: You don't need to do anything in special to accomplish this. Go to settings>press the magnifying glass and type in "clock"> go to "clock style" and choose whatever one you desire including the big font one prior to android pie. Your welcome.
Click to expand...
Click to collapse
Did you even READ the OP? This method is for moving the clock in the status bar.
mopartonyg said:
Did you even READ the OP? This method is for moving the clock in the status bar.
Click to expand...
Click to collapse
Must of overlooked the status bar part.
Good lock app is now available in Galaxy Store with a module to move the clock position in the status bar, as well as tons more awesome customization options. For those of you who have disabled galaxy store, the apk for Good Lock and its modules can also be found on apkmirror.com
I had never used this app prior to Pie but I must say, its pretty friggin sweet! I highly recommend it to all galaxy device owners (unfortunately it's not yet compatible with Galaxy S10(+) apparently)
https://forum.xda-developers.com/showthread.php?t=3908650
[APP][v2.0][09/03] NiceLock - Good Lock 2019 Launcher for Pie [Updated]
Sent from my [device_name] using XDA-Developers Legacy app
Anyway to show date on the status bar without an app?
I don't think is possible? At least I don't know.
PS:
About the guide in OP. Now is kinda useless because you can do this with Good Lock.
I tried it on my huawei mate 10 and it didn't work. Is a reboot needed after, perhaps? I prefer the clock in the middle.

Question 3rd Party Launcher with Vivid Navigation Gestures

In the app settings for Vivid Navigation Gestures, it has the option to hide the navigation bar. It says I can do it through ADB without root. Does anyone know how to do this or can give me steps to do this without root? Thanks!
so i entered the command (ive tried this with Fluid navigations also) that it gives to hide the navigation bar and it does not hide the buttons or the navigation bar... Is there a way to hide them and still use a 3rd party launcher with either Fluid or Vivid navigation apps? Thanks
ajschill77 said:
so i entered the command (ive tried this with Fluid navigations also) that it gives to hide the navigation bar and it does not hide the buttons or the navigation bar... Is there a way to hide them and still use a 3rd party launcher with either Fluid or Vivid navigation apps? Thanks
Click to expand...
Click to collapse
Does not work on miui there is only one way I found without root that would work. I'll post it later. Much easier with root and no reason not to root
Ok. How would I do it if I did root? I'm just kinda worried I might mess up the phone.... If I only have a Mac computer can I still root? Thank you.
ajschill77 said:
Ok. How would I do it if I did root? I'm just kinda worried I might mess up the phone.... If I only have a Mac computer can I still root? Thank you.
Click to expand...
Click to collapse
i know nothing about MAC you'll have to google.
use the app setedit you can download in the play store
use adb to get the proper permissions, if you check the app description in the play store it says the command you need to enter
select global table on the right side and find
force_fsg_nav_bar 1
i'm not sure if the standard value is 0 or 1 cause I already have mine changed. so if its 1 change it to 0. if its 0 change to 1.
you will have to do this everytime you reboot though
much easier and better to root, install magisk and hide with a module. read my tips/tricks thread on what you need to do
Thanks, the setedit app worked great. When I restart the phone, do i just have to go back in to change the value? That would be all I need to do to have it hiding the buttons? Thanks again!
ajschill77 said:
Thanks, the setedit app worked great. When I restart the phone, do i just have to go back in to change the value? That would be all I need to do to have it hiding the buttons? Thanks again!
Click to expand...
Click to collapse
Yes. There is a way to buy the app and it will auto do it when you reboot too. You'll have to try to figure it out
You can hide navbar without root using adb by changing into miui gestures overlay. It works until you reboot your decide, then you have to repeat.
Here's the command:
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
Click to expand...
Click to collapse
Hey all:
Vivid Gestures keeps losing accessibility settings, and I need to keep reenabling it.
Does anyone else have this problem and (ideally) some kind of solution.
Thanks
Ok...
Started using Full Screen Gestures, and that seems to work better
You cant use third party launchers then, correct?
Full Screen Gestures is an app, an alternative to Vivid.
It seems to play nicer with the Fold 2.
rcs1000 said:
Full Screen Gestures is an app, an alternative to Vivid.
It seems to play nicer with the Fold 2.
Click to expand...
Click to collapse
And I'm using Niagra as my launcher, which is great with foldables.

Categories

Resources