[Bug] Aggressive RAM management on 9.0 - Essential Phone Guides, News, & Discussion

I notice many apps close when they shouldn't. I don't play any games at all and the most apps I use at the same time are Instagram, WhatsApp, Now for Reddit, Chrome and Spotify.
Maybe the last 2 apps stay in memory but all the rest don't. Sometimes even Spotify closes.
Anyone else experiencing this? I'm on Android 9.0.

fabiozon said:
I notice many apps close when they shouldn't. I don't play any games at all and the most apps I use at the same time are Instagram, WhatsApp, Now for Reddit, Chrome and Spotify.
Maybe the last 2 apps stay in memory but all the rest don't. Sometimes even Spotify closes.
Anyone else experiencing this? I'm on Android 9.0.
Click to expand...
Click to collapse
I'm not having any of these problems. I have 15 opened apps right now, and none have been closed.

Stock or custom rom? I feel I'm experiencing this with custom roms on my Pixel, but stock seems to not have this effect (still waiting for my PH-1 to be delivered)

No problems like that here on unrooted stock, official pie.

I see the same with instagram and play music. Since the upgrade the closes in a minute or so and that absolutely sucks.

OP
Chrome Dev does occasionally reload for me, especially with 5+ tabs, but I expect CD to do so more than other apps. In the main everything stays in memory for a good enough time (hours +) with multiple apps.

Same here, usually I have a list of apps open in recents. They seem to be getting closed after not being used for while.
Already switched off Battery Management (thought this might be the cause) but didn't help.
I'm also on official Pie, no root or other tweaks.
EDIT: I probably should mention that I am using the la(te)st Xperia launcher from APKMirror instead of the Essential's default launcher. Not sure if this might be an explanation...

Related

[Q] Google+ and Greenify

Hey guys, so I finally rooted my N5 recently and started using greenify. I noticed that even after hibernating google+, it still runs in the background. More specifically, I noticed that both today and yesterday about 30 min after unplugging my phone G+ was using 50% of the battery. Yesterday I forced closed it and it seemed to have stopped but it really annoyed me this morning considering I hibernated it so it should not happen. I disabled the app, until realizing that I do need the photos app because I like to keep all the pictures from my previous phones/cameras in the cloud and the regular gallery doesn't seem to do it or do it as well. So I enabled the app, and then I realized I should just use app opsX to disable the permission allowing G+ to keep phone awake. It seemed to have worked and during the day it did wake the phone for about 2 min. I wasn't sure why this happened seeing I disabled it from being able to do that but I didn't think much of it. However, now I opened Greenify and all of a sudden it can no longer hibernate G+, yet it was able to Greenify it before.
Has anyone encountered this problem? If so what did you guys do? Basically, I want to know if there's anything I can do besides uninstall/disable/freeze since I want to use the photos app. Thanks!
I don't seem to have any issues with Greenify and G+, although I use the donate version which lets you hibernate system apps. However, I have also never used the G+ app on my phone so maybe because I've never started it, it doesn't ever run in the background (just a guess btw!).
If you're only bothered about cloud storage for your photos then Dropbox can do that.
CitizenLee said:
I don't seem to have any issues with Greenify and G+, although I use the donate version which lets you hibernate system apps. However, I have also never used the G+ app on my phone so maybe because I've never started it, it doesn't ever run in the background (just a guess btw!).
If you're only bothered about cloud storage for your photos then Dropbox can do that.
Click to expand...
Click to collapse
Thanks. Yeah I have the donated version as well and I did check the "better performance" option. I don't think I've ever physically opened the app as well unless the photos app counts which I suppose it does. I guess there's dropbox, I just don't really use it that much and I feel like the photos app seems more convenient since it's actually a gallery. Also, there's no limit to how many photos you can upload. Although I haven't used dropbox in a while so maybe it's changed.
Edit: I think it might actually have to do with taking a picture. I'm not 100% sure though. Regardless, I find it weird that after I took away its' permission to stay awake in App Opps X it's still able to keep the phone awake. Unless App Opps X just doesn't work.

Issue with apps not running in background - looking for advice

Hi All,
So it appears that after installing 4.4.2 I cannot seem to get Google Play Music or Pandora to run without leaving the app open and in the foreground. I'm not sure if there is a function that has to be enabled to do this in KK, or if it is some mod I did long ago to force kill apps that are in background.
I understand this is a bit of a goose chase, but I was hoping people would be able to suggest things to check to see whether we can fix this problem of mine together or not.
- Could it be something in an Xposed Module? XBlast, GravityBox, etc. have a setting for killing background processes?
- Could it be something in the KitKat system itself that has to be enabled / disabled?
- Could it be the new settings within the apps themselves?
- Could it be a third party app (that I may have installed and am unaware of) killing background processes?
- Other ideas?
Apps run when phone screen is off, and when phone is locked, but if I go into a different app the music stops cold.
Thanks in advance for any thoughts!
Ah yes, this is the curse of Android 4.3+. I read in the Greenify settings that in 4.3 or greater, Android killed off an exploit that allowed apps to increase their priority to stay in memory. In turn, running apps can be killed off when memory is low. Horrible. I've had it across all ROMs and stock as well. I've done as much research as humanly possible to subvert this.
I'm by no means an expert on Android. I have really limited knowledge of how it runs. But I think that information in accurate, because my own personal solutions seem to support it.
Generally what I have done is keep as few running processes as possible. This means no live wallpaper, Greenifying as much as I can, and clearing out any recents frequently. If this fails, I have to restart and things get back on track again.
Go into your developer settings and look at the process stats. If it says memory is critical, you'll need to start trimming down your background processes. I don't quite exactly know how to interpret all the data that is present there, but "critical" seems clear cut at least.
If anyone has more information on this, please add to the convo!
Thanks bud. On the plus side at least I know it's nothing I've done to a setting here or there (other than going ahead and installing KK on the phone, lol).
Why Google/Motorola would make simple things like this worse as updates come out is beyond me... le sigh.
A "simple phone upgrade" to something unlockable with 2+ GB RAM is my best option I guess, lol.
Agreed. Luckily 2 GB is the baseline nowadays, but I feel like I don't want to take the chance and just go for 3 next time.
While we're still on the subject though, which xposed modules do you use? I wonder if they do contribute to RAM usage.
jldr said:
Agreed. Luckily 2 GB is the baseline nowadays, but I feel like I don't want to take the chance and just go for 3 next time.
While we're still on the subject though, which xposed modules do you use? I wonder if they do contribute to RAM usage.
Click to expand...
Click to collapse
Xposed list is pretty lengthy, I'm sure something here is using RAM. And I totally agree with you - baseline 3GB (or more) in my next phone, with a quad or even octo-core processor.
Ah, the days of 1GB and dual-core being top of the line, lol.
Here's the Xposed list:
- AcDisplay
- All Notifications Expanded
- App Settings
- Chrome New Tab
- Disable Location Consent
- GPS Notification
- Google Play Music Listen Later (Just installed recently, haven't set up yet to test it out)
- Google Search API
- Gravity Box
- Handle External Storage
- Hide Apps Xposed (did not work on 4.1.2 since I wasn't running GEL, haven't tested after KK install)
- MinMinGuard
- MinMinLock (Just installed, haven't set up yet, might delete)
- Multi Users
- Notification Mod
- OK Google For 3rd Party Launchers (Just installed, haven't really played with yet)
- Pandora Patcher
- Stop Switch Delay
- Swiftkey Goodness On More Fields
- Swipeback
- Ultimate Dynamic Navbar
- UnToaster Xposed (version 1.1.7 - I couldn't get TiBu to work correctly with the newer versions through 1.2.5)
- Unbeloved Hosts
- XBlast Tools
- Xposed Preference Injector
- Xposed Torch (couldn't get to function correctly after KK installation)
- YouTube Ad Away
- YouTube Allow Fullscreen HDMI
I've noticed that Gravity Box and XBlast do a lot of the same things, I'm thinking I can whittle one down as long as I can find all of my settings within the other.
Using NotiSysInfo to monitor I noticed my RAM usage typically bounces between 85-125 MB free, depending on what is going on in the phone. This is double from what it used to be on 4.1.2 (typically I'd be running with about 40-50 MB RAM free). Knowing this, I'm not so sure the phone is killing the music apps based on RAM usage alone, unless the threshold for free RAM needed has been raised...
...if that is the case, any idea of a good app to lower the threshold for free RAM before the phone starts killing things? I was looking at Auto Memory Manager, but it didn't seem to do the trick keeping music alive in the background.
Sounds like a good idea for another Xposed Module, lol. Do you happen to know the thread for posting up ideas or requests?
LifeAsADroid said:
Sounds like a good idea for another Xposed Module, lol. Do you happen to know the thread for posting up ideas or requests?
Click to expand...
Click to collapse
http://forum.xda-developers.com/xposed/modules/index-collection-xposed-modules-post-t2327541
I think AMM worked for me for a while, but wasn't perfect. Nothing really ever did the trick like a restart... which makes me think that there is a memory leak somewhere, but I could never track it with any app I used. Maybe it is something to do with xposed? I never tested my phone long enough without it.
I haven't had it in a while, and I've done two things since it kept happening consistently the last time: 1) switch from SwiftKey to Google Keyboard. 2) Deactivate Muzei, best wallpaper app ever (RIP). Both apps seemed to consume variably large amounts of RAM.
Another thing I should note is that when frantically googling memory leaks, someone wrote on XDA that Android can only handle so many services running at once, so that when the number is exceeded, it automatically kills one. Possibly, this is the issue with the music.
coolloser said:
http://forum.xda-developers.com/xposed/modules/index-collection-xposed-modules-post-t2327541
Click to expand...
Click to collapse
Thanks a lot, found the thread right after I posted, lol.
jldr said:
I think AMM worked for me for a while, but wasn't perfect. Nothing really ever did the trick like a restart... which makes me think that there is a memory leak somewhere, but I could never track it with any app I used. Maybe it is something to do with xposed? I never tested my phone long enough without it.
I haven't had it in a while, and I've done two things since it kept happening consistently the last time: 1) switch from SwiftKey to Google Keyboard. 2) Deactivate Muzei, best wallpaper app ever (RIP). Both apps seemed to consume variably large amounts of RAM.
Another thing I should note is that when frantically googling memory leaks, someone wrote on XDA that Android can only handle so many services running at once, so that when the number is exceeded, it automatically kills one. Possibly, this is the issue with the music.
Click to expand...
Click to collapse
I found a solution in the "ask Xposed questions" thread listed above. Use the module App Settings and for the apps to stay running in background checkmark "resident". Works perfectly for me now.
I agree AMM is junk. KeepRunning doesn't work that well either. Xposed all the way!
I wonder if this is the same issue I'm having with Hangouts and SMS notifications. It seems that if I have enough going on in the background, Hangouts will stop giving me notifications for SMS. When I go into the app, the new message(s) is there and waiting for me to read it. This to me is a huge problem. I didn't have this issue on CM11. For me, it seems it most always happens if I'm using the Facebook app and viewing a link from Facebook on Chrome. I've now made a habit of checking Hangouts periodically to see if I have any new messages.
cmajpwc said:
I wonder if this is the same issue I'm having with Hangouts and SMS notifications. It seems that if I have enough going on in the background, Hangouts will stop giving me notifications for SMS. When I go into the app, the new message(s) is there and waiting for me to read it. This to me is a huge problem. I didn't have this issue on CM11. For me, it seems it most always happens if I'm using the Facebook app and viewing a link from Facebook on Chrome. I've now made a habit of checking Hangouts periodically to see if I have any new messages.
Click to expand...
Click to collapse
I would try clearing your data for Hangouts. Sometimes notifications won't come in if they are associated with an older android device ID.
I have had nothing but problems with hangouts and the messaging app. I deleted both and am using a third party messing app now. No problems.
Sent from my DROID RAZR HD using xda app-developers app

Background app keeps closing

Since day one of using the Shield Tablet I have this sort of multitask problem.
When I'm browsing articles using the Feedly app I sometimes open the full article on a Chrome custom tab.
After I spend some time on the Chrome custom tab and want to return to Feedly, Feedly has closed and restart.
This happened many times on the Shield Tablet and not on my previous Nexus 7 2013.
Anyone knows of a fix?
I'm running Tesla ROM with BitO-K10 kernel.
Thanks.
I'm also curious how to prevent the OS from closing certain apps once they are in the background.
Either the OS is killing them or the apps themselves force close after a certain time once in the background.
did anyone find a solution yet? I love the shield but that issue prevents me from using it.
Yeah. It's really annoying. If you switch to answer a message from a buddy and then back into the game, the game starts from the very beginning.

Best battery back up rom suggestions please

I use like 150 apps installed in the phone.
Tried pie open beta(and also other custom roms) with kernels and other greenify apps but battery sticks with 5 to 6 screen on time.
I feel grateful if someone can help me getting the backup 7 or 7+.
I hear some guys are getting 8 and plus sot. I don't know how if everyone is using the same phone. I don't use phone for gaming. My usage involves with social media, YouTube, chats and 40 to 60 minutes using maps and gps.
Is it because of number of apps installed?
It's not about apps installed unless they keep the phone awake at all time, wish I don't think they do.
Unfortunately the best thing to do is just stop using social media lol.. Facebook and snapchat atleast.. Those apps are true battery killers.
If you feel like Facebook is really something you NEED in your life then skip the app and use the browser instead.
The other thing is making sure apps that you don't need notifications from is blocked from background usage in Battery, total usage, click the app you know you can block and select background usage, block
Last is managing the brightness, now there are times for full blast on the display and there is times for low light, don't let the screen blast your eyes if it's not needed to.
whizeguy said:
Unfortunately the best thing to do is just stop using social media lol.. Facebook and snapchat atleast.. Those apps are true battery killers.
If you feel like Facebook is really something you NEED in your life then skip the app and use the browser instead.
Click to expand...
Click to collapse
I agree... Facebook is a Hog. And they push you into using Facebook messenger as well... :-/
I use this... It's a pretty slick front-end for Facebook that uses little of the resources that the app does. It also let's you use messenger without installing it on mobile!
https://play.google.com/store/apps/details?id=com.jesture.phoenix
Sent from my ONEPLUS A6003 using Tapatalk
harigavara said:
I use like 150 apps installed in the phone.
Tried pie open beta(and also other custom roms) with kernels and other greenify apps but battery sticks with 5 to 6 screen on time.
I feel grateful if someone can help me getting the backup 7 or 7+.
I hear some guys are getting 8 and plus sot. I don't know how if everyone is using the same phone. I don't use phone for gaming. My usage involves with social media, YouTube, chats and 40 to 60 minutes using maps and gps.
Is it because of number of apps installed?
Click to expand...
Click to collapse
150 apps lol, how can you manage so much, I think just a simple browser can help you get rid of atleast 100 of them. I never understand the need of app which works on a site on a desktop. Just to keep track of your location and what you are searching online, these apps track you and kills your battery. Go smart, use no tracking browser like bromite and live the freedom.
Now for ROM part, I get the best battery with any OOS + elementalX kernel. None of the custom rom are better than OOS and yes don't forget to remove all Google apps and OnePlus apps, they track you.
Also install betterbatterystats to check what is killing your battery, I easily get upto 8 hrs. of sot if no pubg.

Laggy UI

I have only had this phone for about a week or so. When I turned it on, everything was smooth. Most of the ui elements became very laggy. I updated to android 11, and couldn't get edxposed working, but while trying to get it working.... everything was super smooth.
I reverted back to android 10, everything was smooth. Removed a bunch of google apps, and verizon apps still smooth. Installed magisk, reflashed boot image, installed EdExposed, a patcher to patch installing unsigned apk files, installed youtube vanced, removed the patcher, and the yt vanced installer.... Still smooth.
At some point randomly the next day.... lag city. It's particularly bad in stuff like the discovery feed where scrolling acts like it isn't cached and it lags, and the chat app. If I accidentally click the emoji face, it might take like 6 to 8 seconds before it becomes responsive.
I have fewer things installed on this phone than when I got it.
I haven't really seen many complaints about this, so I am wondering what's going on.
Now all my apps started crashing and the phone needs to be reset, probably reflashed. It's just a barrage of google apps force closing.
johnwaynegacy said:
I have only had this phone for about a week or so. When I turned it on, everything was smooth. Most of the ui elements became very laggy. I updated to android 11, and couldn't get edxposed working, but while trying to get it working.... everything was super smooth.
I reverted back to android 10, everything was smooth. Removed a bunch of google apps, and verizon apps still smooth. Installed magisk, reflashed boot image, installed EdExposed, luckypatcher to patch installing unsigned apk files, installed youtube vanced, removed luckupatcher, and the yt vanced installer.... Still smooth.
At some point randomly the next day.... lag city. It's particularly bad in stuff like the discovery feed where scrolling acts like it isn't cached and it lags, and the chat app. If I accidentally click the emoji face, it might take like 6 to 8 seconds before it becomes responsive.
I have fewer things installed on this phone than when I got it.
I haven't really seen many complaints about this, so I am wondering what's going on.
Click to expand...
Click to collapse
Running Android 11 stock (no hacks or patches) with all of my added apps and no problems at all.
So far stock 10 and Dirty Unicorns 14.7 have run the best for me. I'd hold off on the hacks for a bit untill everything picks up.
I flashed 10 again last night. The only difference is that instead of using the signature patcher I found something in EdExposed manager to run unsigned apk files. It's been good so far, If it stays good, I will just assume the patcher is malicious, and did something that set off a time bomb of sorts. It is a pretty shady app.
Ok, it's now a few hours later, and my lag has returned. I expect to be reflashing and setting this phone up again tomorrow night due to a cascade of gapps force closing.
I got it fixed. It was an app I never mentioned, because I didn't consider that it could cause this. Adblock Reborn.
As soon as disabled it and rebooted, everything was normal again.
johnwaynegacy said:
I got it fixed. It was an app I never mentioned, because I didn't consider that it could cause this. Adblock Reborn.
As soon as disabled it and rebooted, everything was normal again.
Click to expand...
Click to collapse
Thank you for posting this
A friend came to me with a similar issue on his new Pixel 4a, so I jumped on XDA to see if anyone had a similar issue. After reading your post, it turns out that other ad blocker apps can cause this issue as well. He was running an old version of Adaway installed from the XDA Labs app. I updated it to the latest version of Adaway from here, and the problem is gone. He did not have this issue on Android 10, only after updating to Android 11. I would not have thought to check the ad blocker, so thanks again
SuperR. said:
Thank you for posting this
A friend came to me with a similar issue on his new Pixel 4a, so I jumped on XDA to see if anyone had a similar issue. After reading your post, it turns out that other ad blocker apps can cause this issue as well. He was running an old version of Adaway installed from the XDA Labs app. I updated it to the latest version of Adaway from here, and the problem is gone. He did not have this issue on Android 10, only after updating to Android 11. I would not have thought to check the ad blocker, so thanks again
Click to expand...
Click to collapse
Thank you too, because I installed the old version of adaway in place of adblock reborn. It is working fine at this point, and I am on 10. We will see how it goes.
FYI - No issues with AdGuard on Android 10 or 11; just works.

Categories

Resources