[Tasker Tips & Tricks] Follow_and_Feel:
[UPDATED]

Hello guys,

A little introduction:

I'm an XDA user for quite a while now, but never started an own thread. As I like playing with mods like Xposed, magisk or, in this case Tasker, I'd like to share my profile with those who find it handy too. :) Also I think there're way more advanced tasker guides and tricks and this is rather easy, but I'd love to share it anyways with you :)

What does this profile do?

It's pretty simple and basic. This profile lets you magically wake your phone with holding your hand (for example) close to the approximity sensor, but also (only on S8/S8+) trigger the Iris scanner, which would usually need to be tapped on, since Samsung doesn't allow 3rd-party apps to wake the phone! But we'll get this anyways :) But here's a video. You will see what I mean:

Click here for YT video (XDA embedding doesn't seem to work here)

Requirements:

Magisk (root) (*note: If you have rooted your phone with another method Secure Settings won't work, due to lack of development)

Secure Settings (*note: If you know another tasker plug-in, which can wake the device feel free to take that)

Tasker of course

Within Tasker you need to set proximity sensor (Under UI) to "yes". This ensures, that the sensor won't be killed from doze or anything else

And of course you need a working Secure Settings App. Make sure System+ module is active and granted root (Works very well with Magisk). Because it's enabled by default, it might be necessary to disable and re-enable it :)

If you meet all the requirements: Let's start

So step 1 : Create a new profile in Tasker with 3 status:

Sensor -> Proximity sensor

Display [Turned off]

Variable -> Variable value = %ONLYONCE to Undone (This is important, so the screen will be woken up only once after you turned off your device and not every time you put your hands to the sensor)

Name the executed task "Wake device" for example and let it run: (Go on in step 2)

Step 2: The executing task of the profile you just created should run this:

Task -> Wait = 350ms (adjustable to your needs)

Plug-In -> Secure Settings -> Configuration -> Wake device = Screen dim 15 seconds (adjustable)

Variable -> Set variable -> %ONLYONCE to Done

Code -> Run shell -> Command = "input tap 840 190" (No quotation marks) [Use root = yes] (*note: this creates a tap input, as if you were tapping on that specific spot, and triggers the Iris scanner. Also make sure that tasker has root privileges)

Step 3: Create a 2nd profile with the event Display -> Device unlocked

The executed task to this profile should be:

Task -> Wait = 3 seconds

Variable -> Set Variable -> %ONLYONCE to Undone

And that's about it :) Any time you wave your hand over the proximity sensor now or let's say pull it out of your pocket the screen goes on, the Iris scanner is triggered and your phone unlocks :)

Please hit the thanks button if you could find any benefit of this Guide and the profile and please feel free to leave some feedback :) You can also import the profile to your tasker. I attached it at the bottom :)

*Note: All iris scanner related tasks and profiles can be adjusted to devices without Iris scanners, but this profile isn't that handy on other devices apparently