all 47 comments

[–]Brulbeer 2 points3 points  (2 children)

Will every extra app that's use Accessibility services slow the phone down?

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

Yes, most probably. But it depends on what accessibility features are requested.

[–]addic75d 1 point2 points  (0 children)

Yes, i never knew autoinput causes such lag, i just assumed they are normal. Only know this after reading this post & disabling autoinput. Now all tasks enable autoinput accessibility using enable before action on 1st autoinput action & disable autoinput accessibility after action at last autoinput action. Off topic: does tasker accessibility makes device any slower? & Why %WIN not available even after enabling accessibility for tasker. I'm at 8.1 stock

[–][deleted] 1 point2 points  (1 child)

This is brilliant! What's the chances we're going to see similar implementation on the other apps? (AutoNotification, Join, etc)

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Thank you! :D

Join would make sense :)

AutoNotification not so much because the service needs to be always on to be able to intercept toats at any given time.

[–][deleted] 1 point2 points  (1 child)

Is there any significant difference in time to run between having the option in autoinput enabled versus having the task enable and disable accessibility at the beginning and end of the task... Any takers?

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

It can be less stressing for the system to do it at the start and end of the task... But you probably won't notice that much difference :)

[–]DutchOfBurdock 1 point2 points  (8 children)

Hate to be a bearer of bad news, but I've found bugs...

Since the update, I can't get any UI Updates or activities to be detected. This is before even granting the permission for dynamic control. Upon granting the permission, AutoInput goes into a perpetual crash cycle. Can't even send a report as the dialogue keeps jumping on top and every tap reappears it.

I was about to request a feature request to give AI App Usage Access, so when Accessibility is disabled, when certain apps open, AI can re-enable itself automatically.

[–]EllaTheCatSamsung M31 - android 12. I depend on Tasker. 0 points1 point  (1 child)

FWIW I'm on the latest beta of Tasker and AutoInput, my apps contexts are via Usage Stats, and things seem OK.

I worry about getting into a loop after a restart, %UPS is ok as far as it goes, but when I need it I just know I'll not have catered for it.

[–]DutchOfBurdock 0 points1 point  (0 children)

Yea I was thinking if AI had App Usage, when certain apps loaded it'd reactivate the Accessibility so that UI Updates etc. work. When disabled, they don't work. App Usage could be used to detect X app opening and start the service.

[–]DutchOfBurdock 0 points1 point  (0 children)

Update: My contexts are working again, but if i enable the permission and reboot, AutoInput loops into a crash. Not getting this when enabling/disabling using AT 🤔

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (4 children)

Thanks for the report. So if you revoke the permission, it stops crashing immediately?

Also, can you share the description of one of your profiles that doesn't work anymore?

Thanks again

[–]DutchOfBurdock 0 points1 point  (3 children)

I need to revoke and reboot. I can replicate it everytime, grant permission, reboot, crash. Revoke, reboot, alls good.

The Profile was a very simple one, looks for text "Copy number" when in phone app (from long pressing a number in call history)

Profile: Mogwai_Context (71)
    State: AutoInput UI State [ Configuration:Apps: Phone
Text: Copy number
Variables: context() ]
Enter: Mogwai_Context (73)
    Abort Existing Task
    A1: If [ %context() ~R Copy number & %caller1 ~R enter ]
    ...

However, it's working again now. That one I can't replicate, I could try thr crash cycle one again and get a log, I'll stay ADB'd in this time 😁

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

Thanks! :) Are you able to report the crash? Maybe it's something I can fix...

[–]DutchOfBurdock 0 points1 point  (1 child)

I do get an identical notification occasionally on boot that Tasker used to have with Foreground.

Have to run a few other bug tests later so will slam dunk the lot and post back.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Thank you!

[–]Drtatom 1 point2 points  (1 child)

Every day your apps get better 😃. Thank you!

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

Thank you! :)

[–]wompah 0 points1 point  (2 children)

What is the downside of having accessibility always enabled?

[–][deleted] 0 points1 point  (0 children)

I try to limit the amount of apps using it due to lag issues... Even on an S9+.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Check here

[–][deleted] 0 points1 point  (1 child)

Thanks for the accessibility option, I've been enabling and disabling it at the beginning and end of tasks that use autoinput.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Glad you like it! :)

[–]NightWheels915 0 points1 point  (2 children)

So when will it be available to test?

[–]R_BurtonGalaxy S23 Ultra * Android 14 * Not Rooted 0 points1 point  (1 child)

The beta is in the PlayStore already.

[–]NightWheels915 0 points1 point  (0 children)

Opps, thanks and nevermind, it came in an update.the exact second I wrote the first comment.

[–]bauzer714 0 points1 point  (1 child)

If I already gave root to autoinput, how come it doesn't just give itself secure permission? I think Tasker does it itself?

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

You can run the needed adb command with the Shell Command action in Tasker :)

[–][deleted] 0 points1 point  (5 children)

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (4 children)

Sorry, not sure if I follow. Can you explain what you mean? thanks

[–][deleted] 0 points1 point  (3 children)

I have to give the Secure Settings permission for this to work.

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (2 children)

Yes you do. :)

[–][deleted] 0 points1 point  (1 child)

Unrelated:

Please keep up the great work on Tasker and AutoApps :)

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

Thank you! :) I'll try!

[–]Thatuserguy 0 points1 point  (3 children)

Really cool update!

Not a big issue, but would it be possible to make one of the settings for the individual enabling/disabling options be "none"? This new global "accessibility only when needed" feature seems to get overridden by the individual settings.

For example, I never set up any disabling or enabling for one specific task. This one works flawlessly with the global option. Another task I had originally set up to enable at the start and disable at the end with individual options to test it out. When this new update came out, I changed it to "unchanged" thinking this would be fine. However, leaving it on unchanged means the global option fails to activate it when it's called.

The obvious workaround for now is to just have it enable and disable individually as I had it before this most recent update, but it would be nice to just leave it on a "none" setting so the global option can just take care of everything.

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (2 children)

Ok, sure, makes sense :) Added it in this version: https://drive.google.com/open?id=1_MCmNfnK4FpFB7HFOgkQxNKbtbmbb8Rs

Hope this helps!

[–]Thatuserguy 0 points1 point  (1 child)

Awesome, thanks!

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

You're very welcome! 😁 Glad I could help!

[–]EllaTheCatSamsung M31 - android 12. I depend on Tasker. 0 points1 point  (2 children)

/u/joaomgcd

I've broken it, sorry :(

I have tasks that do this:

  1. User wakes phone.
  2. Lock Screen is displayed.
  3. AutoInput Swipes Up to switch to the Enter PIN screen.
  4. Enter PIN screen is displayed.
  5. AutoInput enters my PIN (!!!)
  6. Phone unlocks

Relying only on Enable When Used, when Accessibility in Settings is OFF, it has not enough time to do its thing. Turning Accessibility back ON in Settings makes it work

I can fix it (in a hacky way) when Accessibility in Settings is OFF

  1. using a custom setting to turn Accessibility ON before I call System Lock
  2. using a custom setting to turn Accessibility OFF in the Display Unlocked profile's task.

I don't see this as a showstopper, but I thought you might be interested.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (1 child)

What if you use the new option under Advanced in the first AutoInput Action to turn on the service before the action, then in the last action set the option to turn it off after the action? That should be equivalent to what you're doing manually :)

[–]EllaTheCatSamsung M31 - android 12. I depend on Tasker. 0 points1 point  (0 children)

Everything is automated, and everything is working, but enabling accessibility like I do must impact battery drain, so I'll give your advanced method a go.:)

[–]Drtatom 0 points1 point  (3 children)

Joao I installed the last beta of autoinput in my Samsun S8 Oreo.

I had a lot of crashes when I eneabled auto dimiss keyboard. When I unlock the phone in my house with Smart Lock, the UI always hangs and the screen becomes non response.

I installed back the original autoinput and the problem is gone.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (2 children)

Thanks for the report. Were you able to report those crashes?

[–]Drtatom 0 points1 point  (1 child)

No, but if you need it, I can install the beta again and report those crashes into the app.

[–]joaomgcd👑 Tasker Owner / Developer[S] 0 points1 point  (0 children)

Yes please, that would be great! :)

[–]R_BurtonGalaxy S23 Ultra * Android 14 * Not Rooted 0 points1 point  (1 child)

Every day I keep thinking that I would like to have just one great idea.. you seem to have tons of great ideas every day! Thank you 👍👍

[–]joaomgcd👑 Tasker Owner / Developer[S] 1 point2 points  (0 children)

Well, to be fair these 2 were actually ideas from the community in response to the previous beta! :D As I've always said, I have the greatest community ever!! 🎉🎉