Kill app problem - Tasker Tips & Tricks

I'm trying to get my OnePlus 8 to launch the NHS Covid-19 when I'm not on WiFi and then kill it when I'm on my home WiFi again but it seems like this is not possible without root/ADB WiFi activated. Activating ADB WiFi seems quite straight forward but it seems like it resets itself when you reboot your phone. As I'm a light sleeper, I always switch my phone off at night to stop me from being woken up by it which means this would have to be done on a daily basis or have I misunderstood something?

Related

Auto send/receive while in sleep mode?

Is it just me or can this phone not do it?
On my iphone if I leave wifi on and turn the screen off, it will connect only when needed using the auto send/receive schedule.
My xperia no matter what i do just wont seem to send receive with auto send/receive set to 5 minutes, wifi enabled, and i turn screen off with power button (or even leave it automatic).
Does it work for anyone else or is this just the way the xperia works? It only sends/receives when it's awake, in which case, pretty stupid,cause i can just do it manually if i'm using it.
I think winmo only sends/receives over a cellular connection while the phone is asleep. Wifi on the other hand is disabled when the phone goes asleep in order to preserve battery life....so no sending or recieving emails over wifi with the device in sleep mode
sonus said:
I think winmo only sends/receives over a cellular connection while the phone is asleep. Wifi on the other hand is disabled when the phone goes asleep in order to preserve battery life....so no sending or recieving emails over wifi with the device in sleep mode
Click to expand...
Click to collapse
That's really disappointing, it's a feature I had come to expect, thinking the device could atleast witch it on long enough to sync my email just like the iphone does before switching it off again.
guess my only option is to buy a data plan.
Try Advance config
Bottom right softkey "Menu" --> More Settings --> Connections --> Enable Wi-fi on standby mode
Ashwm said:
Try Advance config
Bottom right softkey "Menu" --> More Settings --> Connections --> Enable Wi-fi on standby mode
Click to expand...
Click to collapse
Thanks, I have just tried this, but I see that basically what it does is prevent the wifi from sleeping on standby mode, which is going to kill the wifi I presume in a couple of hours.
I guess it's just not possible for it to do what exactly I wanted it to do which is to connect and disconnect when required, to send and receive, while left switched on and the phone is in standby.
I believe that even when the phone is on and wifi is on I think the normal wifi power save (middle slider position) switches itself off after an idle period to save power when not in use, "on" just means available for use, not necessarily powered up.
I need this too, could someone try a mort-script or something to connect to WiFi automatically and then send/receive emails every desired set hours? Think it is possible..
Well
I tried enabling this (and yes, the wifi stays on while asleep) and putting my power save slider all the way to the right, however, after waiting the set time for my auto send/receive (5 minutes) and infact more, it did not send/receive until the moment I woke it, so I don't know if it was just about to do it, or if waking it caused the update.
i will give it another go and see how it goes, if you say that the wifi does infact just sleep itself when idle it shouldn't harm the battery life too much.
Strange
Ok, after further experimentation, I got it to send/receive my email while sleeping with the mode set for standby wifi enabled, however, with the refresh time setto 5 minutes, it took almost 15 minutes to update.
15 minutes is about the time I want, but will it take more power if I leave it on 5 minutes, or will it take even longer still if i set it to 15 minutes?
I'll try leaving my wifi on for a couple of days and see how it goes.
Try the program rk-OSR. It can connect/disconnect wi-fi automatically only for synchronizing e-mail.
Thanks
maedox said:
Try the program rk-OSR. It can connect/disconnect wi-fi automatically only for synchronizing e-mail.
Click to expand...
Click to collapse
Thanks, I'm going to see how it fairs over the next couple of days with the wifi set to work during standby (in terms of battery life) and if that doesn't work out i'll take a look at the app.
I don't know what it is but i just have a phobia of running extra 3rd party software on a phone that can only just about handle itself.
You pretty much have to run 3rd party apps on WinMo. In my opinion it's like using a normal computer with windows without installing any other applications. It's barely usable for anything at all without getting really annoyed.
maedox said:
You pretty much have to run 3rd party apps on WinMo. In my opinion it's like using a normal computer with windows without installing any other applications. It's barely usable for anything at all without getting really annoyed.
Click to expand...
Click to collapse
Yeh, but what annoys me is that my desktop computer is designed with the hardware to run its OS and a hell of a lot more, the hardware in this thing barely runs the naked OS, so I'm reluctant to add any more.
Anyway, after experiments it's been pretty much a total failure with the sleep wifi thing.
Looks like that 3rd party app will be my last resort, lets just hope it's unobtrusive and has litttle battery drain (aside from the obvious).
Failing that, it's either keep lugging around an iphone or get a data plan. Might sell the iphone to fund it.
You can't seriously consider using the iPhone for this. It's a toy.
I'm sure you'll be happy with rk-OSR.
maedox said:
You can't seriously consider using the iPhone for this. It's a toy.
I'm sure you'll be happy with rk-OSR.
Click to expand...
Click to collapse
You;re right, iPhone is a toy, but considering the problems I'm now having downloading email attachments (mp3) and the fact that it doesnt check my mail properly while sleeping, it seems almost worth carrying just to make sure I get my email without having to actively check for it.
I'll take your word though and try rk-OSR and hopefully find a solution to my attachment problem, then I'm a happy happy xperia owner in heaven.
Ok...but.
Ok, got rk-OSR installed and it is working perfectly if I use the "test" button. However, I put the device to sleep, set to sync in a couple of minutes, wait 5 or 6, wake it up myself and nothing. Even the log doesnt have anything after my test attempt. What could be the problem?
still wondering how to get the phone to do this... is it not possible for the phone to check emails while it's in your pocket? such a simple concept yet...
alias_neo and dinan, I found a solution!!! All you have to do is to install GProfile and this program called rk-OSR. You create a time-based profile (in GProfile) and choose a specific time (eg: 1am) to run rk-OSR. You donĀ“t have to select anything else (wifi toggle, etc). Then you select the same time in rk-OSR (1 am) and in this program you select the wifi options. It worked for me.
Hope it helps you

[Q] NC Rooted 1.1 WiFi not reconnecting after sleep

My rooted NC 1.1 has stopped reconnecting automatically to my wifi network after sleep. It had been working fine for a while so I am not sure what changed. To get it to reconnect I either need to toggle the wifi on/off or select the network using wifi settings. After that it is fine. If I just put it to sleep and turn it back on after a minute or so it connects fine. The problem occurs after several minutes (say 10) of sleep.
I have deleted all my network connections, rebooted and then connected to my network with no change. Again this had been working fine in its current state.
I then reimaged it to a known working 1.1 image using CWR but the wifi issue remains.
This is more nuisance then anything else but it sure is annoying.
Look forward to any suggestions since I dont know what else to try.
Bob Silver
NC 1.1 rooted 1.1ghz
Ipad 3g 4.2.1
Iphone 4 IOS 4.1 jailbroken
same problem here, sometimes it works but after waiting too long it doesn't reconnect. I think after being asleep so long it just fails to refresh/rescan. Kind of silly they dont have a rescan/refresh button in the wifi settings...
You can try going into Settings/Wireless/Wifi Settings/hit the menu again and go to Advanced, set the sleep option to Never. This helps but it still shuts off the wifi after being locked for a few minutes.
The fix I use is called "SoftLocker Free" in the market. This basically prevents it from sleeping, but still allows the screen to turn off. It draws more power from the battery since the wifi stays on, but I've had good luck with it.
Strange question, but do you have AT&T? I've seen a ton of folks with non-rooted nooks have this issue on the official Barnes and Noble forum, all with Uverse.
No i am not using att.
Thanks for the tips so far.
Bob
ZTE blade has a similar issue, there's a couple of workarounds.
1. Keep the device awake when screen is off (holds wifi connection but uses battery power)
2. Automatically toggle wifi when you turn the screen back on.
I've made an app that does (1.) when you leave wifi on and turn the screen off. (similar to softlocker, but it automatically grabs the lock when wifi is left on and has other features). Search for "Advanced wifi lock"
If you want (2.) grab "Blade wifi fix".
This seems to be common among Android devices judging by the sheer volume of WiFi fix and Wifi lock applications in the market. Now, we just have to figure out which one works better with NookColor. Free would be better of course
Mine does it as well - WiFi on after waking up. Can stay awake for 10 minutes not connecting, bus as soon as I'll go to wireless settings, I can see it obtaining IP immediately. I also noticed it goes away from time to time and comes back by itself.

One Marshmallow user's impressions

http://tomhorsley.com/rants/doze-mode.html
I'm definitely reverting back to 5.1.1 when I get the time and energy to fool with it .
sounds like that was written by someone who hasn't even tried marshmallow yet. I have yet to experience any missed notifications, alarms or any issues relating to time in any way. If some apps are being affected by this then its a sign to the developer to fix their ****ty code because all of my apps relating to time at all have been working just fine and alot of them are still the same version they were on lollipop. Doze has improved my batter significantly. It sounds like this article was probably written by a developer who cant code properly and instead of improving his skills he'd rather complain and convince everyone to stay away from updates because he is unwilling to evolve. Even the article looks like it was written in paint...
I had indeed a wrong time bug some days ago...really strange and worrying, a reboot fixed it. First time ever since Android Froyo that I experienced something like that.
That author seems to think that Marshmallow's Doze is a horrible thing that breaks all apps that rely on background services, namely alarms and notifications, and couldn't possibly be fixed in 10 years (rather than a few months) due to Google's horrible mistake (rather than devs not fixing their code).
Frankly, it sounds like a bunch of hyperbole.
Sent from my ALCATEL ONE TOUCH Fierce using Tapatalk
He's wrong about how doze works. And if he's in the camp that doesn't understand it nor wants to rewrite his app. Then yeh he's the idiot group that Google is targeting and was writing garbage code anyway.
lol complete nonsense, my alarm has worked everyday since i flashed M, even on dev previews...the only issues i have with M are really the "slow to connect wifi when using toggles" and the weird wifi consumption on battery stats
Another annoying issue on M is that if your leave your phone longer in standby mode (display off), wifi turns off and you stop recieving notifications until you turn your phone on again. This is with wifi set to "never turn off", etc.
Kustaa said:
I had indeed a wrong time bug some days ago...really strange and worrying, a reboot fixed it. First time ever since Android Froyo that I experienced something like that.
Click to expand...
Click to collapse
This actually happened with me a couple of days back, I was travelling, so I put my phone connected to a power bank and went for a nap, woke up to see phone switched off, switching it on throws me a 2nd September date set on my device. Had to manually set the date as no network was available to automatically set the date from servers.
Ubichinon said:
Another annoying issue on M is that if your leave your phone longer in standby mode (display off), wifi turns off and you stop recieving notifications until you turn your phone on again. This is with wifi set to "never turn off", etc.
Click to expand...
Click to collapse
This I had been noticing these days just because of WhatsApp Web. When in standby, WhatsApp Web shows phone not connected error. Just waking the phone reconnects to the WiFi, but happens every 30-40mins.
I have a feeling that folks who never see these problems have their phones charging at night and doze mode doesn't happen when you are charging. I have no convenient way to charge my phone near my bed, so it is not charging and totally idle all night. Email and messaging completely stops. Only the stock alarm clock works. My medication reminder stops working. It might as well be turned off completely. Plus when you do wake up and turn on the phone, all the pent up alerts come through and scare the hell out of you. I hate doze mode.
Settings -> Battery -> ... (menu)-> Battery Optimization --> All apps --> Select whatsapp, etc... and select not optimized.
Test again.
You're welcome.
I already disabled optimization in the battery settings for all the apps that weren't working. They still don't work after sitting overnight. It looks as if that setting has absolutely no effect.
Claghorn said:
I already disabled optimization in the battery settings for all the apps that weren't working. They still don't work after sitting overnight. It looks as if that setting has absolutely no effect.
Click to expand...
Click to collapse
This is a real problem. I tested this on a Nexus 5. The device seems to enter Doze after about 1 hour and this is what happens.
What does work in Doze mode:
- Telephone: call can be heard.
- Alarm: alarm can be heard
What does NOT work in Doze mode:
- Receiving mail notifications directly: it seems to wait for the maintenance window. There is no "ping" from my GMail. No lock screen notification until I picked it up. I turned off battery optimalization as suggested. Like Claghorn says, it doesn't make a difference. When I was sleeping, the time difference between sending the mail and getting a notification can be hours. That is not acceptable: I want to determine whether or not I get a message. I got no control over Doze, except plugging it in. Also, when it sits on the desk at work I need to pick it up or turn the screen on every so often, because I don't know if it "dozed" off again.
Works partially:
- Notification light: It works once mail passes through the maintenance window. It does NOT work before the maintenance window.
I tested all of this with a unrooted, updated Nexus 5. Topic Starter and Claghorn have good points. Why can't I turn this off? I don't want this. I want notification on time, with ping, right now. If I don't I will turn the volume off or set priorities. They could have told me this behavior in a mail or during the update. Important mail from work, family comes in hours late. Not happy with this at all.
Tried all sorts of things, nothing seems to help. And no, battery optimalization is either not enough or has nothing to do with it. I love the Nexus 5. Marshmallow seems to be much smoother than Lollipop. I was happy with the update until I discovered this. Now, I am fustrated. I expect the phone to inform me when I need to be informed. Most days I don't need to save 10% of power anyway. For the first time I want to either root the phone and go back to Lollipop or even Kitkat. I don't know what else can be done. Fustrated.
Dennis de Swart said:
This is a real problem. I tested this on a Nexus 5. The device seems to enter Doze after about 1 hour and this is what happens.
What does work in Doze mode:
- Telephone: call can be heard.
- Alarm: alarm can be heard
What does NOT work in Doze mode:
- Receiving mail notifications directly: it seems to wait for the maintenance window. There is no "ping" from my GMail. No lock screen notification until I picked it up. I turned off battery optimalization as suggested. Like Claghorn says, it doesn't make a difference. When I was sleeping, the time difference between sending the mail and getting a notification can be hours. That is not acceptable: I want to determine whether or not I get a message. I got no control over Doze, except plugging it in. Also, when it sits on the desk at work I need to pick it up or turn the screen on every so often, because I don't know if it "dozed" off again.
Works partially:
- Notification light: It works once mail passes through the maintenance window. It does NOT work before the maintenance window.
I tested all of this with a unrooted, updated Nexus 5. Topic Starter and Claghorn have good points. Why can't I turn this off? I don't want this. I want notification on time, with ping, right now. If I don't I will turn the volume off or set priorities. They could have told me this behavior in a mail or during the update. Important mail from work, family comes in hours late. Not happy with this at all.
Tried all sorts of things, nothing seems to help. And no, battery optimalization is either not enough or has nothing to do with it. I love the Nexus 5. Marshmallow seems to be much smoother than Lollipop. I was happy with the update until I discovered this. Now, I am fustrated. I expect the phone to inform me when I need to be informed. Most days I don't need to save 10% of power anyway. For the first time I want to either root the phone and go back to Lollipop or even Kitkat. I don't know what else can be done. Fustrated.
Click to expand...
Click to collapse
A quick suggestion -
You may use Doze Mode Editor and edit the script so that your phone never enters Doze mode.
That way you can enjoy Marshmallow without Doze.
Sent from my Nexus 5
Achilles. said:
A quick suggestion -
You may use Doze Mode Editor and edit the script so that your phone never enters Doze mode.
That way you can enjoy Marshmallow without Doze.
Sent from my Nexus 5
Click to expand...
Click to collapse
Thanks, I will look into that. I'd like to keep Mashmallow as a whole if possible. I think it is a good update in general.
OK, I've looked at the doze mode editor thread and I find that the descriptions of the parameters I can set to be totally confusing, however, the flowchart pointed at in that thread seems to indicate that if I set the "inactive_to" value to something like 24 hours, then all the other doze mode nonsense is unlikely to ever happen (because I'll probably turn on my phone at least once every 24 hours). Does that seem like the best way to essentially turn off doze mode?
Claghorn said:
OK, I've looked at the doze mode editor thread and I find that the descriptions of the parameters I can set to be totally confusing, however, the flowchart pointed at in that thread seems to indicate that if I set the "inactive_to" value to something like 24 hours, then all the other doze mode nonsense is unlikely to ever happen (because I'll probably turn on my phone at least once every 24 hours). Does that seem like the best way to essentially turn off doze mode?
Click to expand...
Click to collapse
I will look into this over the weekend. I find it odd that there isn't simply a switch to turn Doze off, which is a pity. It seems to me it's part of saving energy in general. A switch under Battery would do nicely. It should not be this complicated. That said, I think the UI of Marshmallow is silky smooth, much better than Lollipop. Marshmallow in general in good. It' just this that annoys me.
i'm baffled by google's aversion to end user config. This kind of b.s. is how I found xda and drove me to become a chronic flashaholic. All or nothin I guess.
ElwOOd_CbGp said:
i'm baffled by google's aversion to end user config. This kind of b.s. is how I found xda and drove me to become a chronic flashaholic. All or nothin I guess.
Click to expand...
Click to collapse
I get the feeling Google assumes the customer is a developer. A few examples:
- The Nexus 5 does have a notification light: I didn't know until I read 5 reviews and even then I couldn't find any documentation on it. Needed an external app to get it working.
- Battery indicator: I like to have small numbers indicating battery charge: it could be done by hacking KitKat and Lollipop I think. Then at Marshmallow finally there's a (hidden) switch.
- I don't recall having any user guide in the Nexus 5 package. Not that I needed one. But some landing page doing a walkthrough would have been nice. Although there are some walkthroughs in every app
Not fatal flaws, but you wonder why does it need to be that difficult. It scares people away. Not me. I handed the Nexus 5 to some friends on numerous occasions and most found it too "empty". As for me, I want all developer stuff on. So it suprised me, there is no Doze fine tuning. Again, overall I give the Nexus a 8 or 9 out of 10. It fits me. In general I like it. So it's just constructive criticism. The empty layout and raw speed of the Nexus 5 works good in development of apps afterall.
Last night I ran an adb command (generated by the doze mode editor app) to set inactive_to to 24 hours (86400000 milliseconds). I then set an alarm for the next morning in the "Alarm Clock Plus" app (which completely ceased to function after Marshmallow showed up). This morning, the alarm actually went off on time, but the big "Dismiss" button it draws on the screen was totally non-functional. I had to hit the power button to get control (which then caused a popup saying alarm clock plus was non-responsive). I have no idea what caused all that behavior, but at least the alarm actually went off.
Also, with doze mode essentially disabled (in theory anyway), the power dropped from 100% in the evening all the way down to 97% in the morning.
With the exception to facebook and game type apps, Google's apps are the only ones I find that excessively waste resourxes and need to be forced to sleep. If they would get off the constant location polling, media scanning, and logging or at least tone it down a bit some they wouldnt need to implement thier half baked versions of solutions that they hijacked from xda devs

Nexus wifi turning itself on

It doesn't matter how many times I turn the wifi off on my nexus 6, it seems something keeps turning it back on. Im not sure how long it will take to turn back on, but I will look at my phone and notice that its back on again. It also doesn't matter what wireless AP I am by.
Is there a way to see what app, or whatever, is turning it on so that when I disable wifi, it's actually disabled until I change it otherwise?
I've been having something similar, coupled with my wifi disconnecting and reconnecting in a loop every thirty seconds. I'll notice my wifi looping like this, so I'll turn wifi off, only to have it turn back on by itself within ten seconds and start looping again. Really strange. This began about two days ago out of the blue. I haven't been able to pin it down to anything.
I'm running stock 6.0.1, Jan 2016 OTA.
therealcrazy8 said:
It doesn't matter how many times I turn the wifi off on my nexus 6, it seems something keeps turning it back on. Im not sure how long it will take to turn back on, but I will look at my phone and notice that its back on again. It also doesn't matter what wireless AP I am by.
Is there a way to see what app, or whatever, is turning it on so that when I disable wifi, it's actually disabled until I change it otherwise?
Click to expand...
Click to collapse
Just wanted to follow up so you could check if this applies in your situation.
I finally found the culprit! I decided to reboot into Safe Mode to disable all third party apps and see if it still happened. When in Safe Mode the wifi was rock solid! That told me it was some app causing my problems. So I uninstalled several apps to try to narrow it down, especially those that had been updated recently and rebooted normally. It still looped the wifi.
After banging my head against the wall, I decided to go to developer options, show running processes, and see what apps were running that could be messing with the wifi. The normal apps you would expect to be running were listed, plus the MyAccount app from StraightTalk.
Why the heck would that app be running a process? I opened the ST app and looked through it's options. Low and behold was a section called wifi management. Holy crap, this could be it! I look in that section, and it was set to manage my wifi and connect and disconnect when sufficient access points are nearby. I turned that off, closed that app, and verified in Running Processes that it was indeed gone. It was, and my wifi has been solid ever since.
Stupid, stupid app!
OH MY GOD. This has been driving me nuts. Thank you so much!

Bixby routines problem

I've been using Bixby routines since I got my s10e and been loving it. However, I've been running into a problem for a while (a problem which I did not have when I started using the routines).
I've got a routine setup that switches off bluetooth, NFC, Wifi, mobile data and auto sync during the night at a set time. This allows people to still reach me in an emergency, but my battery isnt unnecesarily drained during the night with internet and notifications. However, when the set time occurs, everything switches off like it supposed to exept wifi. I have to turn Bixby routines off and on again for the full routine to work.
I've tried deleting the routine and even splitting the routine up (i.e. just wifi switch off at a set time), but nothing seems to work.
Anbody have the same problem or know of any solution?
JcNeji said:
I've been using Bixby routines since I got my s10e and been loving it. However, I've been running into a problem for a while (a problem which I did not have when I started using the routines).
I've got a routine setup that switches off bluetooth, NFC, Wifi, mobile data and auto sync during the night at a set time. This allows people to still reach me in an emergency, but my battery isnt unnecesarily drained during the night with internet and notifications. However, when the set time occurs, everything switches off like it supposed to exept wifi. I have to turn Bixby routines off and on again for the full routine to work.
I've tried deleting the routine and even splitting the routine up (i.e. just wifi switch off at a set time), but nothing seems to work.
Anbody have the same problem or know of any solution?
Click to expand...
Click to collapse
I'm using the "save battery at night" stock routine and it's shutting off all of the radios, including wifi, and they're all back on in the morning. Are you using that one or something different?
No, I use a custom routine, but the stock "save battery at night" has the same problem with me: wifi does not shut off at the set time
they are buggy. I have sort of the same thing (turns off wifi/data and auto-sync and sometimes it fails to disable auto-sync)
Mine haven't been working properly since the May firmware update
Sent from my SM-G973F using Tapatalk
Dexter_prog said:
they are buggy. I have sort of the same thing (turns off wifi/data and auto-sync and sometimes it fails to disable auto-sync)
Click to expand...
Click to collapse
I think I figured out my problem: I had two conflicting routines setup (i.e. I had a routine set up that turned off bluetooth when connected to my home wi-fi, which in turn stopped my night routine from turning wifi off).
Hope this helps somebody!
JcNeji said:
I think I figured out my problem: I had two conflicting routines setup (i.e. I had a routine set up that turned off bluetooth when connected to my home wi-fi, which in turn stopped my night routine from turning wifi off).
Hope this helps somebody!
Click to expand...
Click to collapse
It was driving me crazy...had a routine to turn off wifi when I connected my BT earbuds (to avoid the streaming interruption when leaving the house) that stopped working one day. Thanks to your solution I realized it was a new routine for turning off location when connected to my home wifi that was conflicting with the first routine. So thank you very much! Now I just need to figure out a work around for one or the other...

Categories

Resources