How to enable/disable ''one button nav'' via shell command? - Moto Z2 Play Questions & Answers

I use an app that blocks the touchscreen when the screen is on. When this app is launched, I would like to automatically block the fingerprint sensor too. I would do it with Tasker, but I need a shell command (or any other working way) to disable the fingerprint sensor or the ''one button nav'' in moto actions.

Related

Options to turn screen off without hardware button that allows you to re-open?

I've tried various screen off apps and they all require secondary security to turn back on when using the fingerprint scanner. Any ideas?
Would love for an option where the fingerprint scanner can also turn the screen off or even an OK Google command, but then allows the fingerprint scanner to reopen without secondary security.
+1
Sent from my Nexus 5X using Tapatalk
hmmm, you can try to use command 'input keyevent 26' , for tasker task...
this will required root though.
Jackpot! A widget pointing to a tasker task that uses secure settings to run command 'input keyevent 26' as root works like a charm!
Sent from my Nexus 5X using Tapatalk
minnemike said:
I've tried various screen off apps and they all require secondary security to turn back on when using the fingerprint scanner. Any ideas?
Would love for an option where the fingerprint scanner can also turn the screen off or even an OK Google command, but then allows the fingerprint scanner to reopen without secondary security.
Click to expand...
Click to collapse
I was just going to post a similar question. I don't have the phone yet, but i thought maybe someone can create something that allows the fingerprint scanner to turn off the screen. The finger is already in that area so it would be cool to either hold fingerprint scanner for a second to turn screen off or double tap the scanner.
jpen said:
I was just going to post a similar question. I don't have the phone yet, but i thought maybe someone can create something that allows the fingerprint scanner to turn off the screen. The finger is already in that area so it would be cool to either hold fingerprint scanner for a second to turn screen off or double tap the scanner.
Click to expand...
Click to collapse
Any solutions yet?
scottfreeze said:
Jackpot! A widget pointing to a tasker task that uses secure settings to run command 'input keyevent 26' as root works like a charm!
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
Thanks for this! Added it as a Tasker shortcut for double-tap gesture in Nova and it works like a charm.
Great tip. Got tasker set to Nova pinch out to turn off. But also have option to run task from Notification menu as well.
For those who have never used tasker before like me here is a quick note on how to set it up:
Select TASKS tab at top, select + button at bottom, give it a name (screen off) and press check mark.
You will then enter Task Edit. Press + to add an action, then select Code as your action category, then choose Run Shell.
Paste in the text: 'input keyevent 26' under the Command field. Check the Use Root option. Back out once and choose an icon for it if you want at the right lower corner. You can now place a widget for the task or launch the task with Nova etc. And/or go into Preferences and under the Monitor tab you can add it to the Notification Action Buttons.
solara1973 said:
Great tip. Got tasker set to Nova pinch out to turn off. But also have option to run task from Notification menu as well.
For those who have never used tasker before like me here is a quick note on how to set it up:
Select TASKS tab at top, select + button at bottom, give it a name (screen off) and press check mark.
You will then enter Task Edit. Press + to add an action, then select Code as your action category, then choose Run Shell.
Paste in the text: 'input keyevent 26' under the Command field. Check the Use Root option. Back out once and choose an icon for it if you want at the right lower corner. You can now place a widget for the task or launch the task with Nova etc. And/or go into Preferences and under the Monitor tab you can add it to the Notification Action Buttons.
Click to expand...
Click to collapse
Thanks for this detailed description. I've never used Tasker before either, so I'll give it a try. It's a shame such a step is required.
How was it determined that "input keyevent 26" would solve the problem? Will doing this interfere with OTA updates, since it may change a system setting?
Can I use Soft Lock Screen to turn the screen off?
Pumpino said:
Thanks for this detailed description. I've never used Tasker before either, so I'll give it a try. It's a shame such a step is required.
How was it determined that "input keyevent 26" would solve the problem? Will doing this interfere with OTA updates, since it may change a system setting?
Can I use Soft Lock Screen to turn the screen off?
Click to expand...
Click to collapse
There's a known list of Android commands that software can use to simulate some hardware presses, etc.: http://thecodeartist.blogspot.com/2011/03/simulating-keyevents-on-android-device.html
Tasker or using the keyevent 26 will not interfere with the system in any way. By sending the keyevent 26 you are doing exactly what pressing the Power button does - only with software. It does nothing to change any system settings. Not sure about the Soft Lock Screen app, but I suspect that like other software, if you use that, you will prob need to re-enter your password/pattern/pin and the fingerprint won't work. By sending the keyevent 26, you can still unlock it using the fingerprint sensor.
solara1973 said:
Great tip. Got tasker set to Nova pinch out to turn off. But also have option to run task from Notification menu as well.
For those who have never used tasker before like me here is a quick note on how to set it up:
Select TASKS tab at top, select + button at bottom, give it a name (screen off) and press check mark.
You will then enter Task Edit. Press + to add an action, then select Code as your action category, then choose Run Shell.
Paste in the text: 'input keyevent 26' under the Command field. Check the Use Root option. Back out once and choose an icon for it if you want at the right lower corner. You can now place a widget for the task or launch the task with Nova etc. And/or go into Preferences and under the Monitor tab you can add it to the Notification Action Buttons.
Click to expand...
Click to collapse
Thank you for explaining it. Does this require a root? And does it require Nova Launch?
minnemike said:
Thank you for explaining it. Does this require a root? And does it require Nova Launch?
Click to expand...
Click to collapse
It does require root to be able to let Tasker run a shell command. You would not need Nova launcher as you can easily put a widget to launch the Task within Google Now Launcher or any other launcher. Nova launcher is nice because it enables gestures and double tap to do certain actions. I have Nova to launch my phone app when I tap the Home button on the main home screen. Double tap runs my Task to turn off the phone. Pinch in, pinch out, two finger swipe down/up, etc.
Could you have something trigger Tasker to temporarily change the screen timeout to 1 second (and then change it back after the screen is off)?
solara1973 said:
It does require root to be able to let Tasker run a shell command
Click to expand...
Click to collapse
I guess I won't be using this technique then, as I don't want to root at this stage.
Is it possible to get Nova to turn the screen off by something like double-tapping on the status bar (without root and Tasker)?
Pumpino said:
I guess I won't be using this technique then, as I don't want to root at this stage.
Is it possible to get Nova to turn the screen off by something like double-tapping on the status bar (without root and Tasker)?
Click to expand...
Click to collapse
Nova launcher does not have a function to send keyevents or turn off the screen etc.
You can always try some of the Screen Off apps on the playstore and see if anyone of those allow you to unlock the phone again using Imprint. Swipe-Lock, Screen Off and Lock, Screen Lock, etc.
this one works (experimental) https://play.google.com/store/apps/details?id=com.iglint.android.screenlockpro&hl=en
it is paid one

Get theatre mode shortcut back

Is there anyway to get the theatre mode double press shortcut back? Having to pulldown and tap a small menu button is really bothering me.
Also tripple press for brightnes boost not working.
A must have on a sunny day.
Skickat från min SM-G950F via Tapatalk
I really miss the single tap waking the screen and putting it back into ambient mode. It allowed for turning my screen on and off without causing finger prints or possibility of undetected touch due to dry fingers. Palming the screen to turn off/enable ambient mode, used to intermittently result in onscreen actions being pressed like starting my stopwatch, or even worse stopping my stopwatch after I had just started it. I must have used single press of the button 100x per day. Now I have to actually wait for my screen to turn itself off. This alone has to half the battery life on the watch.
Double tap button for cinema mode was also a nice feature but I only do it once per day at night to save power so enabling through the swipe down menu isn't a big deal for me.
Worse is the three tap to turn on max brightness temporary. Today outdoor i Couldn't see my watch screen. Not seeing it also makes it impossible to enter brightness menu to increase brightness. I start to get more and more annoyed by 2.0 ?
Skickat från min SM-G950F via Tapatalk
I haven't tried it yet, but I saw this app, Wear Button Remapper, recommended on Reddit.
It says it can remap your button long press to any app, or to theater mode if your watch is rooted.
There are a ton of things that are frustrating, but I have figured out a way to cope with most of it.
For Do Not Disturb Sync, there is an app that restores this functionality.
https://play.google.com/store/apps/details?id=rkr.weardndsync
For theater mode, I setup a tasker task using autowear to run an app that allows toggling theater mode.
https://www.reddit.com/r/AndroidWear/comments/64qitr/toggle_theater_mode_on_wear_20/
I'm guessing that wear button remapper would allow us to enable theater mode without root using this app.
It's great that devs have developed apps to remap long press. Hopefully it won't be long before they can map double and triple tap to let us use the 1.5 theater and max brightness modes again.
irule311 said:
There are a ton of things that are frustrating, but I have figured out a way to cope with most of it.
For Do Not Disturb Sync, there is an app that restores this functionality.
https://play.google.com/store/apps/details?id=rkr.weardndsync
For theater mode, I setup a tasker task using autowear to run an app that allows toggling theater mode.
https://www.reddit.com/r/AndroidWear/comments/64qitr/toggle_theater_mode_on_wear_20/
I'm guessing that wear button remapper would allow us to enable theater mode without root using this app.
Click to expand...
Click to collapse
Whoa!! You DO Rule!
This is soooo frickin' awesome, I am just thrilled. I finally got one of the automatons I missed on AW 1.5 with Wear Shell. It took me a couple tries to get the task set. I use Sleep as Android and it supports Tasker but it would not trigger this app adding it to my existing profile, but just setting Toggle Theater Mode to run when Sleep runs did the trick!
Pkt_Lnt said:
Whoa!! You DO Rule!
This is soooo frickin' awesome, I am just thrilled. I finally got one of the automatons I missed on AW 1.5 with Wear Shell. It took me a couple tries to get the task set. I use Sleep as Android and it supports Tasker but it would not trigger this app adding it to my existing profile, but just setting Toggle Theater Mode to run when Sleep runs did the trick!
Click to expand...
Click to collapse
Yeah, there does seem to be some sort of glitch with the tasker autowear integration. I'm not sure what it is, but it seems to run the same autowear task even if you reconfigure it in tasker. The fix seems to delete the task and create a new one with a different name.
I use minimal and elegant as my watch face and was able to use the interactive functions to run the tasker task. I now have a button on the watch face that allows quick access to sleep tracking that enables do not disturb and theater mode.
You have to use SleepWear for the app name instead of start sleep tracking which makes it a little more difficult. Any ideas on how to find the app package name on wear?
irule311 said:
Yeah, there does seem to be some sort of glitch with the tasker autowear integration. I'm not sure what it is, but it seems to run the same autowear task even if you reconfigure it in tasker. The fix seems to delete the task and create a new one with a different name.
I use minimal and elegant as my watch face and was able to use the interactive functions to run the tasker task. I now have a button on the watch face that allows quick access to sleep tracking that enables do not disturb and theater mode.
You have to use SleepWear for the app name instead of start sleep tracking which makes it a little more difficult. Any ideas on how to find the app package name on wear?
Click to expand...
Click to collapse
I just made a second task that triggers on the Sleep app starting, so I have two tasks - one runs on the Sleep Start intent and the other to trigger your app via Auto Wear. It works great. If I do open the Sleep app during the day then I do get theater mode, but I'm fine with that to get the night time auto start. :good:
In an adb shell:
Code:
pm list packages -f
I can even pipe it through grep or more on my linux box which is good.
edit -
Code:
[email protected]:~$ adb shell
sturgeon:/ $ pm list packages -f | grep urbandroid
package:/data/app/com.urbandroid.sleep-2/base.apk=com.urbandroid.sleep

How to disable fingerprint vibrate?

I know that do not exist this option in the current rom yet. But has an thirty app that can do this?
I just noticed that when the battery saver is on, the vibration of the fingerprint reader is off. I actually think it turns of vibration all together in battery saver mode.
However, I don't know of an app that takes care of this.
https://forum.xda-developers.com/showthread.php?t=1103628
Disable fingerprint vibration without root (Guide)
Get adb package
open cmd
type
adb devices
if it reply with device serial number you are ready for next step.
adb shell cmd appops set android VIBRATE ignore
done.

Immersive Mode Auto Hide Delay

Is there a way to adjust the delay in auto hide of the navigation and notification areas?
Additionally to anyone using immersive mode. Does it sometimes prevent the phone from waking for a moment? I push the power button or fingerprint sensor and the screen doesn't wake. Double clicking power will open the camera though
blcklab said:
Additionally to anyone using immersive mode. Does it sometimes prevent the phone from waking for a moment? I push the power button or fingerprint sensor and the screen doesn't wake. Double clicking power will open the camera though
Click to expand...
Click to collapse
Works great for me. I downloaded Nougat / Oreo Quick Settings from the play store and followed the instructions to make it a quick setting toggle. And then ran this command https://forum.xda-developers.com/showpost.php?p=73629247&postcount=2 which said fixed lag...
Thanks. Will test that on my pixel. I assume it'll respond the same as 2 xl

Finger print sensor not working

I can't use the fingerprint option is security settings and i also tried to check it via a 3rd party app which said that it didn't dind any sensor on device.
Ps: I've tried restart.

Categories

Resources