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.
Related
I have only had the phone a few days and having installed about 10apps the performance of the phone has slowed a lot.i have task killer installed and making sure I'm shutting down most apps when not in use, But everything has slowed since I installed the last fm app
Is there a directory where temp files are stored?
Any help would be great!
Chances are pretty high that you have the same problem as I did, that one of the apps are slowing it down in some manner. You could also replace the TwLauncher (Samsungs ****ty home app) with something like Launcher Pro, which is my recommendation. Just doing that will garner you some performance help.
I already useG launcher pro, but I just restarted my phne and its sped up again.and my ram has increased also.I'm confused
Flash your phone with the modaco Rom and run the lag fix script. This is a temporary problem and a temporary fix. Samsung will fix it soon. They know about it but the phone was rushed out. Needs upgrading that's all. Mine runs very smoothly.
Sent from my GT-I9000 using XDA App
So everyone s been having same problem? So this is looking to be fixed in android 2.2
alpystar said:
So everyone s been having same problem? So this is looking to be fixed in android 2.2
Click to expand...
Click to collapse
Doesn't look like an Android problem, but a phone specific so you need to rely on a fix from Samsung.
As mentioned above, nothing to do with Android ~ just bad coding on the part of software Apps installed.
What I have done and recommended to many is to get hold of the App 'SystemPanel'.
There are two versions available on The Market ~ SystemPanel Lite (Free) & SystemPanel App (Paid).
Try the Lite version first. It will firstly allow you to see exactly which application is hogging your system/taking memory/using battery performance/etc./etc.
It has detailed graphs/plots and about everything but the kitchen sink added to aid you in finding what is going on.
On top of that it also has the most detailed selection process of closing down Apps.
I purchased it almost immediately and know many others who have followed suit.
I don't get any further performance issues ~ period.
I have 150 apps, and yes there is slowness, i am also using minfreemanager on aggressive setting and this makes a HUGE difference.
Not sure what google can do about bad coding, is there a way to figure out which apps can cause slowness?
kirandeep said:
I have 150 apps, and yes there is slowness, i am also using minfreemanager on aggressive setting and this makes a HUGE difference.
Not sure what google can do about bad coding, is there a way to figure out which apps can cause slowness?
Click to expand...
Click to collapse
Yes... read my post I made just above yours.
so i should use SystemPanel Lite rather then task killer?
im noticing a massive slowness after everytime i use last fm music strem :-s
ryukent said:
Flash your phone with the modaco Rom and run the lag fix script. This is a temporary problem and a temporary fix. Samsung will fix it soon. They know about it but the phone was rushed out. Needs upgrading that's all. Mine runs very smoothly.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
I read somewhere that the lag fix will recreate the problem of Android, which is low space to install apps!!
Is that right?
alpystar said:
so i should use SystemPanel Lite rather then task killer?
im noticing a massive slowness after everytime i use last fm music strem :-s
Click to expand...
Click to collapse
If you really want to find out what is slowing down your system then yes, use SystemPanel.
I can't remember what the difference is between the Lite & Full version.
All I know is I found it looked that good I get the Full version and have not looked back since.
The Lite version will give you some indication what the program does but please check what you get extra in the Full version.
Hello, fine sirs.
I am curious on whether or not you have experienced the issue of calling apps such as Whatsapp or Kakao Talk shutting down after a few hours of use?
I like to sleep with the app still on, but after say 3-5 hours it shuts off automatically.
The apps are white-listed and battery is set to Performance. Neither of these options seem to help.
I don't have any other battery-managment apps installed which may shut down my battery consuming apps.
Any ideas?
Edit: I realize now this question may belong to Troubleshooting subforum. =/ But until deleted, I'll keep an eye here! Cheers.
Have you tried ignoring battery optimization on both apps? Apps> advanced> ignore battery optimizations
Sent from my HUAWEI NXT-L29 using XDA-Developers mobile app
tdamocles said:
Have you tried ignoring battery optimization on both apps? Apps> advanced> ignore battery optimizations
Sent from my HUAWEI NXT-L29 using XDA-Developers mobile app
Click to expand...
Click to collapse
Sadly doesn't do the trick, I tried already. :/
TheKiks said:
Sadly doesn't do the trick, I tried already. :/
Click to expand...
Click to collapse
Tell as excactly what is your version...AL10Cxxxxxx - L29CxxxBxxx??????
For example with L29C636B103 - L29C636B170 - L29C432B103 - L29C432B152 there are a lot of problems with notifications but when you will upadate to L29C432B170 - L29C636B180 - L29C10B170 it should working all perfect (except Viber maybe)
tsiglas said:
Tell as excactly what is your version...AL10Cxxxxxx - L29CxxxBxxx??????
For example with L29C636B103 - L29C636B170 - L29C432B103 - L29C432B152 there are a lot of problems with notifications but when you will upadate to L29C432B170 - L29C636B180 - L29C10B170 it should working all perfect (except Viber maybe)
Click to expand...
Click to collapse
Hi, that's some very specific information you've acquired! My version is NXT-L29C432B170, therefore one of the ones you've listed as should be working.
Still, if I don't access my phone after 3-4 hours as to "tell" it I still use the voice program, it closes. Sadly.
TheKiks said:
Hi, that's some very specific information you've acquired! My version is NXT-L29C432B170, therefore one of the ones you've listed as should be working.
Still, if I don't access my phone after 3-4 hours as to "tell" it I still use the voice program, it closes. Sadly.
Click to expand...
Click to collapse
Then you have to try the newest L29C636B180 rom... You can install very easy with dload method(without root or unlocked bootloader) but you have to know that you will loose OTA update, online themes and 3g - 4g icons only with data closed (when you activate data the icons working perfectly)... But whenever new update for your version(C432) show up you can install it back with dload method and everything will work again (OTA THEMES...)
I have B180 almost a month and everything working great (my version is C636) and notifications... Unless you will have to wait at end of May for B321 to come as update to Europe version (C432) Now only Chinese AL10 has get it....
It's critical to know that every time you update you will have to restore the phone (format) to make sure that everything is set up for andand with new version
I have the L29C636B180 update.
I will note: Notifications for applications are coming more frequently now.
I also note [on the bad side]: Two of my essential apps that rely on automation & wake locks are not functioning properly.
a) Applications are in Battery Manager → Protected Apps
b) Applications are 'Allowed' in → Ignore Battery Optimizations
c) Battery Power Plan: Performance
My 2 applications which relies on timers and wake locks to enable/disable certain features have noted. Their applications are being killed & restarted despite being "whitelisted". They are:
a) Silence Premium
b) Situations
I have a Oneplus One on Marshmallow 6 and this does not happen. What is wrong with Huawei? What is wrong with EMUI. I should not have decided to buy a piece of hardware with software from PROC.
Is someone @huawei actually trying to reach out and fix issues??
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.
So, it's a well known issue with OP in general that the memory management is horrible for apps running in the background and get killed randomly regardless the settings you made.
My nr. 1 issue:
When i ride on my bike i have a helmet with integrated bluetooth system for music and navigation.
So i open Tomtom Go navi, set "allow running in the background", don't optimize battery, app lock in recent etc. etc.
But still, when driving on a straight road for a couple of miles when there is no spoken directions from the navi app.... It's get killed by OP
I need to pull over and restart the app again....
Are there any fixes for this?
I also have a Samsung J3 with way less memory but the navi app never gets killed.
g-member said:
Are there any fixes for this?
I also have a Samsung J3 with way less memory but the navi app never gets killed.
Click to expand...
Click to collapse
It's not "Memory Managenent", it's Battery Management. And, yes...Oneplus are one of the worst offenders. (Nokia are the worst). Manufacturers want people to believe that their devices perform best at Battery life so they aggressively kill background processes.
No, there's nothing you can do if you use OOS. Custom ROMs are much better. I never have apps booted from Memory.
https://dontkillmyapp.com
I'm using stock rom but rooted, i looked for a custom rom but can't find any rom claiming to have this issue fixed.....
g-member said:
I'm using stock rom but rooted, i looked for a custom rom but can't find any rom claiming to have this issue fixed.....
Click to expand...
Click to collapse
There's nothing to be "fixed". Custom ROMs are based on AOSP, which doesn't have the problem. It's the manufacturers that add the aggressive Battery Optimisation to their ROMs.
Ok, than that's clear.....
ISO of a good custom rom then.
Thnx
g-member said:
Ok, than that's clear.....
ISO of a good custom rom then.
Thnx
Click to expand...
Click to collapse
I remember that ram management was great on Pixel Experience Rom. But I think it's not developed anymore, not sure though
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?