Accessibility for Tasker continuously revoked - Huawei Mediapad M3 Questions & Answers

I've enjoyed this device for about a week now, using it anywhere and everywhere. It's been a delight on the whole, but huaweis emui is harming the experience a little once more.
I use Tasker to manage screen brightness for certain apps, and that requires accessibility permission. I've granted Tasker accessibility and given it permission to run while screen off and ignore battery optimization. In spite of this, after enough time, usually a full day or two, Tasker disappears from the notification shade. I usually have to restart the device to get it to come back on and stay on, but either way, when I restart it, it's accessibility permissions have to be restored.
This happened on my previous mediapad x2, but now it requires a password on top of having to hunt down the toggle for it. It's very frustrating! anyone know of a fix for this behavior?

I am also having this problem, but with another app (Pie Control). It's whitelisted in battery optimization, but after every reboot, the accessibility is off.

Related

change N1 behavior/settings & automate tasks based upon connected bluetooth device?

change N1 behavior/settings & automate tasks based upon connected bluetooth device?
I've had my ATT N1 for the past 1.5 wks and have been loving it. I know with the desktop dock for the N1 that bluetooth can be automatically enabled when docked (at least it does for me). i hope to see this go one step further perhaps. i've tried searching on the market and here on xda, but I haven't found anything that does what i'm thinking of...
I'd like the phone to change various behaviors (eg. sound alerts, screen unlocking, application launching, etc) depending upon the bluetooth device that it is paired with. Essentially, creating setting profiles dependent upon the connected bluetooth device and reverting settings when disconnecting from said devices.
I envision:
-connecting w/ car bluetooth:
disable screen unlocking (having to unlock via pattern while driving is not only annoying but possibly dangerous)
jump to a particular home screen, automatic launching of application such as car home, google maps/nav, music, etc
enable maximum screen brightness (if plugged in and charging could be another modifier. the N1 AMOLED really is pretty bad in direct sunlight and is even worse when trying to view while wearing sunglasses)
set max volume
upon disconnecting, revert to original settings, disable bluetooth
-connecting w/ desktop dock [bluetooth] (bluetooth isn't an absolute requirement here since it can recognize the dock due to the electrical contacts)
disable screen unlocking
silencing most alarms/alerts (so that i can sleep in peace w/o being woken up to by random spam/marketing emails overnight)
upon disconnecting/undocking, revert to original settings
are there any combination of apps/settings that can make this possible? at this point, i'm not too interested in rooting my phone...
thanks
BlueDock (market) plus Tasker (in beta, not yet in the market - http://tasker.dinglisch.net/).
In a future version Tasker will hopefully be able to do this on it's own. But currently you have to hack it useing BlueDock to start an application you don't really need, have Tasker detect the start, kill the app, and then change your settings according to your needs. One drawback is that the app started by BlueDock will only start once the phone is out of sleep mode. So you have to press the unlock button once - no need to swipe to unlock, though.
As for disconnecting you have to abuse the change in the power status.
The setup is quite complex. I will post my setup on the tasker wiki as soon as the next version is released (which will, I hope *gg*, provide a bugfix that make this a little smoother) and I have time. ;-)
I have a widget which I use to indicate whether I want to listen to podcasts (using BeyondPod) or to music. Upon switching on any of my bluetooth devices it will start playback and set the loudness according to the device connected - it will have to be louder with the car bluetooth than with the headset. Upon detecting the car bluetooth it will also start Waze.
interesting. i know what i'm asking is a bit complex. but i'll definitely keep an eye on Tasker. as they're mostly background tasks, any idea as to the battery consumption of these applications? (eg. surprisingly the "Shake Them All" live wallpaper i had installed was consuming up to 10% of battery time recently and was ultimately uninstalled even w/ those cute androids)
My usage pattern says:
40% Display
35% Calls
6% Standby
5% Android System
5% Phone inactive
2% EarthRot
2% Mediaserver
2% Android OS
Tasker isn't even listed.
Within Tasker I have more that a dozen profiles and about 30 tasks.

Specific Tasker profile help

I figured this thread was a good place for this. If not, please re-direct me...
I'm looking to create Tasker profile "A" that stops Tasker profile "B" if; there is WiFi activity from app "A" in the past 5 minutes or less, and if there is a download in progress. Is this possible? And could I get some direction/ideas? Any help is appreciated!
-XDA Premium on CM7 Nook Color
What to you mean by "wifi activity"? Do you mean traffic throughput, on/off or connected/disconnected events?
bobstro said:
What to you mean by "wifi activity"? Do you mean traffic throughput, on/off or connected/disconnected events?
Click to expand...
Click to collapse
Any activity other than updates, basically any active uses but not passive. I have a profile that shuts down the wifi after 5 minutes of the display being off but wanted to add exceptions such as I'm in the middle of a chat with a chat app that is always logged on so the wifi won't go off until a certain time after the last active wifi action from that specific chat app
-XDA Premium on CM7 Nook Color
Tasker lets you set up scripts to respond to states and events. You should be able to set a task to trigger on screen off and not a list of specific apps running. I do this with GPS on my phone so it only (and always) comes on when specific apps are running. In your case, something like "screen off and not chat running".
Tasker is pretty slick, but it's not always quick. I find it's fine for turning things off, but it sometimes is slow turning things on in a responsive manner. The GPS doesn't always get turned on in time for Maps not to complain, for example.
The problem with Tasker is that it can tell if an app is running in the foreground, but not whether it's passing traffic, at least in my experience. For the rudimentary wifi functions on my NOOKcolor, I found Green Power just as effective. It will shut down wifi after a period with no traffic, and periodically turn it back on to sync on a schedule, if you want. It is not sensitive to a specific app running, however.
bobstro said:
Tasker lets you set up scripts to respond to states and events. You should be able to set a task to trigger on screen off and not a list of specific apps running. I do this with GPS on my phone so it only (and always) comes on when specific apps are running. In your case, something like "screen off and not chat running".
Tasker is pretty slick, but it's not always quick. I find it's fine for turning things off, but it sometimes is slow turning things on in a responsive manner. The GPS doesn't always get turned on in time for Maps not to complain, for example.
The problem with Tasker is that it can tell if an app is running in the foreground, but not whether it's passing traffic, at least in my experience. For the rudimentary wifi functions on my NOOKcolor, I found Green Power just as effective. It will shut down wifi after a period with no traffic, and periodically turn it back on to sync on a schedule, if you want. It is not sensitive to a specific app running, however.
Click to expand...
Click to collapse
Well if it can't detect certain traffic then I guess Green Power is my next shot. Thanks for the advice.
Tasker Read SMS
Hi. I installed Tasker and am trying to follow their walk throughs but the current version appears to be entirely different and I just can't figure out how do do any of this stuff. Could really use some help or an XML file. All I want to do is set up a profile that turns on bluetooth, gps fires up Google Maps and then starts listening for SMS text and read the SMS by voice if I get one.
All of their examples don't really jive with the way Tasker seems to work now.
Avatar, there are some obvious barriers I can see right off the bat, namely, no GPS or SIM card on the nook. Most of Tasker's functions (and wiki pages) relate to built in android functions so for example, instead of one action to enable GPS, it becomes a complicated series of actions such as enabling bluetooth, loading whichever bluetooth/gps app you use to connect, and simulating the correct sequence of button presses, waiting for it to connect, as well as dealing with it if it doesn't connect on the first try. It's very shonky and prone to failure compared to just enabling GPS on a device which has it.
I'd imagine the sms stuff is even more complex as you're already using a workaround to have that ability in the first place, so you'll have to work around that workaround, like the GPS. I bought a cheap phone to handle all that and its a much more straightforward and enjoyable car/tasker experience, minus the 7 inch screen.

Redmi pro problems and bugs

Hi guys, I've been using my Redmi Pro for around a week now, and it has a few issues which stops me from considering the phone to be an awesome one. They are:
- Whenever I let an app draw over other apps, it gets reset after a while. In practice this means that e.g. Facebook chat heads will work for some time but after a while chat heads is deactivated and needs to be deactivated again. This is an even bigger problem with Drupe, which becomes nearly useless without drawing over other apps.
- When an app needs me to allow various functions, e.g. letting an app use contacts, photos et.c., the "Allow" option doesn't work. I see "Deny" and "Allow" next to each other, but when I tap "Allow", nothing happens. Interestingly enough, "Deny" does work. I haven't found out why, but after trying a few times, it does work.
- The back button has temporarily stopped working 2-3 times. Again, it has started working again and I have no idea why.
Do you guys have the same problems? Any suggestion if there's anything I can do? THanks in advance! :fingers-crossed:
How's the battery backup?
I haven't had any of these problems. Which ROM are you using?
Might be a bit late, but I just got my phone and noticed Viber app being stopped all the time when i put my phone on table to sip some tea.
What happens is battery saver just turns off "unnecessary" services. In order to turn it off go to Security app on screen > battery > battery saver > Off.
Battery saver screen can also be reached by going to settings> battery > energy.

Push notifications not working while screen is off

I've recently switched over from iOS to a Samsung Galaxy S8 running Android 8. During the first week everything worked just fine. I was receiving push notifications on a regular basis. A few days ago suddenly notifications stopped working intermittently when screen is off. I couldn't find a pattern really. It does it both on Wi-Fi and 4G, for all apps. Sometimes push notifications work, sometimes they are delayed (receiving them after a few minutes) and sometimes they do not work at all.
Each time it doesn't work when I turn on the screen, all notifications pop up with both sound and visual.
What I checked so far:
- Notifications turned on for the specific apps and allowed on lockscreen
- Apps were also put into the "Unmonitored apps" under Device Maintenance - Battery
- Wi-Fi on during sleep set to always
- Data saver turned off
- Optimize battery usage - checked that the apps are set to off
- Even tried by enabling Always On Display setting - same behavior.
For me it seems that the something in the battery optimization process is messing up with the notification service. I can't say for sure if it happens for messages as well as I don't receive text messages so often, but it happens for all other apps: Gmail, Whatsapp and some other apps I use.
I noticed that under Optimize battery usage there are a lot of system services and they are all set to be optimized. Which I find very odd considering that probably some of them are very important for the system to run properly. Is it possible that there is a service there that handles notifications and I should switch off battery optimization for it as well? The only name I found close was a service called "notification" which I disabled, but without success. Still not getting push notifications.
Any idea what else can be checked? If I cannot find a solution to it I will most probably go back to iOS as this is very annoying. I heavily rely on notifications for work purposes as well.

Notifications wonky after Pie update

Has anyone else noticed that notifications seem to be super slow in coming after the Pie update? Line and Email can take up to two hours to exhibit a notification. I've looked at the notifications area of the apps, and nothing appears to have changed that I can see, and I can't find anywhere in Pie to tell it to allow more background time for these apps. I've tried force stopping and restarting with no change.
If anyone has any idea on what is going on, and how to fix it, your help would be most appreciated. Being told your wife left you a Line message 2 hours after she did so, or that your kid sent an email 2 hours earlier, is NOT conducive to a happy home life.
Nobody else has this issue? It appears to be connected to the fact that the phone is sitting undisturbed for a long period of time. If I am carrying the phone around with me, the notifications seem to come as expected, but if the phone is just sitting on my desk for a while, they seem to come from minutes to hours later.
You could try to whitelist those apps on Battery Optimization
I'm no expert, but from what you describe sounds like the phone is entering into Doze and notifications cannot come until the next maintenance window
If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms.
Click to expand...
Click to collapse
https://developer.android.com/training/monitoring-device-state/doze-standby
I think white listing the app prevents this behaviour
It does sound like you are correct and the phone is entering Doze mode, delaying the notifications. Thanks for that!
I will check into how to add the email and Line app to a whitelist for Doze. Hopefully it's a simple task, but I don't see anything under Battery doing a quick scan.
Just a follow up. After much searching and reading, I finally found where to turn off battery optimization for the two apps I needed notifications from. FYI:
Most things on the web say to go to Settings->Battery, then hit the three dot menu and select Battery Optimization. This does not appear on my phone. (see screenshot) To get to the list of optimized apps, you need to Search->Battery Optimization, select Battery Optimization from the results (it will take a few seconds to load), then tap Not Optimized and select All Apps. Find the app you want, tap it, then select Don't Optimize. You can also go to Apps and Notifications->Advanced->Special app access->battery optimization.
Whether this will actually fix the problem is another question entirely as most posts say that Doze continues to work. I guess we shall see.
I hope this saves someone the aggravation of trying to find something directly relating to Pie. Most things out there are for older builds.
Also, I turned off Adaptive Battery to see what the actual difference is in my light usage use case. If you are interested in the results of this test, let me know and I will post here.
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Tepig said:
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Click to expand...
Click to collapse
Unlike some folks, I am not tied to my phone. It often sits on the desk undisturbed for 3 or 4 hours during the day unless a notification comes in and I pick it up to look at it. Most of my screen time is on my computer, so the phone is the external brain when out and about, but not used much otherwise. At night, I turn on airplane mode until I get up the next day, then turn it off. I'm a retired software engineer, so have no real need for constant communication anymore, and I like it that way.

Categories

Resources