Not sure if this is the right forum, maybe some other place will be more appropriate, but let's try.
The device is a Samsung S10+, originally was on AT&T firmware, then changed to the stock U1 version. The issue persisted in both. The issue is that WhatsApp dies on random occasions. Sometimes once in a couple of days, but recently it looks that it is much more common. By dies, I mean the service dies. No notifications are shown, and no messages are received. The sender doesn't get the double checkmark until I open the application. I didn't find a relation to battery status, or WiFi state. I have no battery management applications enabled. I disabled battery optimizations for WhatsApp, disabled Adaptive battery, disabled putting unused apps to sleep, WhatsApp is not in sleeping apps, disabled "Optimise settings". Phone was factory reset two or three times, once when changing the ROM to the U1. I don't even use my phone for a bunch of things, messaging, reading and business. it's not bloated in any way.
This is obviously something that doesn't affect all WhatsApp or S10 users. I've tried contacting WhatsApp support on multiple occasions with logs and everything, they are utterly useless. I'm sorry to have to say this but three moderately intelligent squirrels are more useful. They just keep juggling you between three of the same frecking questions until you give up.
Current build: PPR1.180610.011.G975U1UES2ASGF.
Here are the attached logs. Looks like something broke at 14:57. Then some kind of cron job executed at 15:13, but I don't think that made any difference, since I missed some messages around 15:16. I opened the app at 15:28 when the messages flooded in.
https://pastebin.com/xqbMCYkF
This line is very indicative:
Code:
[type: WIFI[], state: DISCONNECTED/BLOCKED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 1, subtype: 0
, found after
Code:
2019-09-01 14:57:28.461
Why would any connection be blocked? It differs from
Code:
type: WIFI[], state: DISCONNECTED/DISCONNECTED
which could be found here and there
I am a software developer, and developed for Android like four years ago, but lost everything since then. Any suggestions? Where to dig, because it looks like I'm on my own here.
webwolf89 said:
Not sure if this is the right forum, maybe some other place will be more appropriate, but let's try.
The device is a Samsung S10+, originally was on AT&T firmware, then changed to the stock U1 version. The issue persisted in both. The issue is that WhatsApp dies on random occasions. Sometimes once in a couple of days, but recently it looks that it is much more common. By dies, I mean the service dies. No notifications are shown, and no messages are received. The sender doesn't get the double checkmark until I open the application. I didn't find a relation to battery status, or WiFi state. I have no battery management applications enabled. I disabled battery optimizations for WhatsApp, disabled Adaptive battery, disabled putting unused apps to sleep, WhatsApp is not in sleeping apps, disabled "Optimise settings". Phone was factory reset two or three times, once when changing the ROM to the U1. I don't even use my phone for a bunch of things, messaging, reading and business. it's not bloated in any way.
This is obviously something that doesn't affect all WhatsApp or S10 users. I've tried contacting WhatsApp support on multiple occasions with logs and everything, they are utterly useless. I'm sorry to have to say this but three moderately intelligent squirrels are more useful. They just keep juggling you between three of the same frecking questions until you give up.
Current build: PPR1.180610.011.G975U1UES2ASGF.
Here are the attached logs. Looks like something broke at 14:57. Then some kind of cron job executed at 15:13, but I don't think that made any difference, since I missed some messages around 15:16. I opened the app at 15:28 when the messages flooded in.
https://pastebin.com/xqbMCYkF
This line is very indicative:
Code:
[type: WIFI[], state: DISCONNECTED/BLOCKED, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false], type: 1, subtype: 0
, found after
Code:
2019-09-01 14:57:28.461
Why would any connection be blocked? It differs from
Code:
type: WIFI[], state: DISCONNECTED/DISCONNECTED
which could be found here and there
I am a software developer, and developed for Android like four years ago, but lost everything since then. Any suggestions? Where to dig, because it looks like I'm on my own here.
Click to expand...
Click to collapse
Ok, so this also happens to me quite often on G975U1. I was using it on Optimized Mode with Adaptive Power Saving on. However, I switched to High-Performance mode with adaptive power saving off. I think I remember doing an ADB command to keep running it in the background somewhere around march this year, I may have to dig deep a little to find out what it was about.
Aneel said:
Ok, so this also happens to me quite often on G975U1. I was using it on Optimized Mode with Adaptive Power Saving on. However, I switched to High-Performance mode with adaptive power saving off. I think I remember doing an ADB command to keep running it in the background somewhere around march this year, I may have to dig deep a little to find out what it was about.
Click to expand...
Click to collapse
Did it help?
Related
hi all,
I've installed a raft of apps in the last few days (perhaps that was foolish) on my sim-free white Hero, and suddently the battery life has gone to pieces. It now won't even last the night *in standby with wifi off*.
Any ideas as to the known battery killers, or any way I can track down which is causing this? I don't really have to want to start removing apps at random and monitoring.
There's nothing particularly unusual in my list of running apps, following a power cycle (is there?):
Shake Awake, NetCounter, AK Notepad, OI Update & Countdown, Tube Status, Battery Widget, BBC News widget, Peep
(although that does raise a separate question: why do things like ShopSavvy, AK Notepad, start at boot, when presumably they're not really doing anything until you use them?)
Of course, I have other things that get started asynchronously, just not at boot, e.g. SMS Popup.
anyone got any ideas, please?
thanks much indeed.
cdmackay said:
hi all,
I've installed a raft of apps in the last few days (perhaps that was foolish) on my sim-free white Hero, and suddently the battery life has gone to pieces. It now won't even last the night *in standby with wifi off*.
Any ideas as to the known battery killers, or any way I can track down which is causing this? I don't really have to want to start removing apps at random and monitoring.
There's nothing particularly unusual in my list of running apps, following a power cycle (is there?):
Shake Awake, NetCounter, AK Notepad, OI Update & Countdown, Tube Status, Battery Widget, BBC News widget, Peep
(although that does raise a separate question: why do things like ShopSavvy, AK Notepad, start at boot, when presumably they're not really doing anything until you use them?)
Of course, I have other things that get started asynchronously, just not at boot, e.g. SMS Popup.
anyone got any ideas, please?
thanks much indeed.
Click to expand...
Click to collapse
I had the same issue when i put on battery widget, I saw the % going down while watching the phone.
oh! that's ironic
I do get the impression that it's more recent than that, but it could well be, I suppose. I'll remove it and see... thanks.
I've heard that the bbc widget drains the battery.
This is something Google should address with android market. The system should apply various forms of stress testing to all applications and rate them according to connectivity requirements, CPU load, power consumption etc.
I think for people who have a serious drain they need to hard reset and start again, put 1 program on at a time and leave it a day or so with that program on, finding out whats causing the drain.
Logically thinking, i'd expect it to be a program that is using internet in the background, like the bbc widget which could still be downloading without you knowing.
good points, ta.
I already noticed this. I checked the CPU load in idle mode and normally it should be around 10% (using "System Monitor").
Sometimes however, depending on what apps were running, it is increased to 30-40% and staying there constantly.
Closing all apps (incl. Sense) does not help either, the CPU load won't go down again until i make a complete device reset.
So i guess some processes are stuck in thise case causing the high load (and draining the battery empty).
My GPS did not disconnect, after foto geo-tagging, and that goes quick as well.
Also the BBC-app was installed, but got rid of it because I didn't use it. Might be a coincidence.
The BBC app polls really often. There's no setting to tell it how often to poll. It really kills the battery fast
I wonder though: even when the phone is in standby? something is killing me in standby. Oddly, it seems better if the phone is on
I'll try removing the BBC app overnight, and see...
then the battery widget tomorrow, etc...
cdmackay said:
I wonder though: even when the phone is in standby? something is killing me in standby. Oddly, it seems better if the phone is on
I'll try removing the BBC app overnight, and see...
then the battery widget tomorrow, etc...
Click to expand...
Click to collapse
Turn on usb debugging... download the SDK.. cd into tools.. and run
adb logcat
or to send it to a file:
adb logcat > log.txt
(and ctrl + C to stop logging)
Inspect the log file and you'll see what its upto pretty quickly. Maybe its overkill, but I fire that up when it starts behaving strangly.
EDIT: err to answer your question.. yeah the widgets wake the phone up to grab new data, which eats battery. The BBC news one seems to be polling reallllly often, which is unecesarily using power.
quick update: removed BBC News and Battery Widget (separately), no change; phone still dies overnight, in fact in about 5 hours on standby, from a full battery, to totally dead.
I just this minute discovered that my phone whilst in standby is still polling my IMAP server to try and connect, and I have a huge inbox, which it was prob failing to get the headers for. Seems like a possible bug that it still does this whilst in standby, but I've disabled that account anyway. It might be the cause...
What do you mean by Standby? Just inactive? Airplane Mode?
sorry, poor terminology, perhaps. No, not airplane mode, just the screen-off state it goes into after a few minutes.
It does seem a little bit of a waste, if the phone is going to spend all night checking for new Twitter, Gmail, etc, updates, when I'm not awake to read them? So I'd naively assumed that perhaps it wouldn't do that when it's in the screen-off state. Unless you've asked for notification other than on the top bar, of course?
cdmackay said:
It does seem a little bit of a waste, if the phone is going to spend all night checking for new Twitter, Gmail, etc, updates, when I'm not awake to read them?
Click to expand...
Click to collapse
To be fair, the phone doesn't know when you're going to asleep now does it? (especially if you're a night worker).
I notice that there's an application in the market now which can automatically turn airplane mode on according to a schedule, so that may help but of course this does mean you won't get phone calls!
Regards,
Dave
foxmeister said:
To be fair, the phone doesn't know when you're going to asleep now does it? (especially if you're a night worker).
I notice that there's an application in the market now which can automatically turn airplane mode on according to a schedule, so that may help but of course this does mean you won't get phone calls!
Regards,
Dave
Click to expand...
Click to collapse
No it doesn't but I'm developing a widget which will disable data access at certain times (dependent on user) so overnight it wont use data and save battery.
foxmeister said:
To be fair, the phone doesn't know when you're going to asleep now does it? (especially if you're a night worker).
Click to expand...
Click to collapse
Right; I really meant the following, but worded it wrongly...
I had expected apps not to do data access when the phone's screen is off, unless they have been configured to notify via sound, vibrate or light.
i.e. if an app either isn't notifying, or is only notifying via the top bar, then it should disable its data access when the screen is off.
That would mean a short delay in getting updates, when the screen is back on, but I'd rather have that than spending much battery time pointless checking for updates when I'm not going to see them for ages, whether that's at night or just when the phone is sitting on the desk for hours.
nicelad_uk said:
No it doesn't but I'm developing a widget which will disable data access at certain times (dependent on user) so overnight it wont use data and save battery.
Click to expand...
Click to collapse
aha! that sounds great, thanks in advance
would you update us here when you have something testable, please?
and if it's not pushing my luck to ask: any chance that it might also have a manual switch too, for those of us who go to bed at wildly different times?
Or perhaps there is already a way to disable data access manually, with a single setting change, without disabling the phone? I think there might be...
ah yes indeed, there's even an HTC widget to disable mobile networking, whilst leaving phone enabled. That will do for now
Ok, although I do not have a solution it seems that their are a small percentage of people on here that have the same problem as me.
This is what I know:
The EVO has a bigger display, a faster proccessor, 4G, and alot of advanced features this means battery is not going to be the greatest.
However, I am now rooted running CM6 RC2, and although I love this ROM I have been having terrible battery. Also, I was using Fresh's and stock unrooted ROM and had bad battery also, AFTER I PUT IN ALL MY SETTINGS.
When I would hard reset my phone, it would sleep like normal, and the battery would run great, however, I think their is a setting that I use with my phone that is keeping it awake.
Now I am going to give all the settings that I use on my phone without installing any apps from the market. Because I know some apps keep your phone awake but I did a factory reset, put in my settings without installing any apps and my phone stayed awake.
***I have already tried the HTC and Sprint method of "conditioning your battery" I know their are 2 methods I have done both. I have setCPU, juice defender, spare parts, all that stuff that supposedly saves battery, but so far none have helped. Also my phone is set to auto CDMA, i tried that*****
Here is what I think. I am changing some setting in the phone that is keeping it awake and I can't seem to find what it is, I had this same problem with google sync setting and thankfully someone helped me fix it and it solved the problem however, after that I am still having the issue.
Keep in mind I HAVE NOT INSTALLED ANYTHING FROM THE MARKET YET, I have only entered my settings in apps that came with the phone because I believe that is the culprit.
My settings
*#*#4636*#*#
Battery history, since last unplugged
running: 14.6%
Screen on: 10.4%
Phone on: 3.5%
Wireless and network
Airplane mode, wifi, bluetooth, tethering and portable hot spot VPN are all off
Under Mobile network
The options are: data enabled: Checked
data roaming: unchecked
System select (change the cdma roaming guide) options are either home only, affiliated networks, or automatic. I have automatic set.
Voicemail service my carrier
Nothing in the CM6 settings have been changed
Auto brightness, screen timeout 30 sec
Location: wireless network:checked
Use GPS sattelite: unchecked
Accounts and Sync:
Background data: enabled (checked)
auto sync: Enabled (checked)
Facebook-sync if off, I have not synced contacts with Facebook, and the problem I had last time was with google sync, I had google sync turned off and that kept my phone on. Now I have facebook sync turned off, COULD THAT BE THE PROBLEM?
Privacy: Back up my data-checked
automatic restore-checked
Mail settings, never update, I manually update.
News and weather is same thing, could google be trying to update even though its set not too and keep my phone awake?
Under facebook settings: refresh interval is set to never
Notifications are inactive.
About phone
Cell standby:37%
Phone idle:28%
Android system:20%
Voice calls:11%
Display:7%
If anything looks not right, or you think something as little as it may be may be causing the problem, even if it doesn't make sense please suggest it, I have tried everything, thanks.
Not to burst your bubble, but it's been pretty much proven that CM6 has unsatisfactory battery life.
Try Burnt Droid v1 + netarchy-toastmod kernel for optimum battery life.
I know,
but after reading through the thread it seems that about half of them half pretty good battery life, however I had poor battery with other roms, because something was keeping my phone awake.
I'm having a similar problem. On any ROM that's based of HTC's 2.2, my phone will run fine for about a day and then it will begin to stop sleeping. Once that happens the only way to get it to stop is to do a factory reset. What's funny is that using the exact same settings with CM6-RC2 I don't get the 100% awake issue. I've tried everything and can't figure it out.
I've tried turning off all automatic syncing, turning off network time and network location...didn't work. I deleted my Exchange account since I had heard that some people were having Exchange problems...didn't help. This last time around I didn't install anything from the market, it was just the stock apps. I did connect the phone to Sync in my truck and used it quite a bit before the problem cropped up.
I've got a sneaking suspicion that it's some kind background process that tries to run after a specified amount of time, but there's some kind of problem with the Sense-based ROMs that I've tried that won't allow it to run properly. So we need to figure out what the process is and either stop it from running in the first place, or figure out a way to take it out of the ROM so it isn't there to begin with.
I'm going to wipe everything and try installing Fresh 3.1.0.2 again. I'm going to try to remember to reboot my phone every night when I plug it in to charge and see if that helps. While it isn't ideal, it's way easier than having to do a factory reset every other day. I'll post back and let everyone know what happens.
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.
Problem getting notifications from apps (Probably may occur on other devices with OneUI as I found on S9 forum)
Issue:
Whenever the device goes into sleep (screen turned off, at least 10 minute period passes) I no longer receive notifications from various apps like Gmail, Whatsapp, Messenger Lite, etc.
Steps taken:
1. Device Care / Battery / Settings:
- disabled "auto disable unused apps"
- prepared the list of apps to be put to sleep when device not in use (the above WERE NOT included)
2. Device Care / Memory / Apps that aren't checked:
- added all apps mentioned above
3. Settings / Apps / Special access / Optimise battery usage:
- disabled for all apps mentioned above
4. Tested also the same with all "adaptive battery", "put unused apps to sleep" etc DISABLED.
Note:
Device is not muted and/or not in "do not disturb" mode. All normally working fine (up till couple of minutes).
Problem:
After couple of minutes I stop receiving any notifications....
Is it OneUI specific? Anybody knows anything?
Device is not rooted, not modified, running latest (11.04.2019) available stock firmware (XEO).
Bump
Hi,
Not having such a problem here,
With what you specified, i see that the issue could be in wifi settings, did you check if your connection is not stopped when phone goes in deep sleep? There's an option in wifi settings for that...
Cosmox_ said:
Hi,
Not having such a problem here,
With what you specified, i see that the issue could be in wifi settings, did you check if your connection is not stopped when phone goes in deep sleep? There's an option in wifi settings for that...
Click to expand...
Click to collapse
Unfortunately the issue is not that simple. It appears both while connected via wifi at home and also if connected to LTE only when outside.
Additionally the option you are refering to does exist in Samsungs Nougat roms but does not in Pie.
Well. Maybe the upcoming May update will fix this (I've seen on sammobile that this firmware is being rolled out in Europe)
As suggested by @dulemars on another thread I've tried to enable always on for mobile network (developer options - see attached screenshot). Let's see if this helps
edit: just tested couple of times, unfortunately - does not work
Ok - here's some more info.
Finally after doing again (for the 7th? 8th? time) all the above (including making mobile data active to always) and including Whatsapp, etc apps into the exception lists for memory checking and disallowing battery optimisations for them AND (that is the important bit) when I changed firmware to new update (unfortunately since the update for XEO is not available as for now, I've chosen to install firmware from another region - BTU) issues seems to be resolved (tested several times and well... I am receiving notifications now).
Firmware which does work is the firmware from May 2019 ( A405FNXXU1ASE3 ) but as I said before... at least for me - it requires some painful customuzations... which is insane... previously I just installed any messaging/mailing app and... it worked out of the box...
edit a day later: not quite working, still sometimes messages are not delivered ontime (i.e. with 20-30 minute delay), it is observable better since this patch but still not ok.
any clues anyone?
Since I was not able to resolve this frustrating issue I've decided to sell my A40.
Bought (again) new A40. And... well... no issue so far (but I have firmware from 01.07.2019 so not sure if this is firmware or hardware related after all (although if hardware then this would be quite weird).
Hi folks,
I've got the 6013 model in the US, running on AT&T, completely stock never rooted, fully updated to 10.3.11. Either the most recent update, or the one before that, seems to have caused an issue where texts sent to me overnight or in early morning before I first use the phone never show up. I've missed some important notifications due to this. The worst thing is they NEVER show up... they aren't just delayed until I wake the phone up. After I start using the phone, new texts make it through just fine. The phone seems to be sleeping deeper or something and not getting any of these cellular-based texts. Emails and other notifications based on wifi internet seem to be showing up fine.
Do not disturb is NOT enabled (and, I've tried toggling it on and off without change). This has been going on for weeks or longer, multiple reboots, etc.. I've checked my default texting app (Textra) and the phone's built-in Messages app... the texts aren't in either app. They just never show up.
What else can I look into to check the cause of this and hopefully a fix?
Thanks!
As a test today, I sent a text from my work phone to my personal OnePlus when I got up (late! Father's Day!) before interacting with my OnePlus at all. It did receive the text just fine. I think the cellular radio may be on some timer and going to sleep / waking up on some sort of schedule. Where are the settings for controlling this kind of thing? I haven't messed with this phone's settings much... it just worked fine out of the box and ever since for the last two and a half years until recent update messed this text thing up.
Further information: In Settings, Battery, Battery Saver is OFF (I've never enabled this) and under battery optimization I noticed Textra was set for Intelligent Control; I've toggled this to Don't Optimize. "Messages" was not present; I never use it.
Is there anything else to try? Note that the phone is plugged in and fully charged at the time these issues are occurring.
Frankenscript said:
Is there anything else to try?
Click to expand...
Click to collapse
Dude, not sure but hope it will work,
anyway trying will cost nothing...
Go to settings > battery > battery optimization >
hit on upper right 3 dots and select advanced optimization,
then be sure " SLEEP STANDBY OPTIMIZATION"
is toggled OFF.
Try again and cross your finger...
Cheers
Dadditz said:
Dude, not sure but hope it will work,
anyway trying will cost nothing...
Go to settings > battery > battery optimization >
hit on upper right 3 dots and select advanced optimization,
then be sure " SLEEP STANDBY OPTIMIZATION"
is toggled OFF.
Try again and cross your finger...
Cheers
Click to expand...
Click to collapse
Thanks @Dadditz , that was already off. Sigh. Not sure why this happens. I've tested when I get up at 7 am, sending a text from another phone, and my 6T receives it, but during the darker hours of the night, no joy. Thanks for the reply, though.
Just as a follow up, the problem seems intermittent. I got some 4 am texts from my sump alarm when the wifi went down briefly. No idea what's going on, but it's intermittent rather than constant.