Tasker Accessibility settings lag - Tasker Tips & Tricks

So, I enabled the accessibility settings in order to use a task that autorotates the screen when certain apps are opened. The problem was that my phone started lagging (Nexus 5, stock and no root).
When I disabled this, it started to behave like its old self again. I didn't have anything else enabled.
So does anyone else experience this? And is there a way to make the task to work without enabling the settings again?

It's probably your profile. Enable the accessibility, but disable tasker and the plugin. If it behaves bad it's the setting! (Protip it's never the setting. the app/plugin may be configured badly)

The profile is set up like this.
Trigger apps: Aperture, Mx Player, Google Photo, Solid Explorer and YouTube
Task: Display AutoRotate On
That's all there is to it. I read on a couple of places that accessibility can cause lag though and I wondered if anyone else has experienced this.

I also have a similar Profile for my gallery app, working find without lag here.

Accessibility services are known to cause lag. See an article I wrote on this topic: https://www.xda-developers.com/working-as-intended-an-exploration-into-androids-accessibility-lag/

Related

[Q] Gingervolt 2.0 and Tasker

I have been playing around with my LG Revolution, and bought Tasker 1.2.1m Installed Secure Settings 1.1.7, installed Secure Settings helper, and checked my Profile under /Systems/build.prop for line ro.HOME_APP_ADJ=1 and I can't seem to get Tasker to toggle GPS on if it is off.
I read about a roll your own find your phone app and figured I'd do that, but if someone just turns off my GPS then what good does that do :/.
I figured I'd ask here first before I mosey over to the Tasker Discussions Group to see if it's just a small thing I may be over looking in the ROM.
I also added Tasker to accessibility, just to cover my bases.
The stock rom seems to have issues with apps switching gps states, as evident in power control apps. I really dont know how to fix this...

App that toggles GPS automatically

I recently decided to root my droid turbo since it seems like we are never going to get the lollipop update ?. Im already seeing improvements in battery life and performance by using various apps like clean master and battery doctor.
I was wondering if anyone knew of any apps that would know when I'm using a certain app and toggle certain setting when I am and off when I'm not. For example, if I pull up the maps app, I obviously need location on so as soon as I open it, it turns location on, and then when I'm done with the all, turns it back off.
Ive seen the "tasker" app on the Google play store that's like 2.99 and I didn't know if it would do that or not.
Thanks in advance!!
IIRC, Tasker does this. I think Llama (similar to Tasker) can also do it.
drexhex said:
IIRC, Tasker does this. I think Llama (similar to Tasker) can also do it.
Click to expand...
Click to collapse
Yes, Tasker does this with the addition of Secure Settings. You can set it so that whenever you open apps X, Y, Z, it will automatically toggle GPS.
I have this set up for Maps, Yelp, etc. When I exit the app, GPS is turned off after a 2 minute delay (it kept disabling GPS if I quickly switched to another app during navigation, so I set a longer delay than most tutorials suggested)
http://www.csullender.com/blog/2014/01/26/automatic-high-accuracy-android-location/
ds728 said:
Yes, Tasker does this with the addition of Secure Settings. You can set it so that whenever you open apps X, Y, Z, it will automatically toggle GPS.
I have this set up for Maps, Yelp, etc. When I exit the app, GPS is turned off after a 2 minute delay (it kept disabling GPS if I quickly switched to another app during navigation, so I set a longer delay than most tutorials suggested)
http://www.csullender.com/blog/2014/01/26/automatic-high-accuracy-android-location/
Click to expand...
Click to collapse
Thanks, I decided to buy tasker right after I posted that. Was gonna wait till I knew for sure that it would work but decided I wanted to try it anyway. Took me a little bit to figure it out but finally did.
I'm trying to figure out now how to use the scenes to make a pop up menu that will be there during navigation to allow me to start playing music and different navigation tasks so I can stay on the navigation app. I'm having a lot of trouble with it.

Task execution issue

Hello people,
I don't know if anyone else is experience this but I thought I mention it. Also I apologise if this is the incorrect place to start this thread, but I have looked on xda for a tasker dedicated section for troubleshooting.
Now I have a automated WIFI profile that basically enables whenever I load a specific app. But for some strange reason it does not always execute, when a specific app does load and other times it does?
Does anyone else notice this strange behaviour going on with tasker?
If so is it a bug that needs reporting or is there something wrong with my profile?
Thanks in advance!
In Tasker settings/preferences/monitor put to "Always" the Use Reliable Alarms option.
GrippingSphere said:
In Tasker settings/preferences/monitor put to "Always" the Use Reliable Alarms option.
Click to expand...
Click to collapse
It seems the profile triggers, but not the task.
HatchetEgg said:
It seems the profile triggers, but not the task.
Click to expand...
Click to collapse
You can test the Task by manually executing it. Maybe you're using a plug-in that requires permissions to run.
GrippingSphere said:
You can test the Task by manually executing it. Maybe you're using a plug-in that requires permissions to run.
Click to expand...
Click to collapse
If I run the task manually everything executes just fine.
The task does use one plugin and thats for secure settings, but thats about it.
UPDATE: I think I might know what the problem is, and I think that tasker is unable to wake the device to execute the task, so I added a wake device action in my task and see if this works.
In LL and MM there is battery optimization where Tasker and Secure Settings should be excluded. Other 3rd party battery saving apps might also affect the operation of Tasker and its plugins.
GrippingSphere said:
In LL and MM there is battery optimization where Tasker and Secure Settings should be excluded. Other 3rd party battery saving apps might also affect the operation of Tasker and its plugins.
Click to expand...
Click to collapse
This is true I had taken the advice from here >
As far as I am aware tasker and it's plugins are whitelisted from other 3rd party on my device, so I still don't understand why it still does not work unless I add the wake device action from secure settings.
Any luck on this? I'm noticing that tasker is very slow to execute any actions outside of the app. Meaning, if I create a task that simply has one step..."beep". Next, add that task as a shortcut to my nova launcher desktop. Click the shortcut...it takes almost 30seconds for it to execute the beep. I've been a tasker user for years. Not sure why this lag is occurring.
Tried this...
Tasker is not battery optimized.
Reinstalled Tasker.
rooted Pixel, 7.1.1
I have the same problem with my periodical Wi-Fi check.I have to add the 1 second CPU wake, but it's still not very reliable.maybe the best way to get over this is turning on the screen, but this is kind of defeat the purpose for me so....
any other suggestion?
soundneedle said:
Any luck on this? I'm noticing that tasker is very slow to execute any actions outside of the app. Meaning, if I create a task that simply has one step..."beep". Next, add that task as a shortcut to my nova launcher desktop. Click the shortcut...it takes almost 30seconds for it to execute the beep. I've been a tasker user for years. Not sure why this lag is occurring.
Tried this...
Tasker is not battery optimized.
Reinstalled Tasker.
rooted Pixel, 7.1.1
Click to expand...
Click to collapse
There is one thing that you can try go to Tasker > preferences > misc and untick reduce resource usage.
alienyd said:
I have the same problem with my periodical Wi-Fi check.I have to add the 1 second CPU wake, but it's still not very reliable.maybe the best way to get over this is turning on the screen, but this is kind of defeat the purpose for me so....
any other suggestion?
Click to expand...
Click to collapse
I have tried the screen wake function, but even then it doesn't work.
I did notice however that Google connectivity was causing issues for me, such as not able to connect to my ap automatically.

Issue with Tasker not performing correctly when using Google maps.

On my S7 edge, I have Tasker setup usibg Auto Notification to have menus pop up while navigating to allow easy switch between music and navigation screens. For some reason, this causes Tasker to not monitor switching between apps properly, and some plugins like autoshare and even auto notification don't work properly. Tasker basically doesn't work right for several minutes and then it finally catches up and everything starts happening at once. I could really use help with this, it's annoying when Tasker does things 30 minutes after it was supposed to happen at the wrong times.
Is "use reliable alarms" set to always?
Tyler2265 said:
On my S7 edge, I have Tasker setup usibg Auto Notification to have menus pop up while navigating to allow easy switch between music and navigation screens. For some reason, this causes Tasker to not monitor switching between apps properly, and some plugins like autoshare and even auto notification don't work properly. Tasker basically doesn't work right for several minutes and then it finally catches up and everything starts happening at once. I could really use help with this, it's annoying when Tasker does things 30 minutes after it was supposed to happen at the wrong times.
Click to expand...
Click to collapse
My heaviest Tasker use is in my car mode....always navigating with Google Maps. I have a ton of profiles which monitor both apps and notifications to make many decisions...with some extremely complex tasks attached.
Everything usually works fine. But sometimes I make a bad task that loops indefinitely, or I have a root or accessibility problem, or for some reason an error occurs in my programming....those kinds issues usually cause major lag or profiles don't fire at all.
I would think that Tasker itself is probably performing as expected and there is an error (or a method that could be better) in your profiles. My advice is to save a run log and review line by line.
Sent from my SM-G955F using Tapatalk
Reliable alarms was set to never. Could that have been my issue? I know for a fact it's Tasker that's the problem cause when I go into Tasker after being on the home screen it still thinks I'm in the maps app. Or the music app. I've reviewed all my tasks very carefully.
Tyler2265 said:
Reliable alarms was set to never. Could that have been my issue?
Click to expand...
Click to collapse
I think it's likely. Try it and see if things improve.
ktmom said:
Is "use reliable alarms" set to always?
Click to expand...
Click to collapse
ktmom said:
I think it's likely. Try it and see if things improve.
Click to expand...
Click to collapse
Didn't end up changing much, at least not yet. See I have a profile for Google maps, Google Music, and home screen so that whenever one of these becomes active, I get a flash popup telling me what app is open. Whenever I start navigation it's like Tasker stops monitoring which app is open. Autoshare stops working too. Whenever I go to use an autoshare action, I get an error. But then that action ends happening later on, even after it gives out an error. I'm not sure what to do.
Maybe you're experiencing a reported conflict with google play services as described in this thread
ktmom said:
Maybe you're experiencing a reported conflict with google play services as described in this thread
Click to expand...
Click to collapse
Not sure. It only seems to happen when Google maps is running but even when I do big tasks E.G moving big files using ES File explorer, still seems to cause tasker to struggle. So I'm not sure what to think but I wish it would work properly.

Can't keep apps running in the background

I know this is the Mi 8 forum, but I feel that the issue I have on my Mi 9 will be common across both phones, and thought I would post here too.
I've noticed that at least two apps will mysteriously stop working in the background, causing problems:
First, most important, I use my Google Voice number, not my SIM number, so I need Google Voice to be running so that it intercepts my calls and uses the right phone number to make calls. If I open Google Voice, it will work for a few hours, maybe a day, and then GV stops working and calls start going out through my SIM number.
The other app that exhibits this behavior is Garmin Connect -- my watch gives me notifications, but then, for no reason, it will stop working. Opening Garmin Connect solves the problem.
I have ensured all permissions are set as liberally as possible, even the "allow autostart" option. Not sure what else to do. Any ideas would be great. I actually didn't have the issue with my Mi 8, but I wonder if anyone has any knowledge on how this could happen on the Mi 9.
Thanks!
sshanky said:
I know this is the Mi 8 forum, but I feel that the issue I have on my Mi 9 will be common across both phones, and thought I would post here too.
I've noticed that at least two apps will mysteriously stop working in the background, causing problems:
First, most important, I use my Google Voice number, not my SIM number, so I need Google Voice to be running so that it intercepts my calls and uses the right phone number to make calls. If I open Google Voice, it will work for a few hours, maybe a day, and then GV stops working and calls start going out through my SIM number.
The other app that exhibits this behavior is Garmin Connect -- my watch gives me notifications, but then, for no reason, it will stop working. Opening Garmin Connect solves the problem.
I have ensured all permissions are set as liberally as possible, even the "allow autostart" option. Not sure what else to do. Any ideas would be great. I actually didn't have the issue with my Mi 8, but I wonder if anyone has any knowledge on how this could happen on the Mi 9.
Thanks!
Click to expand...
Click to collapse
MIUI itself is a bit heavy on RAM, for one, and it's always been a bit aggressive on RAM management. Another thing, have you disabled MIUI's power saving functionality for those apps? I believe it only affects background push data, but I may be wrong. To configure said apps, go to Settings > Battery & performance > Choose apps and then select the apps in question and set to No Restrictions. There used to be an option to completely disable it, but that has since been removed. Another thing is to enable Developer options by tapping the MIUI version several times in the About phone section of the Settings app, then go to Additional settings > Developer options and disable MIUI optimizations. Read the prompt that pops up as I recall it mentioning something about affecting certain services.
Crossvxm said:
MIUI itself is a bit heavy on RAM, for one, and it's always been a bit aggressive on RAM management. Another thing, have you disabled MIUI's power saving functionality for those apps? I believe it only affects background push data, but I may be wrong. To configure said apps, go to Settings > Battery & performance > Choose apps and then select the apps in question and set to No Restrictions. There used to be an option to completely disable it, but that has since been removed. Another thing is to enable Developer options by tapping the MIUI version several times in the About phone section of the Settings app, then go to Additional settings > Developer options and disable MIUI optimizations. Read the prompt that pops up as I recall it mentioning something about affecting certain services.
Click to expand...
Click to collapse
I have set the apps in question to No Restrictions, a long time ago, but that didn't help. Today, I tried another option -- Use Adaptive Battery (Limit battery for apps that you don't use often). I turned that OFF, and it appears I've been getting alerts on my Garmin watch all day. However, I made a call and Google Voice wasn't active. I was getting excited that I'd found a cure until that happened. I'll try your suggestion in developer options and report back if it works. Thanks for that idea.
No luck -- Google Voice is still stopping, even after just a few minutes. I can't make calls on my google voice number unless I first launch Voice, then go to the phone app.
sshanky said:
No luck -- Google Voice is still stopping, even after just a few minutes. I can't make calls on my google voice number unless I first launch Voice, then go to the phone app.
Click to expand...
Click to collapse
Yeah MIUI 10 + Android 9.0 are worse than previous versions of MIUI, but Google apps have issues on all devices that do not use stock or near stock Android. Have you attempted to lock the app in the task manager? Open your app, for example Google Voice, then using the task manager (App switcher), long press that app and tap the lock button. Try using the phone as you normally would and see if it helps.
@Crossvxm that's a good idea. I'll try and let you know how it goes.
sshanky said:
@Crossvxm that's a good idea. I'll try and let you know how it goes.
Click to expand...
Click to collapse
All you have to to do is turn off Battery restrictions.
Also, I would suggest giving the launcher "Smart Launcher: a try. Not only is it awesome but it gives you quick access to all of the permissions, and battery optimizations. You can manage all of this from the Apps list.. Press and hold on any icon and click namage ( or the gear then manage) this is much easier then searching through the system settings for autostart, permissions, battery management etc. This is one app that is worth buying. The free version is great, but the paid version is incomparable, and I own all of the popular launchers. Smart Launcher Pro 5 is absolutely the best, and highly customizable.
My biggest issue with all AOSP roms is that the battery goes up to 105F when charging on every single AOSP rom that I have tried on the Mi8. While there is no immediate risk in the long term the battery should not get hotter than room temperature.
Back to Miui, turn off battery restrictions and you will have no issues, you also have the option of clicking the pin in recents to keep the app active.
Hi @tsongming, I've done everything possible to deactivate restrictions. I've done it the way you mentioned and other ways as well. I did try locking the app as mentioned by @Crossvxm and it might have done the trick -- will know more in a few days. I use Nova Launcher (paid version) and it has the same features you mentioned about Smart Launcher, where I can get to the settings instantly.
sshanky said:
Hi @tsongming, I've done everything possible to deactivate restrictions. I've done it the way you mentioned and other ways as well. I did try locking the app as mentioned by @Crossvxm and it might have done the trick -- will know more in a few days. I use Nova Launcher (paid version) and it has the same features you mentioned about Smart Launcher, where I can get to the settings instantly.
Click to expand...
Click to collapse
I run MIUI stock 10.3.3.0 with Sphinx Kernel and root. I also use Hangouts, Google voice, and Google message without issues. It's like tsongming mentioned. Turn off the adaptive battery and remove battery restrictions on each app. Also make sure they get all permissions.
Something to note , when I used Canting Kernel, I had lots of apps turn off in background including my Fossil sport watch connection. Going back to Sphinx Kernel took care of issue, probable too aggressive memory killer in Canting. Stock Kernel might have same issue idk.
./
When I had my Mi 8, I had no issues. This seems to be something new with the 9. I've disabled adaptive battery, I've provided all permissions to the app, I've removed all power restrictions. I'm not rooted, so I can't change kernel right now. It appears that locking the app might have helped a bit, but I wish I didn't have to do it.

Categories

Resources