[GUIDE] [NO ROOT REQUIRED] Hide The Status Bar Or Nav Bar With ADB - Moto G5 Guides, News, & Discussion

Hide The Status Bar Or Nav Bar With ADB​
To permanently hide Nav Bar for root users only see post 2
Note this only hides the Nav bar - swipe up gesture will show Nav bar and not all apps will honour the hidden status
Requirements
ADB setup on pc - see Here if you need to set it up
Moto USB phone driver installed
How To
Connect phone to laptop/pc via usb cable and make sure usb debugging is enabled
Open a command prompt or terminal window at your adb location (If you have adb in your environmental values then you can run this from anywhere)
The commands you’ll need are:
To only hide the status bar:
Code:
adb shell settings put global policy_control immersive.status=*
To only hide the navigation bar:
Code:
adb shell settings put global policy_control immersive.navigation=*
To hide both status and nav bar:
Code:
adb shell settings put global policy_control immersive.full=*
Return things to normal:
Code:
adb shell settings put global policy_control null*

Root Only - Permanently Disable Nav Bar​
Requirements
Root
Root browser
Note - not all roms will support this change
First check to see if the rom supports expanded desktop which will do the job for you either globally or on a per app basis
Instructions
Set up all your gestures before continuing
Copy build.prop from /system to sd card and rename build.prop-backup using a root browser
Copy build.prop to any folder on internal stoeage
Open build.prop file you have placed in internal storage
Add the following line at the end of build.prop
Code:
qemu.hw.mainkeys = 1
Copy modified build.prop back to /system using a root browser
Make sure permissions are still set to 644
Restart phone

I wanted to contribute with my findings... This command: "adb shell settings put global policy_control immersive.status=*" hides the status bar in all apps, but some of them get bugged, for example in Instagram you can't see the text field when replying on a story, or Twitter doesn't display the bottom part where you can insert pictures to your post while typing.
I discovered that if you type "adb shell settings put global policy_control immersive.status=apps," then Instagram works fine without the status bar, and of course you could add twitter after that to exclude twitter.
But this is a bit random, I don't know exactly why Instagram gets fixed by this and I wonder if there is a way to fix other apps...

once nav bar is removed can u turn on and off in settings

mikedolo said:
once nav bar is removed can u turn on and off in settings
Click to expand...
Click to collapse
No - not unless you create your own mod and add it to the settings apk
Use the adb command to return things to normal

I tried it hides but whenever you swipe up it displays and you have to swipe up a second time to complete an action ! How to disable the drag ?

mchtt said:
I tried it hides but whenever you swipe up it displays and you have to swipe up a second time to complete an action ! How to disable the drag ?
Click to expand...
Click to collapse
It displaying when you swipe up is normal - that's just how it works and subsequently will effect the swipe up gesture
If you want to completely remove it see if your rom supports expanded desktop - will be in your phones settings somewhere if it does. Revert the adb changes and use that instead

Yes it does but on certain apps a bottom bar remains

Lineage OS

I just tried XDA navigation gesture, it hides the bar properly for the moment ?

mchtt said:
Yes it does but on certain apps a bottom bar remains
Click to expand...
Click to collapse
Again nothing I can do about that - it's how android works and how the app was built
If you want to remove it properly use a rom that supports expanded desktop and enable it in your phones settings

Like I said I did and I said it to the ROM developer, thanks for your replies anyway ?

Related

[HOW TO] enable non market apps

I don't know about you, but SuperOneClick's Allow Non Market Apps feature didn't work for me. When I went to setting>applications there was no check box for Unknown sources present. I got it by using Root Explorer and SQLight Editor (both on the market)
1. Use "RootExplorer" take you to
/data/data/com.motorola.android.providers.settings/databases/settings.db/settings
2. click on the "Value" colum of "force_only_market_apps"
3. Press "menu" button and select "Edit Field"
4. Change "1" to "0", then save.
Without even doing a factory reset or just a regular reboot you should have an unknown sources box available in your settings>applications.
That's not how it works. When you use the option in SuperOneClick, it enables that option for you, even if it doesn't show up in settings>applications.
Thanks. When using SuperOneClick I was able to root, but I wan't able to allow Unknown Sources through Settings->Applications.
Now it works!
thanks, sideloading didnt work for me using aroot.
i rooted using SOC a while ago, and DLed the official PSN apk yesterday since it's not on the US market, and installed it by clicking the apk in file manager with no problem.
Thank you so much! This finally worked! Using aRoot/GladEnable/SuperOneClick , all of them SAID it was enabled but it clearly wasn't ... when I navigated to the db field it was still at '1' .. thanks for this, finally it's working
i am on gingerblur, and when clicking the menu button i don't get a dialog to do anything. Maybe a bug of the theme?
So i can't use root explorer to do this, but anyway this is useful since now i know the database name and can do it by hand...
For those that want to do this by hand:
-connect your phone via usb, enable usb debugging
-from a command line, go where you have adb installed (android sdk or many scripts on this forum)
-run adb shell, then su. accept the message on the phone if prompted.
-type: sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db "UPDATE settings SET value=0 WHERE name='force_only_market_apps';" then enter, and you are done
franciscojavierleon said:
For those that want to do this by hand:
-connect your phone via usb, enable usb debugging
-from a command line, go where you have adb installed (android sdk or many scripts on this forum)
-run adb shell, then su. accept the message on the phone if prompted.
-type: sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db "UPDATE settings SET value=0 WHERE name='force_only_market_apps';" then enter, and you are done
Click to expand...
Click to collapse
I tried this and it did not work just said sqlite3 not found. Type exit and type exit then type sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db "UPDATE settings SET value=0 WHERE name='force_only_market_apps';" it just locked up terminal. If I type sqlite3 before adb shell it finds it.
Used root explorer and copied settings.db to sdcard. Once there used as a disk drive on computer. Edited it with navcat for sqlite and saved it. Then disconnected it for computer used root explorer and copied it back to data and overwrote existing file. Rebooted and all was fine.
I did everything, but I am not able to edit the field...
"Thanks
manpreet14 said:
I did everything, but I am not able to edit the field...
"Thanks
Click to expand...
Click to collapse
thanks much
i got it
BravoMotorola said:
I don't know about you, but SuperOneClick's Allow Non Market Apps feature didn't work for me. When I went to setting>applications there was no check box for Unknown sources present. I got it by using Root Explorer and SQLight Editor (both on the market)
1. Use "RootExplorer" take you to
/data/data/com.motorola.android.providers.settings/databases/settings.db/settings
2. click on the "Value" colum of "force_only_market_apps"
3. Press "menu" button and select "Edit Field"
4. Change "1" to "0", then save.
Without even doing a factory reset or just a regular reboot you should have an unknown sources box available in your settings>applications.
Click to expand...
Click to collapse
Thanx. Very useful info.
Worked for me.
Thanks
Works Great. Thank you!
is there a way to enable side loading with out rooting the phone?
aszrael1266 said:
is there a way to enable side loading with out rooting the phone?
Click to expand...
Click to collapse
sideload wonder machine. look it up. pretty easy.
BravoMotorola said:
I don't know about you, but SuperOneClick's Allow Non Market Apps feature didn't work for me. When I went to setting>applications there was no check box for Unknown sources present. I got it by using Root Explorer and SQLight Editor (both on the market)
1. Use "RootExplorer" take you to
/data/data/com.motorola.android.providers.settings/databases/settings.db/settings
2. click on the "Value" colum of "force_only_market_apps"
3. Press "menu" button and select "Edit Field"
4. Change "1" to "0", then save.
Without even doing a factory reset or just a regular reboot you should have an unknown sources box available in your settings>applications.
Click to expand...
Click to collapse
Thanks for this instruction...
Even though this thread is a little old it did help me and therefore want to add my two cents worth to possible help others who may be having issues. I have a rooted Motorola Flipside.
I purchased SQL Lite Editor from the market and was able to change the value directly in it. Here's how:
1. Download and install SQL Lite Editor from the market.
2. Start SQL Lite Editor to display a list of the applications installed on your device.
3. Look for the application titled Settings Storage (and in smaller print underneath it will display "com.motorola.android.providers.settings".
4. Select Settings.db.
5. Select Settings.
6. In the list of columns scroll down to item #70, "force_only_market_apps" and select it.
7. Click the shortcut menu on your device and select Edit Record.
8. Change the value from 1 to 0 then save and exit SQL Lite Editor.
9. Go to Settings > Applications. Unknown Sources will be visible and you will be able to check it.
Hope this helps anyone else who has issues.
Regards,
Greg
franciscojavierleon said:
For those that want to do this by hand:
-connect your phone via usb, enable usb debugging
-from a command line, go where you have adb installed (android sdk or many scripts on this forum)
-run adb shell, then su. accept the message on the phone if prompted.
-type: sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db "UPDATE settings SET value=0 WHERE name='force_only_market_apps';" then enter, and you are done
Click to expand...
Click to collapse
You are awesome buddy.. thanx

Softkeys in 1.2 rooted (MN 4.5.6)

Before the 1.2 update in rooted 1.1 pressing n-button twice would always bring up softkeys, so I didn't have to have that annoying button on the screen. With 1.2 rooted with MN 4.5.6 pressing n-button twice bings up softkeys only in apps that aren't full screen. Full screen apps don't seem to respond to that and simply exit (or whatever their handler for "home" does) on the first n-key press. The only way around that that I found is to have that annoying button up on the screen which seems to work.
Did anyone else encounter this? Is there any kind of a workaround? It is quite annoying to have that button up there when watching videos, etc.
Thanks
My understanding is that B&N changed the home button so it's just a 'back' action now. That being the case, I don't know why you would need softkeys anymore. You can always swipe right to left on the status bar to go back as well.
doncaruana said:
My understanding is that B&N changed the home button so it's just a 'back' action now. That being the case, I don't know why you would need softkeys anymore. You can always swipe right to left on the status bar to go back as well.
Click to expand...
Click to collapse
There is no status bar in a full screen app, and I typically want to hit menu or back.
Reprogramming the Vol+/- keys
mkhuh said:
There is no status bar in a full screen app, and I typically want to hit menu or back.
Click to expand...
Click to collapse
There is an easy mod to edit a couple keylayout files to replace the vol +/- button functions with "back" and "menu" functions. Further, if you can boot a rooted SDcard containing ADB support (or have Connectbot installed), you can do the mod without even rooting.
I have gotten so used to this mod that it's hard to imagine being without it:
For replacing vol+/- with "back"/"menu" (v1.2) on a rooted NC w/ ADB access:
1. cd /system/usr/keylayout
2. mv qwerty.kl qwerty.kl.org
3. mv twl4030-keypad.kl twl4030-keypad.kl.org
4. exit
5. adb pull /system/usr/keylayout/qwerty.kl.org c:\qwerty.kl
6. adb pull /system/usr/keylayout/twl4030-keypad.kl.org c:\twl4030-keypad.kl
On your PC, edit the two ASCII files just "pulled" to replace functions for keys 114 and 115 with "BACK" and "MENU".
1. adb push c:\qwerty.kl /system/usr/keylayout/qwerty.kl
2. adb push c:\twl4030-keypad.kl /system/usr/keylayout/twl4030-keypad.kl
3. adb shell
4. chmod 644 /system/usr/keylayout/*.kl
5. exit
DeanGibson said:
There is an easy mod to edit a couple keylayout files to replace the vol +/- button functions with "back" and "menu" functions. Further, if you can boot a rooted SDcard containing ADB support (or have Connectbot installed), you can do the mod without even rooting.
I have gotten so used to this mod that it's hard to imagine being without it:
For replacing vol+/- with "back"/"menu" (v1.2) on a rooted NC w/ ADB access:
1. cd /system/usr/keylayout
2. mv qwerty.kl qwerty.kl.org
3. mv twl4030-keypad.kl twl4030-keypad.kl.org
4. exit
5. adb pull /system/usr/keylayout/qwerty.kl.org c:\qwerty.kl
6. adb pull /system/usr/keylayout/twl4030-keypad.kl.org c:\twl4030-keypad.kl
On your PC, edit the two ASCII files just "pulled" to replace functions for keys 114 and 115 with "BACK" and "MENU".
1. adb push c:\qwerty.kl /system/usr/keylayout/qwerty.kl
2. adb push c:\twl4030-keypad.kl /system/usr/keylayout/twl4030-keypad.kl
3. adb shell
4. chmod 644 /system/usr/keylayout/*.kl
5. exit
Click to expand...
Click to collapse
Thanks. I realize I can remap the volume buttons, but I just really liked how you could simply double click the n-button before. I guess something about 1.2 update or the MN changed that behavior from before and I guess there is no known way to get that back. Thanks again for your help.

disable heads up notifications?

I don't like heads up notifications. How can i disable? I don't find that option
if you have root, install terminal, type:
"su" enter, and accept the root permissions, and then:
"adb shell settings put global heads_up_notifications_enabled 0"
and just reboot your device
I followed your instructions but terminal said "sh: adb: not found"
why you don't use the advanced notification settings. I think in Step 1 or Step 0 it should fixed. O.k. you need to do this individually for every app you want - but should work.
VILLAformer said:
I followed your instructions but terminal said "sh: adb: not found"
Click to expand...
Click to collapse
Try this: Download the attached file, remove the .txt extension, copy it to your device, then move it to /magisk/.core/service.d and set it's permissions to 0755 (rwxr-xr-x). Finally, reboot! Give it a couple of minutes after restarting, and heads-up notifications should be disabled. And it'll survive a reboot.
Thanks you very much
I did this and installed the app 'Ticklr'
Finally I have the good old ticker back!
https://play.google.com/store/apps/details?id=com.silverfinger.ticklrfree
I would like to remove it only on phone app. Because when someone is calling me it is only as notification and i want full screen..
shadowstep said:
Try this: Download the attached file, remove the .txt extension, copy it to your device, then move it to /magisk/.core/service.d and set it's permissions to 0755 (rwxr-xr-x). Finally, reboot! Give it a couple of minutes after restarting, and heads-up notifications should be disabled. And it'll survive a reboot.
Click to expand...
Click to collapse
Excuse my lack of experience, how do I download that file? If I click on it I open several texts. Thanks for your help!
You guys are doing this the hard way. Pull down your notification tray, long press on the settings cog until it spins then release. You should have a little wrench next to the cog now. Go into settings and open OnePlus Laboratory. Enable the toggle now wait for a notification and while it is on the screen long press it. Then you will have more options for notifications
Sent from my ONEPLUS A5000 using Tapatalk
atistang said:
You guys are doing this the hard way. Pull down your notification tray, long press on the settings cog until it spins then release. You should have a little wrench next to the cog now. Go into settings and open OnePlus Laboratory. Enable the toggle now wait for a notification and while it is on the screen long press it. Then you will have more options for notifications
Click to expand...
Click to collapse
Yes but you will have to do this for every app. He wanted to permentatly​ remove heads up display for all apps.
lodewiijk said:
Excuse my lack of experience, how do I download that file? If I click on it I open several texts. Thanks for your help!
Click to expand...
Click to collapse
Right click -> Save link as..
Download tiles app from the store ..and set a quick tile for heads up notifications...
shadowstep said:
Try this: Download the attached file, remove the .txt extension, copy it to your device, then move it to /magisk/.core/service.d and set it's permissions to 0755 (rwxr-xr-x). Finally, reboot! Give it a couple of minutes after restarting, and heads-up notifications should be disabled. And it'll survive a reboot.
Click to expand...
Click to collapse
And how can I go back? I deleted the file but the notifications do not come back as before.
luigiicaputo said:
And how can I go back? I deleted the file but the notifications do not come back as before.
Click to expand...
Click to collapse
Did you reboot after deleting the file? If you did and heads-up notifications are still not enabled, do either of the following:
If you're rooted: Download a terminal emulator app and then enter the two commands below, in the order they are listed -
Code:
su
settings put global heads_up_notifications_enabled 1
If you're not rooted: Connect your smartphone to a computer which has a working ADB interface (making sure that USB debugging is turned on in your developer settings). Once done, run the command below to enable heads-up notifications -
Code:
adb shell settings put global heads_up_notifications_enabled 1
Just for info and a brief summary of the possible ways:
https://forum.xda-developers.com/android/general/howto-4-to-disable-heads-notifications-t3197660
edit

launcher ?

Tryex to Change the launcher out for lawn chair...however b i still get that stupid Walmart button ! Must i really root and deblout ? Tryed to disable the stock launcher but no go !
first you need the fastboot driver software: MTK Fastboot Drivers: https://online.mediatek.com/Public Documents/MTK_Android_USB_Driver.zip
more info on how to install driver software here: https://forum.xda-developers.com/wa.../how-rooted-walmart-onn-tablets-twrp-t4011659
then get adb: ADB and Fastboot: https://www.xda-developers.com/what-is-adb/
copied from: https://forum.xda-developers.com/android/development/amazing-temp-root-mediatek-armv8-t3922213
Download the current mtk-su zip file to your PC and unzip it. Inside will be 2 directories: 'arm' & 'arm64' with an 'mtk-su' binary in each. Pick one for your device. Differences between the flavors:
arm64: 64-bit kernel and userspace
arm: 32-bit userspace on a 64-bit or 32-bit kernel (will also work in 64-bit userspace)
Connect your device to ADB and push mtk-su to your /data/local/tmp folder
i just used the arm not arm64 that seemed to do the trick.
Code:
adb push path/to/mtk-su /data/local/tmp/
Open an adb shell
Code:
adb shell
Change to your tmp directory
Code:
cd /data/local/tmp
Add executable permissions to the binary
Code:
chmod 755 mtk-su
At this point keep your device screen on and don't let it go to sleep. Run the command
Code:
./mtk-su
keep this terminal/command prompt session open then go to...
download this batch file this user made in this post: https://forum.xda-developers.com/wa...s-general/root-walmart-bloat-remover-t4011639
open it inside making sure it is in your adb folder.
it will remove the sams club, walmart app etc.
mine did not remove the walmart button BUT a user posted on how to do so in the comments this is how you do so.
cd into your directory for adb to do so just open cmd/terminal window type this without quotes "cd filepath" replace filepath with where your adb folder is i usually just drag my folder into my terminal/cmd window and it should just put the proper directory into the window.
now type
adb shell
settings put secure sysui_nav_bar "space,back;home;recent,space"
if that does not work also try going into that window you have open with mtk-su and run
settings put secure sysui_nav_bar "space,back;home;recent,space"
sorry if this post is not descriptive enough first post so go easy on me dont hate me too much just trying to help if you have any questions about this that are confusing please ask ill try to fix them trying to help another user of this tablet as i think that the bloatware on these android tablets is ridiculous and makes the experience terrible so id like to help in anyway possible. Thank you.
Slys13 said:
Tryex to Change the launcher out for lawn chair...however b i still get that stupid Walmart button ! Must i really root and deblout ? Tryed to disable the stock launcher but no go !
Click to expand...
Click to collapse
You can use Custom Navigation Bar without root to remove the Walmart button, but I recommend root so you could use QuickSwitch, and some root tweaks with Lawnchair.
Pix12 said:
You can use Custom Navigation Bar without root to remove the Walmart button, but I recommend root so you could use QuickSwitch, and some root tweaks with Lawnchair.
Click to expand...
Click to collapse
I installed that custom navigation app .apk from a third party website because playstore said app was not compatible with device still right away it asks for root, xposed, or to conect to computer to grant permission when I did use the comand prompt and input the command it said device was not compatible. Cool idea though
Sent from my 100015685-E using Tapatalk

how to enable Android 10 gesture navigation on third-party launchers

1. set Nova launcher or any third-party launchers to default
2. run below adb command
Code:
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
Thanks mate.
Could you put the command to exchange back and recents buttons in nav bar?
It's doesn't work when going to recents tab. I can't go to it.
****oonn said:
1. set Nova launcher or any third-party launchers to default
2. run below adb command
Code:
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
Click to expand...
Click to collapse
Thanks mate
doesn't work on ma Xiaomi with Android 11 nd MIUI 12.0.1.0

Categories

Resources