[YotaPhone 3 ROMs, Kernels, Recoveries, & Other Dev] MegaStark:
Hello guys,

I made screen mirroring to launch with volume key combination with the help of tasker.

Just press volume minus and then volume plus button within one second. Screen will be mirrored to back display.

All you need is two apps:

1. Tasker (doing all the work)

(*ttps://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm)

2. Autoinput (plugin for tasker app)

(*ttps://play.google.com/store/apps/details?id=com.joaomgcd.autoinput)

*Install both app and give them accessibility permission (phone setting - advance setting - accessibility).

*Allow both app to auto start in background (Phone manger app - permission - auto start managment).

*Allow both app to run in background ( Phone manager app - battery - smart background managment).

*open tasker and check box in preference - misc- ALLOW EXTERNAL ACCESS.

* Now in tasker app main page, long touch PROFILE and select import and go to downloaded location, import both profiles.

*Now in tasker app main page, long touch SCENE and select import and go to download location, import scene.

Now you are ready to use, just press volume minus button and then volume plus button within one second (800ms) to launch screen mirroring.

Screen mirroring takes around 2-4 second to complete.

Problems:

*most of the times its doesn't work in one go after unlocking screen.

*some time mirroring doesn't complete and stuck with image on screen.

Don't worry just try one more, or else within 12-15 seconds stuck image will be removed from screen and you will be able to see screen.

*screen mirroring not launching.

Check if accessibility service for both app is on!

Sometimes Tasker or Autoinput app gets killed in background thus resetting their accessibility.

Warning

*you won't be able to launch form lock screen.

*don't press this key combination while you are using back screen(epd) otherwise both screen will be on and only front screen touch will work.

My suggestions:

*for fast mirroring change the animation scale from 1.0x to 0.5x for all three (can be found in developer options)

*I have to disable all there navigation keys till process completes because while flipping phone physically i always mistakenly touch back button and this disturbing the screen mirroring process, but if process is unable to complete, navigation keys are left deactivated (even after phone restart:eek:), fortunately i have habit of pie controls for navigation.

* if switching directly form an app, on epd screen you will be on home screen rather than on the same app you are using.

For this i added steps 9,10,11,12 in "Task 2 for profile 2" which are disabled, because those steps more instability. If you want that functionality also, simply enable those steps by long touching them.

* if 800ms time is not suitable for you, you can change time in "Task 1 for profile 1" step 2.

Download:

*ttps://drive.google.com/file/d/1jUAOfvc0I7Ek6YWggr99GCFEQ2GUOQ1k/view?usp=drivesdk

Edit 1-----------------------------------------------

Exported apk of task 2 of profile 2 and little modified.

*****First You have to install "Autoinput" paid version for working of this app.*****

Download:

*ttps://drive.google.com/file/d/1FYBO2yYncTijycSg7pwngIpgfRz7ZmXv/view?usp=drivesdk

*allow accessibility to Autoinput and contact permission to "Mirror Screen" app.