How do I get "lock screen cleanup" to respect exclusions? - Huawei P10 Questions & Answers

I have tried everything I can find in the settings but apps that are excluded from "lock screen cleanup" are still closed.
I have locked them in the recent apps panel, I allow them to use background data, data saver is disabled, but regardless, the apps are always killed by locking the screen. I thought this aggressive battery behavior was supposed to be fixed in EMUI 5.

I am suffering with the same problem on my P10 where background processes are killed after locking the screen despite having set them not to close the app and its service are killed sometimes when the screen locks. Android 7.0 EMUI 5.1 VTR-L29C432B151
Is there any solution for this? - I use a Zoiper for SIP calls and it is being stopped and I am missing calls

Turning off the close option in Lock screen clean up did not make any difference but, I did see in settings -> Battery -> "Settings Gear" an option to 'Close excessively power-intensive apps' and turned it off - but not tested it long enough to see if it fixes the problem.
----- did not work

Yes, same here - missing notification from Ring doorbell, missing updates from Tile and Life360 and Withings watch not synchronising automatically... Annoying behaviour.

Ok, tried something today and so far apps aren't closing - even after a few hours. Open Settings | Apps and click the settings at the bottom. Tap Special Access | Ignore battery optimisation... Select the apps you want to keep alive by switching to "Allowed".
I also have Battery | Lockscreen Cleanup disabled for all apps and the "Close excessively power-intensive apps" option unchecked.

freitasm said:
Ok, tried something today and so far apps aren't closing - even after a few hours. Open Settings | Apps and click the settings at the bottom. Tap Special Access | Ignore battery optimisation... Select the apps you want to keep alive by switching to "Allowed"..
Click to expand...
Click to collapse
When I do that I only get a list of a few Apps, the ones I want to keep running are not included - Is there a way to add them to this list?

Tap the arrow to show Allowed or All.

Sorry for the false alarm folks. Overnight all apps were closed again, regardless of the "Ignore policy" setting...

freitasm said:
Sorry for the false alarm folks. Overnight all apps were closed again, regardless of the "Ignore policy" setting...
Click to expand...
Click to collapse
At first I thought it was working, but eventually all the apps that I needed running always were terminated and had to be restarted manually.

This bug is so incredibly annoying, is it by chance fixed in VTR-L29C432B164 - I am getting so fed up with this phone killing services that I rely on to be running all the time - I don't care if they consume more power, I just need them to keep running.

I have the same issue on P10 Lite WAS-LX1AC423B171 this is the latest firmware I could install. Driving me mental!!!!

Related

[GUIDE][CM9/CM10] Battery Optimization

Some of this advice is based upon our current understanding of bugs in CM9 and how to best workaround causes of battery drain until the developers are able to fix their causes. If you have suggestions for further improve this guide, please reply.
Power Saving Options
Google Talk is logged in by default.
You probably did not want this? Go into the Talk app, hit Menu button and Sign Out.
Turn off haptic feedback and touch sounds
By default the phone vibrates when you touch menu options or type on the onscreen keyboard. Vibration uses a lot of power. Sounds when you touch the screen also use a little power.
- Settings > Sound > scroll down to System
Dial pad touch tones - many users like it, others turn it off so it is silent when dialing the phone to avoid bothering other people.
Touch sounds - default touch sound is very subtle so many choose to keep it. You can save a little power if you turn it off
Screen lock sound - also subtle, I personally keep it.
Vibrate on touch - strongly recommend to turn this off if you want to maximize battery life.
- Settings > Language & input > Android keyboard > toggles to the right of it
Vibrate on keypress - turn this off to maximize battery.
Alternatively, you can make the vibration much smaller in Advanced settings near the bottom. Keypress vibration duration settings of 5ms is nice. It is a tiny reaction you can feel from pressing an onscreen keyboard button.
Turn off LED Notifications
- Settings > Display > Pulse notification light
Blinking LED notifications are nice. Unfortunately, the Epic CPU is unable to sleep while blinking the LED because it relies on software timers. For this reason, it is strongly recommended that you turn off LED notifications entirely if you wish to maximize battery life. As measured by CPU Spy, maximum CPU deep sleep can jump from 65% to over 95% with this option turned off. You can still hear the notification chime and vibration when you have an incoming message.
- Settings > Display > Pulse low battery light
You may also want to turn this off for the same reason. If you do not, the battery will drain even faster when the battery is already low.
Put Wifi to Sleep while phone is sleeping
- Settings > Wifi (touch the icon on the left) > Menu button > Advanced > Keep Wi-fi on during sleep
Strongly recommended to choose Only when plugged in. The behavior of this option is different from Gingerbread. Rather than turning off the wifi, CM9 instead seems to put it into a semi-sleep state. Data is turned off, but it can recover very quickly when needed. If you want Wifi to turn off entirely, Juice Defender Plus or Ultimate edition is capable of controlling Wifi sleep states while the screen is off. It is uncertain if Juice Defender disabled Wifi really uses less power than semi-sleeping Wifi as set by CM9.
No Signal? Use Airplane mode
- Settings > Battery > Cell standby
If your Time without signal is a high percentage, then your phone's radio is using extra power trying to find a cell tower that does not exist. If you are in rural areas with weak or no cell signal, your phone uses significantly more power as it tries to find a cell tower. Enable airplane mode in order to conserve your battery until you return to civilization.
Turn off Facebook Notifications and Background Data
In the Facebook app, hit Menu > Settings. Uncheck Notifications, and it also turns off background data refresh. This allows Facebook to fully close instead of always running in the background draining your battery and using some previous RAM.
If you want Facebook and its background service to die completely, use this procedure.
- Settings > Developer options > Kill app back button > Enable
From now on, when you are done using Facebook, hold down the Back button. This will completely kill Facebook until you run it again.
Turn off Data and Sync when you do not need it.
Different types of users
Why should your phone be busy while the screen is off?
Juice Defender - understanding the benefits and drawbacks
Reduce the number of applications that start automatically.
Apps you install will sometimes (and in most cases) have triggering events to start those applications in the background when certain events are triggered. In most cases, it is safe to disable that app from automatically triggering and instead launch that app when you want it as you normally would. By reducing the starting of applications, I have found that I also save battery because, well, my phone is doing less work and less work equals more battery.
I have seen some apps autostart even though you have disabled autostart events for that app (unclear yet why that's happening). If you find that is the case, and you want to stop it from running, try moving that app to the SD card using a program such as DroidSail along with disabling events. Why? Apps on SD cards at present do not receive the on_boot_complete event. Please note, this may break some functionality such as widgets.
In order to decide what to disable, you need to understand how you will use the app and whether you need it to run in the background. You can use an app such as Autostarts to control the startup on Android (At the writing of this it costs $1.03 USD).
When selecting apps to disable autostarting in Autostarts, stay clear of ones highlighted in Yellow as they are system apps.
- Look for these key events:
After Startup
Connectivity Changed
Other events can also be disabled but remember, by disabling events that start apps, you can be breaking the functionality that the app gives you. For example, disabling ‘after startup’ on an app such as AdAway will render the webserver that runs as part of that application to not run on boot. Be smart, but disable what makes sense.
If something doesn’t work right and you are not sure what you disabled for that app, simply uninstall it and reinstall it.
Stop syncing things that you don’t use regularly.
You can always manually sync them when you need them.
Access the menu here: Menu -> System Settings -> Accounts and Sync
For example, I use Gmail, Google Contacts, Google Calendar, and Google Browser regularly so I let that sync. I disable Google Currents, Google Docs, and Google Chrome Beta because I rarely use them. When I want to use them (once every couple weeks), I start the app and sync them manually.
Source: Cyanogenmod Epic 4G
Great guide ... congrats to Original Poster: wtogami
THANK YOU!
Re: [GUIDE][CM9] Battery Optimization
Finally, someone with a little bit of sense, even on the N4 I use most of those tips and get 2 days of battery with moderate use.
Enviado desde mi Nexus 4 usando Tapatalk
Very good man. Thank you.
What about Greenify?
underskyzx said:
What about Greenify?
Click to expand...
Click to collapse
I have been using it from a month, but I have not noticed any improvement or usefulness with Greenify
sekhar13515 said:
I have been using it from a month, but I have not noticed any improvement or usefulness with Greenify
Click to expand...
Click to collapse
Here it seems to do miracles, lots of persistent services that refuse to close (e.g Poweramp in my case) are automatically hibernated with Greenify.

Anyone else missing gmail notifications unless screen is on?

I have no power saving settings on like aggressive doze or close high powered apps.
Ill just let my 3T's screen turn off and send an email to my gmail account from my work email. I will not get a notification unless I turn on the screen.
Yes, I have this issue only with Gmail, Oxygen 4.0.2.
Same here.
It happens with WhatsApp as well but I hadn't had time to troubleshoot it.
worldsoutro said:
I have no power saving settings on like aggressive doze or close high powered apps.
Ill just let my 3T's screen turn off and send an email to my gmail account from my work email. I will not get a notification unless I turn on the screen.
Click to expand...
Click to collapse
Rated R said:
Yes, I have this issue only with Gmail, Oxygen 4.0.2.
Click to expand...
Click to collapse
Gmail/Inbox use normal priority notifications as opposed to high priority, therefore will never bypass Doze. For some odd reason however, selecting Do Not Optimize makes no difference. This issue is not specific to the 3T.
I have noticed this too with whatsapp i can't remember if it started happening on 4.0.2 or when i flashed a different kernel, probably 4.0.2 related
I have exactly the same issue ... mostly with gmail and possibly with other apps like Whatsapp (I need to use my phone more to be sure) but surely and deeply with gmail.
Sometimes I receive push notifications on my OnePlus3T (running OOS 4.0.2 and unrooted) flawlessly, sometimes it takes a delay from one minutes to several, sometimes I need to wake up my phone (with the Jedi move of waving my hand over the proximity sensor) and sometimes I need to open the gmail app and force the update with a slide.
I think I also notice a random delay for the notification even if the screen is on and the phone in use, which seems to exculpate the doze mode but I'm not 100% sure and it is much more rare.
This is really annoying to me as I didn't have this issue with my old Nexus 5 and which I don't have on my work iPhone. I try to convince myself that it is not a big deal but it's not easy ^^.
I tried to contact Google on this but they weren't helpful on that matter.
23Six said:
Gmail/Inbox use normal priority notifications as opposed to high priority, therefore will never bypass Doze. For some odd reason however, selecting Do Not Optimize makes no difference. This issue is not specific to the 3T.
Click to expand...
Click to collapse
There a 120 pages post on the OnePlus forum about this issue on the OnePlus 3, even before OOS 4.
Can you tell me where is the "Do Not Optimize" option you're talking about (despite it is not working, strangely) thanks !
if you are ready to sacrifice a little bit of battery life, you can turn off Doze. You would need to do that in 2 places.
1. Settings -> Battery -> Three dots top right -> Aggressive doze and app hibernation -> Turn off
2. Settings -> About Phone -> Keep taping Build Number until phone marks you as a developer -> Go back one screen -> Developer Options -> Doze mode -> Turn off
I hope this helps.
23Six said:
Gmail/Inbox use normal priority notifications as opposed to high priority, therefore will never bypass Doze. For some odd reason however, selecting Do Not Optimize makes no difference. This issue is not specific to the 3T.
Click to expand...
Click to collapse
jasleen_ss said:
if you are ready to sacrifice a little bit of battery life, you can turn off Doze. You would need to do that in 2 places.
1. Settings -> Battery -> Three dots top right -> Aggressive doze and app hibernation -> Turn off
2. Settings -> About Phone -> Keep taping Build Number until phone marks you as a developer -> Go back one screen -> Developer Options -> Doze mode -> Turn off
I hope this helps.
Click to expand...
Click to collapse
Thanks for the tip.
I will give it a try but read on the OnePlus forum that it was not really a game changer.
I hope people working on Android know about this "feature" and will correct it soon if it has an impact on all Android N users !
I have that same issue.
Everything was working for me perfectly then all of sudden. Notification for Gmail Google plus and WhatsApp stops working no matter I am on mobile network or WiFi.
It work only when I open the app
I am on RR Rom
The easiest fix I found for my work email (Nine), which wasn't getting timely push notifications... was to just turn off battery optimization for this app. That made it perfect and instant notifications again. Presumably it uses more battery in this mode, but I still need it.
dusktrader said:
The easiest fix I found for my work email (Nine), which wasn't getting timely push notifications... was to just turn off battery optimization for this app. That made it perfect and instant notifications again. Presumably it uses more battery in this mode, but I still need it.
Click to expand...
Click to collapse
How exactly does one turn off optimization? I can't find that option. Thanks
Sent from my ONEPLUS A3000 using Tapatalk
I guess this is issue with number of handsets, I am facing this issue in my leeco LE 2 as well. Thinking of upgrading to op3t just for this issue but found this thread, what a bummer.
Sent from my Le X526 using Tapatalk
jaliscojorge said:
How exactly does one turn off optimization? I can't find that option. Thanks
Click to expand...
Click to collapse
It's kindof hidden:
Go to Settings-> Battery-> 3 dots in upper right
Then in Battery Optimization section, select 'All apps' from the pulldown selector at top.
Then find your app and change it to 'not optimized'
dusktrader said:
It's kindof hidden:
Go to Settings-> Battery-> 3 dots in upper right
Then in Battery Optimization section, select 'All apps' from the pulldown selector at top.
Then find your app and change it to 'not optimized'
Click to expand...
Click to collapse
Yes it was kind of like an easter egg but I found it. Notifications are coming in on time so far I hope that's fixed the problem. Thank you
Sent from my ONEPLUS A3000 using Tapatalk
dusktrader said:
It's kindof hidden:
Go to Settings-> Battery-> 3 dots in upper right
Then in Battery Optimization section, select 'All apps' from the pulldown selector at top.
Then find your app and change it to 'not optimized'
Click to expand...
Click to collapse
I dont find Gmail in the listed app?
In the Battery Menu/3 dots I don't have a Battery Optimisation Section but 2 settings (with my own translation from French to English, sorry about that) :
- apps hibernation & doze
- greedy application management
In the first option, there's a selector to activate or not the Apps hibernation & aggressive doze --> I disabled the option (and one can choose the app to optimize or not, but gmail is not on the list)
In the second option, I have a selector to allow to shutdown automatically "greedy" apps --> I disabled the option
However, in the Applications menu, while choosing the wheel then the Special Access Menu, there's an option for "Battery Optimisation" in which one can choose - one by one - the Apps that are optimised or not.
Anyway, for me, disabling the Doze mode in the Developper options seems to solve the problem with Gmail but i still have issues with delayed/lost notifications for other Apps (Twitter, Le Monde, ...).
And I'm running 4.0.3
serafko said:
I dont find Gmail in the listed app?
Click to expand...
Click to collapse
That's weird, I do have Gmail listed in mine. Make sure you set it to show all apps.
Also, I haven't done anything unusual with Gmail, like converted it to a system app, for example. It was flashed as part of Gapps Micro.
FI, just posted a bug report on that issue : https://forums.oneplus.net/threads/random-delay-with-push-notificatio-ns.500958/

Background app GPS recorder getting killed, howto keep it running?

Hi
My P20Pro has latest firmware and I did set battery to manage the apps manually and keep them running in background, power saving mode is off.
But it does not change anything.
e.g. app Mapillary, which takes a picture every second, is killed after 20 sec
or oruxmaps to record a gps track, is killed after 1 min max, no gps track on device.
Anyone knows a way howto run a gps logger in background all the time without the need to keep the display on with this "no display off" apps?
echelon
echeloni2p said:
Hi
My P20Pro has latest firmware and I did set battery to manage the apps manually and keep them running in background, power saving mode is off.
But it does not change anything.
e.g. app Mapillary, which takes a picture every second, is killed after 20 sec
or oruxmaps to record a gps track, is killed after 1 min max, no gps track on device.
Anyone knows a way howto run a gps logger in background all the time without the need to keep the display on with this "no display off" apps?
echelon
Click to expand...
Click to collapse
Having similar issue with Strava tracker. Latest EMUI version 8.1.0.131.
Tracking is killed after aprox 3 km of bike ride and it's unable to use tracking app. Not sure what is reason but I suspect Huawei to be killing that app without proper reason.
Already tried all settings, nothing helped yet
--
Edit: I found one setting which looks promising: Settings > Apps & Notifications > Apps > Settings (bottom menu) > Special Access > Ignore Battery optimizations > STRAVA (Or your tracking app) > "Allow"
Going to test this setting tomorrow.

Question [Origin OS Ocean] How to get push notification from various apps (like social and messaging)

Like the title say, I'm in trouble getting the notification of any app I install : I disabled vivo.pem as suggested in one other thread and allow notofication per single app (that were turned off before) and last disabled the background battery optimization for those apps.
No luck after all, as nothing show up when I send whatsapp mess e.g.
Any ideas?
(Latest Origin firmware)
PassingComplexion said:
Like the title say, I'm in trouble getting the notification of any app I install : I disabled vivo.pem as suggested in one other thread and allow notofication per single app (that were turned off before) and last disabled the background battery optimization for those apps.
No luck after all, as nothing show up when I send whatsapp mess e.g.
Any ideas?
(Latest Origin firmware)
Click to expand...
Click to collapse
I had to use the uninstall command on vivo.pem to get my notifications to work, disable didn't help me on the latest firmware.
Also, check the app permissions, hold down app, info, app permissions.
Turn off (remove permissions if app isn't used)
Single permission settings (turn all on the switches), you can also review permissions
Go back 2 screens and select notifications, select all sliders and then check your desired app notification is going out via priority display.
Finally go to settings, battery, background power consumption management, and change the setting for the app you want to not sleep by choosing high background power usage.
So annoying, I know, too many settings and easy to forget one
Good luck!
DJorgio said:
I had to use the uninstall command on vivo.pem to get my notifications to work, disable didn't help me on the latest firmware.
Also, check the app permissions, hold down app, info, app permissions.
Turn off (remove permissions if app isn't used)
Single permission settings (turn all on the switches), you can also review permissions
Go back 2 screens and select notifications, select all sliders and then check your desired app notification is going out via priority display.
Finally go to settings, battery, background power consumption management, and change the setting for the app you want to not sleep by choosing high background power usage.
So annoying, I know, too many settings and easy to forget one
Good luck!
Click to expand...
Click to collapse
Thanks for the time spent in the long answer; however still no notifications on the tested app (whatsaap) with all the reccomended settings.
Is since 2015 I think that I don't have a chinese firmware phone and the things have changed, in fact, before, was enough to install play store and all the notification were received without further settings.
DJorgio said:
I had to use the uninstall command on vivo.pem to get my notifications to work, disable didn't help me on the latest firmware.
Also, check the app permissions, hold down app, info, app permissions.
Turn off (remove permissions if app isn't used)
Single permission settings (turn all on the switches), you can also review permissions
Go back 2 screens and select notifications, select all sliders and then check your desired app notification is going out via priority display.
Finally go to settings, battery, background power consumption management, and change the setting for the app you want to not sleep by choosing high background power usage.
So annoying, I know, too many settings and easy to forget one
Good luck!
Click to expand...
Click to collapse
Hey Guys,
i also did every setting as told and my Notification for especially WhatsApp isn't working at all.
Sometimes it does, but then all of a sudden it just refreshes when I open the App itself.
I even put it down in the Bar with the 5 Main Apps, in hope those would be refreshed or kept alive in the Background.
Not sure anyway what you mean with uninstalling vivo.pem.
Suckz kind of, because apart from that it really is a great Phone... aside from Android Auto not working.
F4ISR said:
Hey Guys,
i also did every setting as told and my Notification for especially WhatsApp isn't working at all.
Sometimes it does, but then all of a sudden it just refreshes when I open the App itself.
I even put it down in the Bar with the 5 Main Apps, in hope those would be refreshed or kept alive in the Background.
Not sure anyway what you mean with uninstalling vivo.pem.
Suckz kind of, because apart from that it really is a great Phone... aside from Android Auto not working.
Click to expand...
Click to collapse
You have to plug in phone on computerand run ADB command to uninstall vivo.pem.
Vivo.pem is a system that aggressively shut down apps to save battery power, to much shut downs and notifications stop working.
Check the thread "Origin Os initail review" on here and you will find out how to do it. Takes only 10 minutes
Robsjo said:
You have to plug in phone on computerand run ADB command to uninstall vivo.pem.
Vivo.pem is a system that aggressively shut down apps to save battery power, to much shut downs and notifications stop working.
Check the thread "Origin Os initail review" on here and you will find out how to do it. Takes only 10 minutes
Click to expand...
Click to collapse
Just did that, thanks for the advice, much appreciated
F4ISR said:
Just did that, thanks for the advice, much appreciated
Click to expand...
Click to collapse
After doing the uninstalling did it stop the issue?
I uninstalled, rather than disabled, their power saving vivo.pem, ensured all my apps had priority permissions for notifications, disabled battery saving, and added them to 'autostart' in their respective permissions, and I get proper notifications for all the social media and messaging apps. The only small glitch come with Google Messages which won't display notifications in system wide dark mode. You can get around that by enabling the 'chat bubbles' option in Google Messages settings as they do work in dark mode.
Notifications are not the only issue , i cannot select Mock gps location app in Developer Mode ...
I press on the app i want to use ,but nothing happend , the app is not selected .
Anyone noticed that too ?
Thanks
There is no need to uninstall vivo.pem, I think. Just some few steps:
1. Go to recent apps and lock it.
2. Settings -> Apps & permissions -> App manager -> WhatsApp -> Permissions -> Single permission settings -> Autostart and Startup enabled.
3. Settings -> Battery -> Background power consumption management -> WhatsApp -> Select high background power usage.
4. Settings -> Battery -> More settings -> Disable Sleep mode.
Works fine for me.
Do you use Whatssup? after the latest OS update it cannot connect to linked devices

Question Screen turns on by itself?

The Phone would be off on the table and the screen suddenly turns on for no reason, I have all automatic screen wake features off (raise to wake, notifications, etc) which I find quite bizarre.
I have looked it up on reddit and google and it doesn't seem a common problem at all.
it's surely a software issue since the device never locks itself while being used so the button cannot be defective.
Does anyone have this issue as well?
I don't have this problem, it sleeps like a baby )
I'm sure you also noticed significant battery drain while on standby because something prevents it from going to deep sleep...
What I recommend is to:
- disable auto launch for all the applications that you don't want notifications from.
go to Settings - Apps - Auto launch and disable as many as you can (I only have whatsapp enabled)
- disable system apps you don't use (check my screenshot for reference)
- Apps - Display over other apps - and set them on not allowed.
wizard8400 said:
What I recommend is to:
- disable auto launch for all the applications that you don't want notifications from.
go to Settings - Apps - Auto launch and disable as many as you can (I only have whatsapp enabled)
- disable system apps you don't use (check my screenshot for reference)
- Apps - Display over other apps - and set them on not allowed.
Click to expand...
Click to collapse
I barely have any apps with these permissions.
I heard that changing animation scale in developer options can lead to this problem in some phones? I'm not sure but I'm testing that too.
the problem is that it doesn't always happen, sometimes a whole day passes and nothing happens, and then suddenly it decides that it wants to turn itself on whenever I turn it off.

Categories

Resources