Swipe Down Navbar - P8lite General

Hi huys,
First of all it's my first post here. I have some questions:
I wanted to make the click to hide and swipe up to show system that huawei puts into some devices work on my Huawei P8 Lite 2017 (Pra-LX1) but I can only make the little arrow working using the Settings Database Editor and adding hide_virtual_key and changing the value to 1 therefore making it apear. Unfortunately, once I click the arrow I need to delete this setting because I can't make the navbar swipe up again.
Notice that I don't have root but I am considering rooting my device it that makes this work. I really wanted to make it work
Can anyone help me? I can use ADB and all of those things. i'm kinda of noob but I can manage myself. I just didn't want to change the stock rom because of the warranty...
My build is PRA-LX1C33B137
P.S: I'll leave a image of what I want to enable so you guys can see: g.oo.gl/cmVYHJ
Thank you all for your attention

https://play.google.com/store/apps/details?id=com.teammt.gmanrainy.emuitweaker
You can try this app that I found. I don't know if it works with your device because I'm using the old P8 lite.

OPTION 1 - Do not need root on the device (ADB command line)
To enable "NavBar Arrow":
Code:
adb shell settings put system hide_virtual_key 1
To disable "NavBar Arrow":
Code:
adb shell settings put system hide_virtual_key 0
OPTION 2 - Need root on the device (Edit build.prop)
Enable option on settings to show or hide "NavBar Arrow":
Code:
ro.config.showNavigationBar=true

brunolee said:
OPTION 1 - Do not need root on the device (ADB command line)
To enable "NavBar Arrow":
Code:
adb shell settings put system hide_virtual_key 1
To disable "NavBar Arrow":
Code:
adb shell settings put system hide_virtual_key 0
OPTION 2 - Need root on the device (Edit build.prop)
Enable option on settings to show or hide "NavBar Arrow":
Code:
ro.config.showNavigationBar=true
Click to expand...
Click to collapse
Thanks for ur help, the problem is after I click the arrow I can't swipe up the navbar

Related

[Root] Doze Settings Editor (Android Marshmallow Only)

Just to inform you all with Marshmallow there is an app to edit the default doze settings and get better battery life
Thanks to @p0isonra1n
p0isonra1n said:
[Root] Doze Settings Editor (Android Marshmallow Only)
Requires Root
This app is a simple editor of the settings or parameters which affect the operation of Doze.
If no root is available then it will offer an ADB command that will modify the doze settings.
Because there is no root on open it will always load the default settings.
Click to expand...
Click to collapse
I had problem activating Doze new settings via app so I had to use the adb (even though my device is rooted)
here is how :
1- enable usb debugging from settings> developer options
2- There are plenty guides on how to install and run adb, you can google it or use this or this or ...
3- connect your device
4 - in terminal run
Code:
adb start-server
adb shell dumpsys deviceidle
if the values shown are same as default , then you have my problem, go to step 5. if values are what you set in the app profiles ... then you dont need to proceed
5- revoke "Doze Settings" su permissions from super su app
6- run the app , su permission will be denied and it give u a command to copy, copy it to a text file and send the file to your pc
7- open the file in your pc and copy the text
8- paste the copied line in the adb terminal and hit enter
reboot device and run the "adb shell dumpsys deviceidle" from terminal again, it should show new values.
It helps! Thanks!

Navigation keys reorder

Any idea how to reorder navigation keys?
Im used to back key on the right and recent apps on the left side.
Kryptonyx said:
Any idea how to reorder navigation keys?
Im used to back key on the right and recent apps on the left side.
Click to expand...
Click to collapse
try using Custom Navigation Bar app
https://forum.xda-developers.com/android/apps-games/app-custom-navigation-bar-customize-t3590967
You can change it using ADB:
Code:
adb shell
settings put secure sysui_nav_bar "space,recent;home;back,space"
To get current order in case of future restore to stock you can use this command:
Code:
adb shell
settings get secure sysui_nav_bar
AlexX333BY said:
You can change it using ADB:
Code:
adb shell
settings put secure sysui_nav_bar "space,recent;home;back,space"
To get current order in case of future restore to stock you can use this command:
Code:
adb shell
settings get secure sysui_nav_bar
Click to expand...
Click to collapse
This really helped.
Thanks a lot!
Bro i'am trying to back to the original order, but i can't .. even i use adb shell .. but still didn't work (sorry for bad English)
AlexX333BY said:
You can change it using ADB:
Code:
adb shell
settings put secure sysui_nav_bar "space,recent;home;back,space"
To get current order in case of future restore to stock you can use this command:
Code:
adb shell
settings get secure sysui_nav_bar
Click to expand...
Click to collapse
Thank you, It works !!

[Guide] Change Navigation Buttons order (Not Tested)

Hello , for changing the navigation buttons order
try this trick- not tested it myself may be some one can try and provide feedback
This is a converted or translated info so there might be some error could be occurs during the process so use it with your own risk
To change the order of the buttons found the following hack:
adb shell
settings put secure sysui_nav_bar "space, recent; home; back, space"
this is another trick that will hide notification , not tested ,
adb shell
settings put global heads_up_notifications_enabled 0
Who has the root and terminal emulator, the command format is:
su
settings put global heads_up_notifications_enabled 0
hi, tried this you need to remove the space inside the quote (not the word space)
settings put secure sysui_nav_bar "space,recent;home;back,space"

Enable Android 10 Gestures on Android 10 Beta on Max M1

So, recently Asus rolled out an official Android 10 Beta for our Zenfone Max M1. But, as we installed the Beta 10 on our devices, we noticed that Android 10 Gestures; the only highlight of Android 10, was absent on it. So, I searched up Google and got a working method for the same. Thanks to 9to5Google for this article https://9to5google.com/2019/05/08/how-to-enable-and-use-android-q-fully-gestural-navigation/.
Requirements:
1. Android 10 Beta on Max M1.
2. A PC with Proper ADB and Phone Drivers.
How to enable Android 10 Gestures on Android 10 BETA:
1. Open Settings, go to About Phone and continuously tap for around 6-8 times for enabling Developer Options.
2. Then go to Developer Options and enable USB Debugging.
3. Then connect Phone to PC using USB Cable and open Command Prompt on PC.
4. Now run this command and allow the popup on Phone.
Code:
adb devices
5. Now for enabling Android 10 Gestures, run the following command:
Code:
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
6. Android 10 Gestures will be now enabled.
In a similar way, you can enable two-button navigation too.
Do note that, in order to change to any other Navigation method, you need to disable the existing Navigation and then enable the your desired navigation using commands. Your Navigation method won't change UNTIL YOU DISABLE EXISTING NAVIGATION METHOD (Don't disable 3-button Navigation).
Commands to enable:
Gesture based navigation:
Code:
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
Two-Button Navigation:
Code:
adb shell cmd overlay enable com.android.internal.systemui.navbar.twobutton
3-Button Navigation:
Code:
adb shell cmd overlay enable com.android.internal.systemui.navbar.threebutton
Commands to disable:
Gesture Based navigation:
Code:
adb shell cmd overlay disable com.android.internal.systemui.navbar.gestural
Two-Button Navigation:
Code:
adb shell cmd overlay disable com.android.internal.systemui.navbar.twobutton
3-Button Navigation (HIGHLY NOT RECOMMENDED):
Code:
adb shell cmd overlay disable com.android.internal.systemui.navbar.threebutton
The navigation method you enable will also work after you reboot. If you resetted your device, you have to follow this guide again to enable gestures. I am trying to find any method for Rooted users, kindly don't spam below. If you have any doubts, drop them below or ask me in our official Telegram Group.
If it worked for you, please hit the thanks button ?.
Pro asfk
Just installed android 10 beta on my asus max m1. Everything is working fine except when i plug in earphones sound quality is very bad .
Does anyone have fix for it?

How to rescue data from my 9T Pro

So while walking it slipped out from my hand and hit the lower left corner.. The screen didnt even work anymore (after removing the glas, it was clear why, as the connector is lower left corner).
Good thing is, I have adb debugging enabled and my keys are known.. So I can access adb shell and various commands..
My problem is: It rebooted and now, the important stuff is NOT mounted.. Also via scrcpy or MonkeyRemote, I cannot send any touch event... Its not reacting at all.. Honestly, I dont know what it is doing, but its quite busy writing for ever logs in logcat, that the sensors have errors (which is no wonder).
So I tried various "adb shell input XXX", but its not working at all..
Tried to connect a mouse via normal usb-c hub, but I dont know if I would need an OTG cable or if it would even work.
DrFone and some other software, already wants the money, before unlocking anything.. And I would be Ok, if it would be 5-10€.. But buying the whole thing for 1 test, is a big no.
So my status:
adb shell working.
scrcpy at least showing a screen
phone is not reacting on anything else, besides the lockscreen to wake it up.. volume keys are also kinda ignored.
I tried the adb shell input stuff from stackoverflow, but nope.
Can I boot in any recovery thing and mount sdcard there? Does scrcpy work there?
What he heck is my phone even doing?? If I connect another phone in lockscreen and use scrcpy, I can also wake it up normaly.. So probably not only the screen got dmg while flying :/
Most annoying things: It has alarms going off all the time, as I can only snooze them -.-
Is there no command, to unlock it from adb/terminal? I know the damn pin
When I run top, the top most things are sufaceflinger and logd (between 2-15). So its not like sth is always at 100% cpu load..
So little status update:
all adb shell input XXX are simple not working, as Xiaomi needs another setting for that.. Which I cannot activate, without screen.
I will try a manual keyboard at home..
Is there a way, to root it with adb only? Would help me alot..
MIUI security center requires you bonded MI account to enable adb input commands in developer options. scrcpy has OTG mode and can emulate HID device.
scrcpy also didnt work, without that stupid setting set to be true/1.
Tested with my old Mi6. When I enabled the option in dev-settings, it worked fine.
But I was able to unlock it with a keyboard plugged in (+ mouse). Looks like the CPU also has some issues, as everything is slow-motion..
So I just tried, what do I need to press on the Mi6 -> then did it on the Mi9.
"hitting space -> pin -> enter", "hitting space -> pin -> enter".
But was able to rescue all my data + turn off the alarms.
PS.: I then tried to enable this setting, for inputs, but you need to have a SIM cart inserted, to activate it
PPS.: Oh.. Now I got you.. I have to enable this option in scrcpy.. OMG Will test that now
PPPS.: Yeah, with that otg mode, the keyboard and mouse would have also worked.. Well, for the next time I know it
alecxs said:
MIUI security center requires you bonded MI account to enable adb input commands in developer options. scrcpy has OTG mode and can emulate HID device.
Click to expand...
Click to collapse
Ok, thanks - that was missing
If you figure out the command line to enable it from adb settings put global I am very grateful
alecxs said:
If you figure out the command line to enable it from adb settings put global I am very grateful
Click to expand...
Click to collapse
Ok, so I dumped all settings and props to files:
Code:
adb shell settings list global > global.txt
adb shell settings list secure > secure.txt
adb shell settings list system > system.txt
adb shell getprop > props.txt
then searched for adb, usb and similar butfound only the following:
SETTINGS GLOBAL:
adb_enabled=1
adb_wifi_enabled=0
verifier_verify_adb_installs=1
GETPROP:
persist.security.adbinput=1
persist.security.adbinstall=1
(My phone: Mi 11 Lite 5G NE, MIUI 13)
That is, eg ADB can be enabled/disabled as settings global adb_enabled
However, ADB Input is not in settings but as persistent prop persist.security.adbinput and it can be only manipulated by Magisk - and by TWRP but on the old devices where System is not read-only
IMO, it would be theoretically possible on the Mi 9T Pro, but not if display is broken where TWRP cannot be used (I doubt there is anything like scrpy that works for TWRP)
zgfg said:
Ok, so I dumped all settings and props to files:
Code:
adb shell settings list global > global.txt
adb shell settings list secure > secure.txt
adb shell settings list system > system.txt
adb shell getprop > props.txt
then searched for adb, usb and similar butfound only the following:
SETTINGS GLOBAL:
adb_enabled=1
adb_wifi_enabled=0
verifier_verify_adb_installs=1
GETPROP:
persist.security.adbinput=1
persist.security.adbinstall=1
(My phone: Mi 11 Lite 5G NE, MIUI 13)
That is, eg ADB can be enabled/disabled as settings global adb_enabled
However, ADB Input is not in settings but as persistent prop persist.security.adbinput and it can be only manipulated by Magisk - and by TWRP but on the old devices where System is not read-only
IMO, it would be theoretically possible on the Mi 9T Pro, but not if display is broken where TWRP cannot be used (I doubt there is anything like scrpy that works for TWRP)
Click to expand...
Click to collapse
Btw (sorry, OT for the originally reported problem), Netflix cannot be fooled (DRM) to display over scrcpy, only subtitles are displayed on the PC
YT works fine (although without sound - I will try with sndcpy), and strcpy properly recognizes landscape orientation, hence window on the PC can be stretched over the whole monitor
Edit: On the other PC I tried, audio works fine with scrcpy
zgfg said:
However, ADB Input is not in settings but as persistent prop persist.security.adbinput and it can be only manipulated by Magisk - and by TWRP but on the old devices where System is not read-only
Click to expand...
Click to collapse
Nice! I was curious because I don't have Mi account. Although I didn't have this property, just set it from resetprop anyway and it worked!
We can set it from magisk patched boot.img ramdisk/overlay.d/custom.rc systemless. or just add it in init.rc directly.
Code:
on boot
setprop persist.security.adbinput 1

Categories

Resources