Related
Updated to stock 5.1.1 on my note 4 n910u variant last week, and I noticed that it kills apps that are suppose to stay in memory,like Adguard or pintasking. This was not an issue on 5.0.1 and I'd like to know if anyone has observed this.
I'm not running any task killing apps or Xposed modules.
Sent from my SM-N910U using Tapatalk
Yep, me too. 5.1.1 is closing apps like Network manager, Silent, No root vpn,...
don't have task killer and not rooted
pr1jker said:
Yep, me too. 5.1.1 is closing apps like Network manager, Silent, No root vpn,...
don't have task killer and not rooted
Click to expand...
Click to collapse
Damn. I guess it was too much to ask to get a fully functional firmware update from Sammy? ?
Sent from my SM-N910U using Tapatalk
I think it happens when an app calls System.exit() upon service termination. Previously, the system would restart the service but now it seems it kills it until restarted manually.
Try contacting the app's author to ask if they do that.
Well, on second thought, it seems to still kill my app even though I removed System.exit().
I have no idea why it happens. Services are supposed to be restarted automatically.
zapek666 said:
Well, on second thought, it seems to still kill my app even though I removed System.exit().
I have no idea why it happens. Services are supposed to be restarted automatically.
Click to expand...
Click to collapse
Sigh... this is probably why 5.1.1 is giving me better battery life... it kills everything ?
Sent from my SM-N910U using Tapatalk
I wonder what "algorithm" they use through because it doesn't happen with everything. I know that once a service is killed that way, the only way to run it again is to start the app manually.
Could it be that? http://androiding.how/fix-app-reloading-galaxy-s6-5-1-1/
zapek666 said:
Could it be that? http://androiding.how/fix-app-reloading-galaxy-s6-5-1-1/
Click to expand...
Click to collapse
It'd be interesting to know and I may try it later on. I wonder if this might help with multitasking in general - not just services being killed.
EDIT: doesn't help with multitasking, but I'll see if it helps with the persistent apps closing.
Sent from my SM-N910U using Tapatalk
Ok, the thing is called "SmartAdjustManager" and it's indeed some thing that tries to classify running processes.
I'm not fully done with it yet but it seems the following factors avoid killing:
- it's a Samsung process (of course)
- it's a carrier added package
- it's some Google services (but not Android Wear it seems, which is quite an oversight)
- it has a widget running on the homescreen (could be a usable workaround for some apps)
- it has a notification
- its packagename ends with ".cocktailbarservice" *
It does its statistics during a few days (3 days.. 7 days..) which explains why things can run well then all of a sudden a particular services gets killed all the time.
Its whitelist can be updated by some external system but I didn't find where the file is yet.
The following build.prop vars control it (default in parenthesis):
sys.config.samp_enable (true)
sys.config.samp_hotness_enable (true, needs samp_enable too)
sys.config.samp_spcm_enable (false)
sys.config.samp_debug (false)
sys.config.samp_debug_trace (false)
sys.config.samp_debug_spcm (number, none)
It also uses these vars for memory management (when to kill and so on):
sys.config.s_dha_margin
sys.config.s_dha_bg_max
sys.config.s_dha_bg_min
sys.config.s_dha_db_kill
sys.config.s_dha_extra_cache
sys.config.s_dha_cache_max
sys.config.service_kill_adj
*: so it seems the workaround in my case is to add .cocktailbarservice to my packagename.. ridiculous.
You can add the package name to a whitelist stored at:
/data/misc/lpnet/lpnetConfig
(needs root)
Ok, I tested:
Code:
sys.config.samp_spcm_enable=false
This disables the service killing. My phone is now more reliable (no missing wear notifications, no missing calls from my VoIP app, etc...).
Also for improved memory management:
Code:
sys.config.samp_enable=false
ro.config.fha_enable=true
The first one disables the whole SmartAdjustManager nonsense. The 2nd one switches to a simpler memory management closer to the one that AOSP uses. It's like I'm using a new phone!
Conclusion: the Samsung mobile team has no idea of what they're doing. If they think that killing and restarting processes all the time is going to solve anything, they're wrong. It only gives a sluggish phone as a result.
Are you using any DHA tweaks or just those few lines?
Sent from my SM-N910U using Tapatalk
To zapek666:
Are those last 2 lines to be added below the first line you mentioned?
Sent from my SM-N910G
zapek666 said:
Ok, I tested:
Code:
sys.config.samp_spcm_enable=false
This disables the service killing. My phone is now more reliable (no missing wear notifications, no missing calls from my VoIP app, etc...).
Also for improved memory management:
Code:
sys.config.samp_enable=false
ro.config.fha_enable=true
The first one disables the whole SmartAdjustManager nonsense. The 2nd one switches to a simpler memory management closer to the one that AOSP uses. It's like I'm using a new phone!
Conclusion: the Samsung mobile team has no idea of what they're doing. If they think that killing and restarting processes all the time is going to solve anything, they're wrong. It only gives a sluggish phone as a result.
Click to expand...
Click to collapse
Are these edits exclusive to Lollipop 5.1.1 or will they work on Lollipop 5.0.1 or even Kitkat 4.4.4?
Same problem here. Apps get killed all the time. So what to do with a non rooted phone? I tried to change settings of this awful smart manager thing, but still: my phone is not reliable anymore. Btw: Battery life is more or less the same for me.
EP2008 said:
Updated to stock 5.1.1 on my note 4 n910u variant last week, and I noticed that it kills apps that are suppose to stay in memory,like Adguard or pintasking. This was not an issue on 5.0.1 and I'd like to know if anyone has observed this.
I'm not running any task killing apps or Xposed modules.
Sent from my SM-N910U using Tapatalk
Click to expand...
Click to collapse
Try COI or COJ Stock update.
Everything feel much better from COH.
All your problem is from fingerprint bug.
If you are in COH update, try disable fingerprint until you update to COI or COJ stock.
I'm on COJ stock update with fingerprint enabled.
No more random lag, random hot boot & no more random app killing.
zapek666 said:
Ok, I tested:
Code:
sys.config.samp_spcm_enable=false
This disables the service killing. My phone is now more reliable (no missing wear notifications, no missing calls from my VoIP app, etc...).
Also for improved memory management:
Code:
sys.config.samp_enable=false
ro.config.fha_enable=true
The first one disables the whole SmartAdjustManager nonsense. The 2nd one switches to a simpler memory management closer to the one that AOSP uses. It's like I'm using a new phone!
Conclusion: the Samsung mobile team has no idea of what they're doing. If they think that killing and restarting processes all the time is going to solve anything, they're wrong. It only gives a sluggish phone as a result.
Click to expand...
Click to collapse
I'm still testing these, but first impression is that these seem to work, thanks. DHA only allowed about 4 active apps, now I can keep 7 or 8 apps in RAM and multitasking is much better. For people who want to give this one a shot, comment out all DHA lines in your build.prop if added by a Custom ROM, kernel etc and activate FHA instead.
vprasad1 said:
Are these edits exclusive to Lollipop 5.1.1 or will they work on Lollipop 5.0.1 or even Kitkat 4.4.4?
Click to expand...
Click to collapse
The SPCM background services killer was added in 5.1.1. If the rest improves memory performances, I would guess so but I can't confirm as I didn't try with older firmwares.
More info here: http://zapek.com/blog/how-to-make-your-galaxy-note-4-fast-again/
can't you just use settings -> battery -> app optimization to edit the whitelist and disable smart manager?
just choose to never optimize certain apps and they should work normally again.
Hi everyone,
I've been having a very strange problem for a couple of days now. Whenever my phone's screen is off and the phone has been idle for some time, I don't receive notifications anymore. Facebook notifications don't work at all, no matter whether the phone is active or not, but I also don't get FB Messenger and WhatsApp notifications. Sometimes they come through as soon as I turn on the screen, and sometimes I only see them when I open the respective app. I didn't mess with app permissions, and I also have set each app to "important" in the notification settings. It also doesn't seem to matter whether I'm on WiFi or on mobile data.
Gmail, SMS and calls don't seem to be a problem, although I sometimes have a feeling that emails come through to my phone with a considerable delay, as compared to my Gmail inbox on my computer.
The strange thing is, when I had the phone all new, everything worked as it should and I received ALL notifications from EVERY app IMMEDIATELY when they came in. This issue with notifications no longer coming through started occurring a couple days ago after I had first flashed the Boeffla Kernel (though I'm not sure if it has anything to do with that.) So I went back to the stock kernel, but the problem was still there. Then I re-flashed my original Nandroid backup from when I had first flashed TWRP, in order to set the system back to "stock", wiped data and cache, re-installed every app (the critical ones, i.e. Facebook, Messenger and WhatsApp, via Play Store, and the non-critical ones via Titanium Backup), and the problem is still there. I've done this three times now, to no avail.
My phone is rooted and I have Xposed installed, I'm using SuperSU and a number of root apps such as 3c Toolbox, Le DPI Changer and Font Installer. 3c Toolbox is set to clear caches on every reboot. As for Xposed, I use only VibrateMode to change the notification slider from all/important/none to all/vibrate/none, and GravityBox to center the clock in the status bar and to set the volume buttons to skip tracks on long press. I also have Glimpse Notifications installed so that the screen lights up when a notification comes in.
The funny thing is, notifications not coming through is one of the reasons I switched to the OPT from the Huawei Mate 7, where this issue was due to power management settings by Huawei. Since I'm now back on the stock kernel and have also no power saving apps such as Greenify or Amplify enabled, I am really out of ideas as to why this happens. The next step is to flash a fully stock OOS 2.1.2 (my Nandroid backup is already rooted and with my Google account set up), wipe data and cache, and re-install every app again.
Does anyone here have any idea what the problem (and the solution to it) might be?
UPDATE: After I wrote the last sentence, I received two messages simultaneously, one from Messenger and one from WhatsApp. I was at home and on WiFi, and both coming in at the same time must mean that the phone receives push notifications in fixed intervals, since the sender of both messages was the same person and sent them consecutively, i.e. with at least a minute in-between. Now I am especially confused since a) they came through at all, even though the screen was off and the phone had been idle for at least 15 minutes, and b) they came through at the same time, which was definitely not the time when they had been sent.
The confusion is complete now ... any input is appreciated. Thanks in advance!
The problem persists. Today for half a day I received all notifications, after that once again only when I turned on the screen or opened the respective app. WiFi all the time, no settings changed in between.
This really annoys me to no end. I don't own an expensive smartphone so it doesn't work as it should. I never had any troubles like this with my old Sony Xperia V. Then again it ate through a full battery in half a day ...
Are you sure you are not using any applications like greenify / amplify or powernap which would hibernate your applications ?
mdaamir1989 said:
Are you sure you are not using any applications like greenify / amplify or powernap which would hibernate your applications ?
Click to expand...
Click to collapse
Yes. As I said, I reflashed my original (rooted but otherwise unaltered) Nandroid backup and then reinstalled all apps, and am not using anything that could interfere with apps receiving notifications.
The order in which notifications come through automatically vs. only when I activate the display or open the respective app also doesn't seem to follow any regularity ... sometimes it works as it should, sometimes it doesn't.
As for Facebook notifications, I somehow have a feeling this is a specific FB-related problem. But as for Messenger, WhatsApp and now also Instagram as I've noticed, it's all the same issue as described in my original post. The only exception really seems to be Gmail, which always notifies me of new emails.
EDIT: All these apps have unaltered permissions, i.e. are allowed to keep the phone awake, and all apps are set to "important" for notifications, so this doesn't seem to be the issue either.
EDIT 2: I also installed push notification fixer to see what interval is set for the GCM services, and it's set to 5 minutes on WiFi and 6 minutes on mobile data. So that also can't be the issue.
Could the screen not lighting up when a notification comes in have something to do with deep sleep, possibly? But then why does it work for Gmail???
vonotny said:
Yes. As I said, I reflashed my original (rooted but otherwise unaltered) Nandroid backup and then reinstalled all apps, and am not using anything that could interfere with apps receiving notifications.
The order in which notifications come through automatically vs. only when I activate the display or open the respective app also doesn't seem to follow any regularity ... sometimes it works as it should, sometimes it doesn't.
As for Facebook notifications, I somehow have a feeling this is a specific FB-related problem. But as for Messenger, WhatsApp and now also Instagram as I've noticed, it's all the same issue as described in my original post. The only exception really seems to be Gmail, which always notifies me of new emails.
EDIT: All these apps have unaltered permissions, i.e. are allowed to keep the phone awake, and all apps are set to "important" for notifications, so this doesn't seem to be the issue either.
EDIT 2: I also installed push notification fixer to see what interval is set for the GCM services, and it's set to 5 minutes on WiFi and 6 minutes on mobile data. So that also can't be the issue.
Could the screen not lighting up when a notification comes in have something to do with deep sleep, possibly? But then why does it work for Gmail???
Click to expand...
Click to collapse
I could suggest you one more thing. Its a shot in the dark .
Could you check "Keep Wi-Fi on during sleep" in you advanced Wi-Fi settings ?
If the above is not a problem then out of ideas buddy. As a last option you could clean flash by wiping everything and just install whatsapp and other apps in which you are facing a notification delay. If it works then there could be some other application interfering , it it doesn't then i am not sure what it could be.
mdaamir1989 said:
I could suggest you one more thing. Its a shot in the dark .
Could you check "Keep Wi-Fi on during sleep" in you advanced Wi-Fi settings ?
Click to expand...
Click to collapse
That's not it, but thanks for the suggestion.
mdaamir1989 said:
If the above is not a problem then out of ideas buddy. As a last option you could clean flash by wiping everything and just install whatsapp and other apps in which you are facing a notification delay. If it works then there could be some other application interfering , it it doesn't then i am not sure what it could be.
Click to expand...
Click to collapse
Yeah, that's pretty much my last resort. Currently, I'm trying to see if it makes a difference whether I keep FB Messenger and WhatsApp "open" in the recent apps menu.
try setting the refresh intervals in push notifications fixer to 1 minute
persian99 said:
try setting the refresh intervals in push notifications fixer to 1 minute
Click to expand...
Click to collapse
I could try that, you're right - I didn't yet because I didn't want to sacrifice battery life too much ... but I could give it a shot for at least one charging cycle and see what the effect is. Thanks!
vonotny said:
I could try that, you're right - I didn't yet because I didn't want to sacrifice battery life too much ... but I could give it a shot for at least one charging cycle and see what the effect is. Thanks!
Click to expand...
Click to collapse
i do remember reading some time ago that these intervals do not impact the battery life, but you could test for yourself just to be sure
So, currently most notifications are working again for me, for whatever reason. Facebook being the big exception, of course. Might have to do with keeping the apps opened in the multitasking overview. If that's what it takes, then fine ...
I've got a OPT for few day, i have same issue......anyone experience this problem? any solution? is it 2.1.2 problem?
GARYKNVB said:
I've got a OPT for few day, i have same issue......anyone experience this problem? any solution?
Click to expand...
Click to collapse
Which app? Only Facebook, or other apps as well? For me it's working now, but I can't say why exactly. I use a number of tweaks on my phone (root, Xposed framework etc.) so I can't definitely say which of my apps cause issues and which fix them again.
As for Gmail, it appears that when there's already a notification for an email and a little later another one comes in, it won't play a sound or vibrate. That seems to be standard behaviour but I find it VERY annoying, even though I set Gmail to notify me on EACH incoming email.
despite suggesting a fix i seem to be experiencing the same problem as well. it happens on both wifi and mobile data so you cant blame any settings. my best guess would be its because of the latest update. gonna have to backup my data and revert back to the older firmware to solve this issue.
@vonotny have you found a solution? im experiencing the same problem after updating to 2.2.0
persian99 said:
@vonotny have you found a solution? im experiencing the same problem after updating to 2.2.0
Click to expand...
Click to collapse
Not really, no. Mine are currently working again, after I re-flashed the stock system and set up everything again step-by-step. It's possible that some app or tweak or setting caused the issue, but I couldn't find out which one.
vonotny said:
Not really, no. Mine are currently working again, after I re-flashed the stock system and set up everything again step-by-step. It's possible that some app or tweak or setting caused the issue, but I couldn't find out which one.
Click to expand...
Click to collapse
i suspected it could be because of restoring apps from titanium backup directly instead of downloading and installing them from the play store first, but even with that i still face the same problem. currently on oxyslim. come to think of it, could it be caused by the power tweaks? did you use them before when you faced the problem?
Same problem here on OOS3.0.1. Inbox and WhatsApp messages don't often come through until I turn on the screen. Completely stock. Didn't have the problem on CM13, I think. It's really annoying because I can miss a lot of important emails from work. Even put the apps I want in No Battery Optimization mode. No help really.
i have the same problem. I'm on OOS3.0.2 with Cyanoxy. Can anyone help?
Same problem here...
What the F?
This device is almost a year old and I still can't use it as PHONE. I am not asking for some fancy stuff, but fixing the gigantic bugs that are preventing me from even using this daily.
Fix for those willing to tweak the system: install the latest Boeffla kernel, it has an option to turn off doze.
I got my pro 5 a week ago. All I can say is Flyme needs work... The phone seems to put all the apps on sleep mode and I don't receive incoming notifications for incoming emails or facebook or instagram. Anyone encounter this issue with not receiving notifications and is there a fix?
You might want to check what apps are allowed to run when the phone is in standby. You can find this in Settings/Power Management/Power Optimization/App Management
You are right. Flyme does have issues. It does not have a problem with its default apps. If you're using the default email app you will get notifications. But if you have loaded a third party email app it won't even do a sync unless you manually refresh. I know it's bull****. Also you have to use the on board music player otherwise if again it's a third party app after a few minutes it will go to sleep. I have changed it not to go asleep in power management but it won't make any difference and go to sleep mode after a few minutes. It's default apps won't sleep. Even youtube won't go to sleep which is a good thing especially if your streaming media through chromecast. And if your screens turned off it won't switch off. But flyme should fix this issue. I believe it's a major negative to the phones software.
Just long press app you want in recents window, it will lock it into ram... Works for me for viber, skype, fb messenger etc
I 'm just after 5 minutes I do not have to get notifications for example Gmail to see new emails that have come to me
any idea why this happens, and made ββthe necessary settings so that this does not happen and some app are running in the background or when the screen is off
but I have that problem , notifications do not work.
Hi, I own a pro 5 for almost a year but since last 4 updates, my phone doesn't ring when people calling. I think this is problem from software because I have Chinese version (A). Should I root it for G version? Will it solve the problem? Or should I put other rom on it? If so, how to do it properly and without taking the risk of breaking my phone? I really appreciate your help
jcadfernandes said:
Hi, I own a pro 5 for almost a year but since last 4 updates, my phone doesn't ring when people calling. I think this is problem from software because I have Chinese version (A). Should I root it for G version? Will it solve the problem? Or should I put other rom on it? If so, how to do it properly and without taking the risk of breaking my phone? I really appreciate your help
Click to expand...
Click to collapse
Hello,
I advise you to update at last version of firmware and make a clean install.
1. Download lastest update for Meizu PRO 5 (A): http://firmware.meizu.com/Firmwa ... 61223864/update.zip
2. Put the zip file at the root folder of your phone.
3. Shutdown your phone
4. Boot the phone holding Volume UP + Power button
5. Check "System upgrade" + "Clear data"
Note: You'll lost all your data so, backup them before.
Hope it can help you.
Hi,
I really don't understand how the doze system works on android marshmallow. I mean, it kills apps that I need, and leaves on apps that I need killed. I have done all the battery optimization exceptions from settings->apps, I have excluded and included in the keep alive after screen lock option in battery manager, nothing is working how it should be.
I want apps like Tasker and Automate It to work when i close the screen, but even if I exclude them from all things that could kill them, they work for only about 2 minutes and then bye bye.
Is there a setting I missed, or maybe an app that keeps them alive, or maybe some root underground terminal emulator magic I can do to fix this issue?
Thanks in advance.
sundaysfantasy said:
Hi,
I really don't understand how the doze system works on android marshmallow. I mean, it kills apps that I need, and leaves on apps that I need killed. I have done all the battery optimization exceptions from settings->apps, I have excluded and included in the keep alive after screen lock option in battery manager, nothing is working how it should be.
I want apps like Tasker and Automate It to work when i close the screen, but even if I exclude them from all things that could kill them, they work for only about 2 minutes and then bye bye.
Is there a setting I missed, or maybe an app that keeps them alive, or maybe some root underground terminal emulator magic I can do to fix this issue?
Thanks in advance.
Click to expand...
Click to collapse
It's not Doze that sucks so much, it's EMUI's power management. It's overly aggressive in killing apps.
zgomot said:
It's not Doze that sucks so much, it's EMUI's power management. It's overly aggressive in killing apps.
Click to expand...
Click to collapse
You're probably right, even though they fixed this in EMUI 5.0, but I don't like Nougat because it has an annoying bug, so maybe there's a fix to this for MM. I'll try to write to them too.
sundaysfantasy said:
You're probably right, even though they fixed this in EMUI 5.0, but I don't like Nougat because it has an annoying bug, so maybe there's a fix to this for MM. I'll try to write to them too.
Click to expand...
Click to collapse
What annoying bug do you mean? I find N better than MM in almost every way. And now with B380 battery usage is amazing.
zgomot said:
What annoying bug do you mean? I find N better than MM in almost every way. And now with B380 battery usage is amazing.
Click to expand...
Click to collapse
At random times, my screen won't turn on when I unlock it. I can hear the unlock sound, receive phone calls and probably use all other phone functions, but my screen stays black. I have to force-restart the phone in order for the screen to work again. It probably is a problem with my phone, but I'm too lazy to send it to warranty.
My Pushbullet and FB Messenger messages are severely delayed after I switched to the 8 Pro. I've made sure to disable RAM boost, also disabling any battery optimizations for said apps. Yet, most of the time, I don't receive any messages until I manually open the app in question. Not sure what else I should change or if this is a system issue. I never had these issues on my OP6 and used the same settings there. Any help would be greatly appreciated.
zyonee said:
My Pushbullet and FB Messenger messages are severely delayed after I switched to the 8 Pro. I've made sure to disable RAM boost, also disabling any battery optimizations for said apps. Yet, most of the time, I don't receive any messages until I manually open the app in question. Not sure what else I should change or if this is a system issue. I never had these issues on my OP6 and used the same settings there. Any help would be greatly appreciated.
Click to expand...
Click to collapse
Did you also disable Adaptive Battery and Sleep standby optimization under Advanced optimization for Battery?
Sent from my IN2025 using Tapatalk
bjevers said:
Did you also disable Adaptive Battery and Sleep standby optimization under Advanced optimization for Battery?
Sent from my IN2025 using Tapatalk
Click to expand...
Click to collapse
Yes, I've done that too. So strange that it didn't help. And seeing that it affects Pushbullet, Messengern and Whatsapp tells me it's not specifically app related.
I too have noticed issues with this, sometimes they come through exactly at the right time and other times I have to wake the screen before they then proceed to come through. It seems the battery optimisation settings are quite harsh on wake-locks out the box.
Remove each app from optimization. You should be able to find the app, and it's the settings app and then turn it off per app.
OnePlus really wind me up with their battery optimisations. It kills off the user experience in the name of good battery!
marvi0 said:
OnePlus really wind me up with their battery optimisations. It kills off the user experience in the name of good battery!
Click to expand...
Click to collapse
there are some brand that do it worst like Huawei (when it has google) and xiaomi, this 2 brand kill everything in background
c_86 said:
Remove each app from optimization. You should be able to find the app, and it's the settings app and then turn it off per app.
Click to expand...
Click to collapse
As I said in my original post, I've disabled the battery optimizations for the affected apps, but to no avail.
I may have found the cause and the solution to this, but it's still too early to tell. Most of my apps are restored using TiBu, coming from my previous OP6. I've uninstalled and reinstalled some of the problematic apps clean, not restoring app data with TiBu, but rather from the Play Store. I'm amazed that the app data is automatically restored upon app installation, given that the app itself allows it.
This seems to have done the trick, Pushbullet, Messenger and others seem to be giving me notifications instantly. I did have to disable battery optimization on those apps once more. I'll report back later.
Maybe a dalvik-cache and cache wipe would suffice, I have no idea.
The push notifications are extremely late if the phone remains quite unused, I have set the best but I cannot solve the problem. I need to take gmail emails in real time and this is a serious problem for me, have you found any solutions?