Garbage Collector Over Killing Background Apps - Moto G4 Questions & Answers

Does anyone else have issues with their Moto g4 killing background apps that should not be killed? For example, Spotify, Google Maps, and Pocket Cast are all killed if I run them in the background (time delay varies, 30-90 seconds typically), despite having a persistent notification. I have only had this issue on this phone. These applications are not optimized for the battery.

Another question, is there a way to track what is killing apps (to see if it is some unknown app actually killing them)?

Related

High number of unrelated apps running on boot.

Just noticed on the last couple of Roms that there are a number of unused applications running in the background. No particular builds are better or worse.
Why is this the case?
Eg stock MDJFroyo Streak Lite and with all the widjets deleted and a fresh restart I have
Facebook
Gallery
Google Search
Maps
Music
Search
Twitter
Youtube.
Now I don't normally use any of these and have static wallpaper with wifi and bluetooth disabled. No widgets showing.
Is this normal?
Was going to use a tool to prevent these from auto loading.
i use autorun killer to see what runs on boot up
give it a try and disable those you dont need
Ran autotask killer however none of the apps showed up.
This is perfectly normal...using a Task Killer won't work as the app will just start up again soon after you kill it. task Killers are not recommended.
It just means the apps start faster when you launch them...they don't do any harm sitting idle in the background.
search for "AUTORUN killer"
not auto-TASK

End tasks when closing apps

I've noticed that when I close an app (exit it) it usually stays open in the background. An example for this would be Facebook or Google Goggles.
I don't want to have those apps drain my battery when I don't use them and I don't want to have to close them manually every time I exit them. What can I do?
Please help
you dont close them because they dont drain battery. that is the way android OS and its apps are written. when they lose foreground focus, they do into paused state.
there is no way for you to exit them.
now that said, there are some apps that are buggy. the facebook app for example eats my CPU when i am not using it, because they did not code it properly.
best thing you can do is use the paid version of system panel to use monitoring to see what actually is using your CPU when in the background. this will prove to you what is and is not using resources.
I started a thread on this as this was my exact issue: My "Awake" bar would be solid for over 8 hours when I had absolutely nothing 3rd party running... but there are buggy apps that still stay awake as a cached process.
More of my issue and fix here:
http://forum.xda-developers.com/showthread.php?t=1094666

[Q] How can I manage background processes?

Basically, I went into Settings>Apps>Running and realised I don't want Facebook in there ever unless I actually open the app. I opened the Facebook app Settings and disabled Notifications off. Also Messenger Location Services is off too. Each time I try and kill the process or reboot it comes back.
Things that load that I want to permanently disable unless I actually open the specific app:
Facebook
Maps
Google Play Store
I use Titanium to put a widget on my screen where I can freeze and unfreeze that app. I have done it with maps and some other programs that were aggressive in their communications. Unfreeze them, open and use, refreeze when done.
Thanks grubbster.
Any other options available to me?
Other than ignoring it, you can kill the app each time you close it. There's a developmental setting that shuts down the apps (not sure if it's in Cyanogenmod only or just stock) because it doesn't keep anything in the background. This would close ANY app that's not holding forground view however.
I'll just leave it as it is to be honest. Just thought there was a quick way of doing it similar to how the MSCONFIG utility operates in Windows.
MSCONFIG does that for startup, there are apps that block apps from starting up in android too but those apps need to be running as well which defeats the whole purpose of having plenty of RAM in the first place..
The whole point is Android manages the background apps just fine. Having 2GB of RAM but wanting 1.6GB to be free all the time (200MB used by GPU AFAIK so you are left with 1.8GB) is not the smartest way to manage apps. You want them snappy, in and out and done. Apps sitting in memory doesn't use more power because the RAM is active even as long as it's plugged into the the motherboard.

High current consuming apps running in the background

Hi,
For some time now I have struggled With a few apps always emerging under battery information under settings.
The apps involved is Facebook, Instagram (and a couple more) and both has the Message "Awake the system on a regular basis".
Marking the apps and Select Close or Deactivate is successful for a few moments. However after a short time they are back again whether I use the apps or not. Is there a way to stop the apps from emerging? I seem to hav tried everything, ie. closing and/or deactivating under Settings>battery and de-selecting Allow warnings under the separate app. Any ideas are appreciated.

Running services / Cached services

1) Is there any trick or settings to prevent selected apps services from running in background, prevent autostart? It's just waste of battery and Ram. (Check attached)
2) what is the difference between running services & cached services?
It's Android's RAM management. Cached services means whatever services you have used till now are stored in the RAM at whatever capacity the OS thinks it's available.
Running services means the services that are actually being used by the OS/apps currently.
Best not to touch that as Android does a good job of RAM management and the more you clear your recent apps/these cached services, the more redraws are made by the system /OS; eg. To start an app again which you were using a few moments ago but, you cleared it from recent apps (smaller difference magnitude) and cached services (bigger difference magnitude).
The redraws also uses more battery and power, ofc slightly.
And there is this adage that goes - Free RAM is wasted RAM, which I agree only slightly.
You can't prevent autostart in the stock ROM unless you are rooted. Atleast if I recall correctly, i used to cringe looking at the apps autostarting and running in the BG with it's services (obviously there ways around this).
So the whole thing that I mentioned (1st and 2nd para) kind of becomes pointless? as there ****ty apps like Facebook, for eg which keep running in the background, autostart, have so many bloody cached services like cancer which hogs the system resources. I disable these apps immediately when I am done using them.

Categories

Resources