Automate for Android...working on Huawei? - Huawei Mate 9 Questions & Answers

Hi guys. I am trying to use Automate for Android to do some simple tasks based on location. I have set the Automate app to stay open when screen lock and to be excluded from the battery optimization via the Special Access setting. However, Automate stops working if I leave my phone for a while. I assume its because of the Android Doze feature.
Has anyone got Automate to work?

tboooe said:
Hi guys. I am trying to use Automate for Android to do some simple tasks based on location. I have set the Automate app to stay open when screen lock and to be excluded from the battery optimization via the Special Access setting. However, Automate stops working if I leave my phone for a while. I assume its because of the Android Doze feature.
Has anyone got Automate to work?
Click to expand...
Click to collapse
have you tried turning off Settings - Battery - Settings icon top right - Close excessively power-intensive apps?
It shouldn't really be power intensive... but it's huawei so you never know...
There was a bug in C432B193 (?), and firmware released at the same time for other custs, which closed apps you were using in the foreground too, turning that option off fixed it so you could just test.

ante0 said:
have you tried turning off Settings - Battery - Settings icon top right - Close excessively power-intensive apps?
Click to expand...
Click to collapse
Thank you for the reply. I've tried that as well. Seems like Automate cant be made to work reliably with Huawei. I am going to go back to Tasker to see if I have better luck.

Trigger works fine for me. Always in memory.
Sent from my MHA-L29 using XDA Labs

Related

[Q] can tasker be automated to turn off location completely?

is it possible to get tasker to automatically turn on GPS when when screen is on, and turn off GPS when the screen is off(or the device is locked)
i tried for about 2 hours yesterday and ended up giving up the most i could get it to do is just toggle the location settings
are you trying to duck NSA surveillance or increase battery life? because getting that working would accomplish neither.
Enddo said:
is it possible to get tasker to automatically turn on GPS when when screen is on, and turn off GPS when the screen is off(or the device is locked)
i tried for about 2 hours yesterday and ended up giving up
Click to expand...
Click to collapse
You will need secure settings plugin to do that, but yes, it should be possible.
I have a profile that enables GPS (active) only when I launch maps, and disables GPS (switch to battery saving mode in 4.4) when I exit maps.
In my case, disabling active GPS (i.e.. keep it in battery saving mode) helped random wakelocks from location reporting etc, Maps (navigation) is the only app that I use that needs active GPS. I don't have any other app that absolutely needs to have GPS coordinates for me.
Please use thread titles.
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
xBeerdroiDx said:
are you trying to duck NSA surveillance or increase battery life? because getting that working would accomplish neither.
Click to expand...
Click to collapse
im trying to decrease wakelocks at night while sleeping. location + google now keeps my phone up almost all night. i just want to automate this instead of having to do it manually
jj14 said:
You will need secure settings plugin to do that, but yes, it should be possible.
I have a profile that enables GPS (active) only when I launch maps, and disables GPS (switch to battery saving mode in 4.4) when I exit maps.
In my case, disabling active GPS (i.e.. keep it in battery saving mode) helped random wakelocks from location reporting etc, Maps (navigation) is the only app that I use that needs active GPS. I don't have any other app that absolutely needs to have GPS coordinates for me.
Click to expand...
Click to collapse
battery saver mode + google now keeps my phone up all night with location pings. i need to disable location completely
Enddo said:
battery saver mode + google now keeps my phone up all night with location pings. i need to disable location completely
Click to expand...
Click to collapse
If location is set to Battery saver mode, that should not cause battery life degradation. But if it is, then 'disabling GPS' is not what you want to do - you want to see how to disable location reporting entirely (exactly as what your updated title indicates).
I don't think secure settings has been updated to support that feature in 4.4 - but hopefully other forum members will have suggestions.
jj14 said:
If location is set to Battery saver mode, that should not cause battery life degradation. But if it is, then 'disabling GPS' is not what you want to do - you want to see how to disable location reporting entirely (exactly as what your updated title indicates).
I don't think secure settings has been updated to support that feature in 4.4 - but hopefully other forum members will have suggestions.
Click to expand...
Click to collapse
i dont know what to tell you then. http://forum.xda-developers.com/showthread.php?t=2551846 shows tons of people with this issue
it doesn't drain battery while my phone is on and active. but when i lock the screen at night to sleep, my phone gets hardly any deep sleep mode. i took a shower yesterday and these two services woke my device up 96 and 44 times within a 20 minute span
i have already tried disabling location reporting and location history. this did not fix anything while my device was locked. it still had hundreds of wakeups at night
and i believe you're right. i dont think secure settings works with 4.4 either this is the issue i've been running into, i believe
Enddo said:
... believe you're right. i dont think secure settings works with 4.4...
Click to expand...
Click to collapse
It does work, but you first have to install the alternative helper in settings. Then Location Services will be enabled and you can turn it on and off when you want.
Sent from my Nexus 5
PhilipTD said:
It does work, but you first have to install the alternative helper in settings. Then Location Services will be enabled and you can turn it on and off when you want.
Sent from my Nexus 5
Click to expand...
Click to collapse
im pretty sure i installed that. well, first i installed the helper, and then i installed it as a service(option at hte bottom) since i had root
Enddo said:
im pretty sure i installed that. well, first i installed the helper, and then i installed it as a service(option at hte bottom) since i had root
Click to expand...
Click to collapse
Just make sure it's the alternative one.
Sent from my Nexus 5

[App] ForceDoze - Force Doze mode after screen off, disable motion sensors, etc

Hi all,
ForceDoze allows you to forcefully enable Doze right after you turn off your screen, and on top of that, it also disables motion sensors so Doze stays active even if your device is not stationary while screen off. Doze will only deactivate periodically to execute maintenance jobs (like getting notifications, etc), otherwise it will remain fully active as long as your screen is off. This brings a lot more battery savings than standard Doze functionality, because even with screen off and Doze enabled, Doze is still periodically checking for movement, and disabling motion sensing improves battery life further.
Features:
Force enable Doze right after screen off
Disable motion sensors so Doze doesn't periodically poll the sensors to check if the device is stationary or not. This provides an additional boost to battery life
Whitelist apps so they don't get suspended or disabled when Doze mode is active
Doze battery stats: Shows you all the times your device has entered/exited Doze mode, and how much battery was available during those times. It will only work when ForceDoze service is turned on
Tasker support so you can now send com.suyashsrijan.forcedoze.DISABLE_FORCEDOZE broadcast intent to disable the ForceDoze service, or com.suyashsrijan.forcedoze.ENABLE_FORCEDOZE to enable the ForceDoze service
Tasker support for adding/removing apps from the Doze whitelist, so you can send com.suyashsrijan.forcedoze.ADD_WHITELIST broadcast intent along with packageName as the key and the package name you want to add as the value, in Extras. To remove the app from the whitelist, send the com.suyashsrijan.forcedoze.REMOVE_WHITELIST broadcast intent along with packageName as the key and the package name you want to remove as the value, in Extras. So for example, in Tasker, you can set Action as one of the intents above, and in Extras, add packageName:com.your.packagename and then save the task
Enable Doze mode on your device if your device OEM has disabled it (experimental)
No-root mode so you can use this app without root privileges (Requires you to execute an ADB command from your PC to grant it the android.permission.DUMP permission, instructions inside app and app description on Play Store)
Force Doze is a free & open-source app, so you can grab the app and the source code from:
Play Store: https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze
Play Store Beta testing: https://play.google.com/apps/testing/com.suyashsrijan.forcedoze
Latest APK (v1.4.0 rev68): https://www.androidfilehost.com/?fid=457095661767144607
Latest Beta APK: Not available right now #
Github: https://github.com/theblixguy/ForceDoze
Frequently asked questions:
Auto-rotate/brightness doesn't work after turning on the device
Please turn on Auto-rotate/brightness fix in settings and restart the ForceDoze service. If that doesn't work, turn on "Don't disable sensors on screen off" in app Settings instead
I have trouble getting push notifications from apps (ex: GMail)
Only high-priority push notifications are delivered to the app while the device is in Doze mode, normal-priority notifications (ex: from Gmail) are delivered during the Doze maintenance window or when you wake up the device. This is an OS restriction and there's nothing that can be done about it
My device doesn't turn on and I have to restart my device to fix
This is most probably being caused by disabling motion sensors, pretty common on LG devices. To fix, turn on "Don't disable sensors on screen off" in app Settings and restart the ForceDoze service
The app doesn't work properly for some reason
If you're rooted, then make sure SU requests made by the app aren't getting denied by the SU app on your phone. Your SU app will occasionally prompt you to grant or deny SU access to ForceDoze and if you deny or ignore the dialog, then the app will not work properly and will fail to do certain things, like re-enabling sensors after exiting Doze or turning off Doze properly after screen on
Please let me know if you spot any bugs or unwanted behavior, or would like me to add more features to the app!
Gotta try this!
I suppose you have already tested it before?
What are the results?
ceftriaxone said:
Gotta try this!
I suppose you have already tested it before?
What are the results?
Click to expand...
Click to collapse
I am presently running it on my Galaxy S7 Edge and I don't face any issues!
if u want to translate the app, i can help with Pt-Br <3 downloading now
I experience rotation issues after installing your app on nexus 7v2. Excited to test this
Sent from my Nexus 7 using Tapatalk
sensor re enabling
I have posted this on Reddit page..(if you didn't see the issues posted there)
app doesn't ask for su
works even without su or adb(greenify notifies me)
even after sometime screen turned on rotation and auto brightness don't work
enabling sensor service option in app , disables doze on motion
thank you
sorry for my English
Is this the same like Greenify Aggressive Doze?
xk0niR said:
Is this the same like Greenify Aggressive Doze?
Click to expand...
Click to collapse
If I'm correctly interpreting the OP, it isn't. Greenify does use the sensors, while this app isn't.
Installed it 5 minutes ago, will report back after a while of testing.
Edit: I have problems too with brightness not responding anymore, until I uncheck and turn autobrightness back on...
Sent from the Matrix
I've been using this for the past 2 days & it's been great. Reduced my idle drain rate from 3 to 4% per hr to 1.5 to 2% per hr.
Sent from my SM-G935P using Tapatalk
Can we please have a whitelist option. Would love to use this , but still get notifications from Twitter and Snapchat. Thanks!
@ssrij I'm on 1.0.7 and I cant access the Google app store. I keep getting the "check your connection" error. What do I need to whitelist? Something is not waking back up properly. Don't have this issue with Greenify aggressive Doze.
Sent from my SM-G935P using Tapatalk
Donnie Sins said:
If I'm correctly interpreting the OP, it isn't. Greenify does use the sensors, while this app isn't.
Installed it 5 minutes ago, will report back after a while of testing.
Edit: I have problems too with brightness not responding anymore, until I uncheck and turn autobrightness back on...
Sent from the Matrix
Click to expand...
Click to collapse
First, kudos for a great app. Was looking for alternative to greenify since i consider it too aggressive for me. Just wanted to inform i have the same adaptive brightness bug. Must be ticked off and on for it to work.
Sent from my D6603 using XDA-Developers mobile app
JoeFCaputo113 said:
Can we please have a whitelist option. Would love to use this , but still get notifications from Twitter and Snapchat. Thanks!
Click to expand...
Click to collapse
There is. Lol
Sent from my A0001 using Tapatalk
PINki92 said:
I experience rotation issues after installing your app on nexus 7v2. Excited to test this
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
Please download the latest APK from the main post, reset ForceDoze from app settings, go to app settings again, turn on Enable Auto-rotate/brightness fix, turn on ForceDoze service and see if it fixes the issue
ajeesh vijayan said:
I have posted this on Reddit page..(if you didn't see the issues posted there)
app doesn't ask for su
works even without su or adb(greenify notifies me)
even after sometime screen turned on rotation and auto brightness don't work
enabling sensor service option in app , disables doze on motion
thank you
sorry for my English
Click to expand...
Click to collapse
Please download the latest APK from the main post, reset ForceDoze from app settings, go to app settings again, turn on Enable Auto-rotate/brightness fix, turn on ForceDoze service and see if it fixes the issue
xk0niR said:
Is this the same like Greenify Aggressive Doze?
Click to expand...
Click to collapse
Donnie Sins said:
If I'm correctly interpreting the OP, it isn't. Greenify does use the sensors, while this app isn't.
Installed it 5 minutes ago, will report back after a while of testing.
Edit: I have problems too with brightness not responding anymore, until I uncheck and turn autobrightness back on...
Sent from the Matrix
Click to expand...
Click to collapse
Please download the latest APK from the main post, reset ForceDoze from app settings, go to app settings again, turn on Enable Auto-rotate/brightness fix, turn on ForceDoze service and see if it fixes the issue
JoeFCaputo113 said:
Can we please have a whitelist option. Would love to use this , but still get notifications from Twitter and Snapchat. Thanks!
Click to expand...
Click to collapse
It's there, go to Menu > Settings > Whitelist apps
YYvo said:
First, kudos for a great app. Was looking for alternative to greenify since i consider it too aggressive for me. Just wanted to inform i have the same adaptive brightness bug. Must be ticked off and on for it to work.
Sent from my D6603 using XDA-Developers mobile app
Click to expand...
Click to collapse
Please download the latest APK from the main post, reset ForceDoze from app settings, go to app settings again, turn on Enable Auto-rotate/brightness fix, turn on ForceDoze service and see if it fixes the issue
optimummind said:
@ssrij I'm on 1.0.7 and I cant access the Google app store. I keep getting the "check your connection" error. What do I need to whitelist? Something is not waking back up properly. Don't have this issue with Greenify aggressive Doze.
Sent from my SM-G935P using Tapatalk
Click to expand...
Click to collapse
I don't think whitelisting Play Store will work, but you can try adding com.android.vending to the app whitelist. I don't know why that happens, try clearing Play Store cache or force stopping it, and make sure your internet connection is active and working, that could also be a reason why
@ssrij I downloaded & installed the 1.0.8 apk. When I open the app, it says 1.0.7.
Do you know when a scrolling list of whitelist apps will be available?
Sent from my SM-G925P using Tapatalk
optimummind said:
@ssrij I downloaded & installed the 1.0.8 apk. When I open the app, it says 1.0.7.
Do you know when a scrolling list of whitelist apps will be available?
Sent from my SM-G925P using Tapatalk
Click to expand...
Click to collapse
I have updated the link, try again now and follow the same steps.
It will be available in next version (1.0.9)
everything fine now .. but
latest build works great..
but still I don't understand.. app didn't request su (fresh installed latest build), I didn't grant dump
but still everything works...
ssrij said:
Please let me know if you spot any bugs or unwanted behavior, or would like me to add more features to the app!
Click to expand...
Click to collapse
Great idea !
But you should take some time to answer those questions about Greenify (difference, are they complementary or we should keep only one..), because we are used to it...

Explanation of Nougat Battery Consumption and Workarounds for Better Battery Life

Hello guys. This topic is pretty long and it is hard to read all of it but try to read all of it till end.
Well, let me begin. The main problem of the nougat update is the dramatic increase of battery consumption (for me at least) But why this is happening?
Actually this is a matter of battery managers. Huawei had created a great phone but obviously they messed things up in the software side. Google announced "Doze" feature with Marshmallow. If we could have a brief explanation of "what doze is" is it is basically a battery protection policy created by google. In Android, apps have the ability to use what’s called a “wakelock” to prevent your phone from going into a power-saving deep sleep mode. This deep sleep mode usually kicks in when your phone’s screen is off, but that can get in the way of how some apps work. For example, if you’re using a fitness tracker, you don’t want your phone turning off GPS or your accelerometer just because your phone is in your pocket with the screen turned off.
In principle, this is a good concept. Apps keep your phone awake and working when they need to, and let it sleep when they don’t. This is a problem, though, when every developer thinks their app is important enough to keep your phone on all the time. That’s why apps like Facebook kill your battery, even when you’re not using them.
Doze helps solve this problem by periodically blocking wakelocks and shutting off network access if your phone goes unused for a while. It will then periodically allow apps to check in during “maintenance windows” every so often (these windows occur less frequently the longer you don’t use your device). Here is a graphical explanation of how doze works versus time:
http://itresan.com/wp-content/uploads/2016/05/doze-header.jpg
Doze helps solve this problem by periodically blocking wakelocks and shutting off network access if your phone goes unused for a while. It will then periodically allow apps to check in during “maintenance windows” every so often (these windows occur less frequently the longer you don’t use your device)
If we turn back to the main topic, as I mentioned before, Huawei has some difficulties combining it's own features with google's. Huawei has its own battery manager. That's why you are not receiving some notifications from facebook or whatsapp. That is because that freaking battery manager shuts everything off but still, since it has a very poor approach, the system drains battery. It is basically a matter of doze does not kicking in. As you can see, the battery usage when the screen is turned on is about the same. However, the same thing cannot be seem when the screen is off.
So what to do in order to save some juice?
-There is some workarounds for doze kicking in like these ones:
https://play.google.com/store/apps/details?id=com.yirgalab.dzzz
https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze
These two apps have different approaches. I prefer ForceDoze as it seems the google's intended way.
I want to highlight this item because this might be the most important thing in this topic. If you don’t do anything with your phone, Doze will still do its job. It runs almost invisibly in the background. Occasionally you’ll get a few messages at once, rather than spread over a few minutes, but for the most part there’s no noticeable change. In other words this is a bit different from the conventional full deep sleep and you do not have to afraid from doze as you do with the full deep sleep.
-DO NOT CLEAN YOUR RAM TOO OFTEN. This will cause closed apps re-open and hence, more cpu usage.
-No! Cleaners, Task managers and other stuff does not work! As I mention before, they even lead more battery consumptions.
-Huawei has poor google service implementations. Even one or two implementation has some bugs that causing battery drain(for example: google backup). Try to turn them off.
-Know when to reboot your phone. Too frequent reboots may do the same thing as you cleaning your ram. However, rebooting cleans app caches so the system will work smoother. Once a week or two weeks is fine I suppose.
Please hit the "Thanks" button if you like and please point out the missing things and if you see a mistake please warn me for correcting it. I hope you liked the topic.
Have a nice day!
Doze is problem for me. I don't have push notification by the night.
darrr1 said:
Doze is problem for me. I don't have push notification by the night.
Click to expand...
Click to collapse
It's probably not because of the doze but the huawei's power manager itself.
Problem starts when phone is not active longer than 2-3 hours. In root I removed phone manager and it did not help fix the push notification problem
darrr1 said:
Problem starts when phone is not active longer than 2-3 hours. In root I removed phone manager and it did not help fix the push notification problem
Click to expand...
Click to collapse
Assuming that you are on huawei release (not los releases), untick your app from close apps after screen lock. Then go to apps, settings, special access, and make the system ignore battery optimizations for the spesific app you want to get notification from.
I did everything what I can without succes.
furkey said:
Assuming that you are on huawei release (not los releases), untick your app from close apps after screen lock. Then go to apps, settings, special access, and make the system ignore battery optimizations for the spesific app you want to get notification from.
Click to expand...
Click to collapse
first thanks for this tip. i hate it that i dont receive whatsapp messenges all the time, i hope it will work now.
BTP:
I assume huawei did not remove "doze" from our firmware, but maybe they replaced it with theire own battery manager?
Is there a complete source for doze, so we can check if everything is there? If yes it should not be that hard to activate doze and deactivate the huawei one.
But i guess we need at least the kernel sources to clear things up?
xtcislove said:
first thanks for this tip. i hate it that i dont receive whatsapp messenges all the time, i hope it will work now.
BTP:
I assume huawei did not remove "doze" from our firmware, but maybe they replaced it with theire own battery manager?
Is there a complete source for doze, so we can check if everything is there? If yes it should not be that hard to activate doze and deactivate the huawei one.
But i guess we need at least the kernel sources to clear things up?
Click to expand...
Click to collapse
Doze is not on kernel level but it is on software level. Programmatically we can activate what is left from doze or at least simulate it. However, if there is a certain need for doze we should cook a whole new rom and yes, it requires open source too.
But, let's clear a thing here: Huawei did not completely removed doze. Actually, I think they can't do that if they wish to use Android. Just some settings of Huawei conflicts with doze and prevent its functioning.
I'm using the honor 9 with emui 5.1 (android 7.0) and screebl (app used to control how and when screen locks/times out) is constantly getting killed. I have added it to ignore(=allow to run) in battery optimization and it's activated as a device administrator. It is not selected to close (power intensive app prompt) or instructed to close when screen goes off. Yet it repeatedly is getting killed - is there something else I need to do? I can't seem to find anything else I can do to stop it from being killed and it's a major nuisance.
antimatter.web said:
I'm using the honor 9 with emui 5.1 (android 7.0) and screebl (app used to control how and when screen locks/times out) is constantly getting killed. I have added it to ignore(=allow to run) in battery optimization and it's activated as a device administrator. It is not selected to close (power intensive app prompt) or instructed to close when screen goes off. Yet it repeatedly is getting killed - is there something else I need to do? I can't seem to find anything else I can do to stop it from being killed and it's a major nuisance.
Click to expand...
Click to collapse
Could you finally solve this?
I also have and Honor 9, and have the same problem with aplicacition radardroid. Is getting killed, and also have all configured to prevent this...
Try by having both in the Settings
-Battery/Close apps after lock screen (uncheck in the list)
-Apps/Settings gear/Special access/Ignore battery optimization (make it allowed)
Thank szgfg,
Both are already well configured, but still closing the app.
mikicl said:
Thank szgfg,
Both are already well configured, but still closing the app.
Click to expand...
Click to collapse
Check also is not being closed by the automatic cleanup (so add it to clean whitelisted apps) and that is not being closed due to high consumption...disable that on battery settings... Let the advertisement but do not let phone administrator close that apps automatically
Enviado desde mi EVA-L09 mediante Tapatalk
Hi jcalderonv74,
Thanks for your answer. I didn't know about the clean whitelisted apps, was a surprise to find it. But unfortunetly, everything was well configured.
Option to avoid being closed due to high consumption was already OK.
So nothing to change, everything was as it has to be. Seems more a software problem in EMUI 5.0
After some days without touching anything in the phone's configuration, finally observed that everything is working fine. All aplications configured keep opened, and it's only Radardroid aplication that sometimes closes alone (only sporadically after a recent update)
Seems more an error in Radardroid aplication that in telephone's software. So I'm not worring more about that.

Running apps being killed

As the title suggests, I keep finding apps that I'm using being killed, things like Google Music, tTorrent, and Sleep as Android all being closed while in use. I have selected "Don't Optimise" in the battery settings and "Advanced Optimization" is off.
Any ideas how I can stop this from happening?
Sent from my ONEPLUS A6003 using Tapatalk
steslatt said:
As the title suggests, I keep finding apps that I'm using being killed, things like Google Music, tTorrent, and Sleep as Android all being closed while in use. I have selected "Don't Optimise" in the battery settings and "Advanced Optimization" is off.
Any ideas how I can stop this from happening?
Click to expand...
Click to collapse
I had the very similar problem with tasker, it used to turn off because of something that I didn't knew, later after selecting don't optimise in the battery settings the Tasker remain in the background and it worked as it should be working.
Did you turned on anything in developer settings that limits the background activity?
mjp93 said:
I had the very similar problem with tasker, it used to turn off because of something that I didn't knew, later after selecting don't optimise in the battery settings the Tasker remain in the background and it worked as it should be working.
Did you turned on anything in developer settings that limits the background activity?
Click to expand...
Click to collapse
No I've not touched developer settings. I've noticed that the "don't optimize" setting keeps flipping back to optimise, that's probably why it's being killed all the time.
Another thing I've noticed, Google play music doesn't show in the list of apps under battery optimization so I can't even switch that off.
Sent from my ONEPLUS A6003 using Tapatalk
steslatt said:
No I've not touched developer settings. I've noticed that the "don't optimize" setting keeps flipping back to optimise, that's probably why it's being killed all the time.
Another thing I've noticed, Google play music doesn't show in the list of apps under battery optimization so I can't even switch that off.
Click to expand...
Click to collapse
Weird settings should not revert on its own. I just checked mine and they are staying on what I had selected.
I am out of answers, I hope other members will help you out.
Same Thing here my Ring doorbell keep shutting itself off in deep sleep and won't give notifications

How can I stop apps from being killed by doze?

Hello,
I have a GPS mock location app that keeps getting killed by doze and I want it to run until I stop it myself. I have excluded it from restrictions and battery optimization in settings but it keeps getting killed after a few minutes the screen goes off. I also have NapTime installed but I don’t know how to whitelist it there. If I can whitelist it there does anybody know how to?
Is Naptime causing it to be killed or that’s just oxygen OS ? In my nougat Samsung the app kept running until I stopped it myself.
Just remove them from being optimized.... Battery>battery optimization>then show all apps and tap on what you don't want killed and tap do not optimized
jamesfitzes said:
Hello,
I have a GPS mock location app that keeps getting killed by doze and I want it to run until I stop it myself. I have excluded it from restrictions and battery optimization in settings but it keeps getting killed after a few minutes the screen goes off. I also have NapTime installed but I don’t know how to whitelist it there. If I can whitelist it there does anybody know how to?
Is Naptime causing it to be killed or that’s just oxygen OS ? In my nougat Samsung the app kept running until I stopped it myself.
Click to expand...
Click to collapse
Open the app then go multitasking. Press the 3 dot on top and lock the app so it will always stay open. I Attached a pic so u can see
eduardmc said:
Open the app then go multitasking. Press the 3 dot on top and lock the app so it will always stay open. I Attached a pic so u can see
Click to expand...
Click to collapse
This works, thanks for the tip.
jamesfitzes said:
This works, thanks for the tip.
Click to expand...
Click to collapse
Np. Thats why we are here for
BTW do you know any battery efficient app for this? I am using Hola Fake GPS but it's killing my battery real hard

Categories

Resources