Question Anyways to improve app management / frequent app closures? - OnePlus Nord N200 5G

The phone runs well, but it can barely keep chrome and a settings page open in the background. There should be around 1.4gb free in the background.
Flashing other roms should help, however trying to unlock the bootloader has proven challenging.

I've found disabling the Google app, and removing permissions from the default Camera and OnePlus Launcher to help significantly.
Here's my stock RAM usage without anything disabled:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My screenshot didn't include this, but Camera and OnePlus Launcher are just below, too, despite me using a third party camera (OpenCamera) and launcher (Nova Launcher).
I disabled Google, disabled Assistant, and force killed and removed all permissions from Camera and OnePlus Launcher, and now I can keep 3 or even 4 apps in memory! Like, I can switch back and forth between GMail, Firefox, and Settings without any of them ever leaving memory.
I suspect my removing permissions on the other two apps didn't do a ton, so I think it was disabling Google that did the trick. Not having Google Assistant running 100% of the time must have opened up a lot of RAM....
Here's a fuller screenshot of my memory usage for the "past day" which includes a lot of time before I did this, and some time after:
Here's a screenshot for the past 3 hours, which is entirely after I did this:
I can't remember my exact total memory usage before, but I think it sat around 3.5GB. The change to behavior was immediate after disabling Google, but memory usage was still up to 3.2 / 3.7GB after a few hours. The next day, it's down to 2.5GB / 3.7GB.
I think disabiling Google and clearing those permissions somehow reduced System memory usage as well?
I suspect, like you said, we'll be able to get an even more effecient system with custom ROMs, and that might make it feasible to re-enable Google Assistant. But for now, this is a huge improvement and I'll be leaving it off.
This was not a very scientific post, but it made such a difference, I had to post it. Could someone else who's experiencing this try it, take full screenshots of the developer options -> app memory usage before and after and confirm if it's entirely Google which makes the difference?

I'm currently seeing if I can disable the oneplus launcher, but it definitely seems to be breaking recents. Changing to nova launcher may possible reduce active ram utilization, although I'm not certain yet. Disabling the google assistant absolutely improved ram usage, so i'm keeping that off. I wish we could bind the gesture that brough up google assistant to just a general google search, but whatever at this point.
BTW, the best way to check active ram usage is under developer settings under running services.

Update to previous post: I disabled quite literally everything I could, replaced stock camera with gcam, I'm still using the oneplus launcher for recents and I'm sitting between 1.4 and 1.6 gb free. This is including not including the 200mb the settings app is utilizing while open. As such, in reality, it should be idling closer to 1.6-1.8 gb. I currently have android os utilizing 1.4 gb, which is the area I'd love to get down as that is the biggest chunk of ram usage. Either way, there seems to be progress and I'll see how it runs over the coming days.

To be clear, I removed permissions from OnePlus Launcher, but I couldn't seem to find a way to actually disable it... So it's still running in the background on my phone, in addition to Nova Launcher. But I'm glad that helped, and than disabling Google helped for you too!

daboross said:
To be clear, I removed permissions from OnePlus Launcher, but I couldn't seem to find a way to actually disable it... So it's still running in the background on my phone, in addition to Nova Launcher. But I'm glad that helped, and than disabling Google helped for you too!
Click to expand...
Click to collapse
You can disable it via an adb command, however it removes the recents capability so you have to leave it running. Switching launchers nets you a total ram usage of 67mb for one plus laucher + whatever the other launcher is using, however it already uses 127 mb when the oneplus launcher is the main launcher basically making it a wash.
The phone is much improved, but even now the app management is definitely too severe imo

Related

[Q] Forcibly preventing app kill

Need a way to prevent an app of choice from being killed when low on memory without recompiling the app, adding a notification, or any of that horsecrap. If absolutely necessary I can rewrite a chunk of the ROM.
It still amazes me that Froyo has this many oversights / poor choices, especially with regard to user control over button actions and internal workings.
bump
also, galaxy s2 is going to be awesome in US
I'm using cyanogen now if that makes it any easier.
yet again
.
really would be nice to know..
it's for my custom lockscreen which uses a replacement home, I want to keep the default home launcher in memory but froyo has no user-customizable memory management options.
reporting for duty
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-bump-
Edited:
I ended up using a service to poll for processes that are in the foreground which is a much-much-much better solution than a home replacement, as well as being able to control apps on the lock screen (several allow use of the web browser, which is even more of a security issue).
I still need to know how to do this for something else though.
loving the feedback guys
woo A+ 10/10 thread
also pageking
clap clap clap
I feel like I'm trying to entertain myself.
guys...
....
cough cough cough
so I found this
https://market.android.com/details?id=com.lim.android.automemman
LauncherPro doesn't show up in the list, but it's a nice replacement for my current one (used exclusively for development purposes)
ryadztu said:
so I found this
https://market.android.com/details?id=com.lim.android.automemman
LauncherPro doesn't show up in the list, but it's a nice replacement for my current one (used exclusively for development purposes)
Click to expand...
Click to collapse
Hows this app working? Im looking to find something to prevent unwarranted killing of certain apps: various games and my browser (not all together or anything), which given that I get sidetracked a lot, I don't like to return to just to find that its all been shut down. My SGS2 has a gig of ram, many of the tasks that use less than 100mb are killed while im talking on the phone for a while doing nothing else with little or nothing open. Email and other little syncing things cannot consume all of this phones resources, to the point one fairly medium-sized task must be euthanized!
Searching has yielded very little, most people are looking for the opposite: some crazy task-killer app to kill, kill, double-kill, killing-spree, RAMPAGE! lol! Some things were goot about winmo 6.x, for example a quick:
HKCU/software/HTC/taskmanager/enableautokill = "0"
is the winmo equivalent to the answer, IF ram isn't tightly budgeted already. I had apps running for DAYS on my HTC Raphael with that setting
I'm testing it again
-Setting the killing spree threshold to 0 for all the sliders seems to help a _lot_.
-Setting the process's priority / using "Always keep alive" is only temporary and doesn't affect anything on my device
-This app is really useful
ryadztu said:
I feel like I'm trying to entertain myself.
Click to expand...
Click to collapse
hahaha....wow....I'm overwhelmed by the complete lack of response to this, even after all your bumps
I came across this thread while trying to figure out the same thing myself. But as euphoria47 said, all the searches are cluttered with how to kill apps, not how to prevent them from being killed....I can't seem to find the "magical" keywords to find a legitimate answer to this question.
How did that app you linked to work for you? I'm trying to force one app to stay in memory (QuickDesk), but can't figure out how...

go launcher... what am i doing?

Who here uses go launcher? I'm new to android so please bear with me. I was looking at themes and stuff and saw go launcher mentioned. I also saw it mentioned as a means for using scrollable wallpapers. So I downloaded it, opened it, and basically had no idea how to use my phone once i did. all my stock icons and everything were gone and there were 'download' bars everywhere. i realized when hitting the home button i could switch back to the default launcher and thats where i'm at now.
So before diving into messing with go launcher, is it worth it? Does it work well once properly set up? if so, got any tips or is there a site explaining how to use it and everything? I couldn't even find the applications button.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Go Launcher is the best Launcher ever... Just need to play around..
Sent from my SAMSUNG-SGH-I717 using Tapatalk
Ok, so I was messing around with it a bit this morning and I'm figuring it out. One thing I can't get still is scrolling wallpaper. When I went to set it, it asked me if I wanted scrolling (and yes i've got a 1600x1280 image that I'm using), but it doesn't scroll. Is there something else that I might be missing?
Also, I installed their go task manager on one of my screens. It seems I have about 30 apps running. Is this normal? Was it like this on the stock launcher, or with this launcher do I have to constantly be sure to kill everything?
How's your battery? I never have that many apps running at once ..
I just started using GO launcher too, but it's very similar to adw ex which is what I've always used. These launchers are very easy to set up. Long-press on the screen to add your icons and widgets and so forth. Everything can also be resized, like long-pressing over a widget to get it resized properly to our larger screens. Just press the menu button and go through the preferences and see how you want to set it up to your liking. Also, go to themes and you can change everything such as icons and wallpapers in one step. Mine is currently on the ICS theme which comes preinstalled on the launcher.
I don't really use task killers so I'm not quite sure if the number of apps running is normal for you or not. From what I understand the android OS automatically deals with managing apps in the background and you should never really need to use a task killer.
I would recommend googling GO launcher guide for more in-depth reading if you're confused at all
Here are some screens showing what I think are the open apps. I'm not sure if theres a difference between open apps and apps running in the background. I didn't want to take a screen of each app as i scrolled through but you get the idea.
In ics theme using go launcher, folders on home screen.
Clicking on folder to open, it opens on top side of the phone,
How can I change pening of foldee to bottom side of phone by the location of folder.
Like in adw ex launcher.
Sent from my SGH-I717R using XDA
Go Launcher, atleast the version Im running (beta) the task manager widget shows apps running in the background as well as apps you have loaded. There are two different styles of widget you can choose for the task manager. The minimal version just shows a gauge / no apps and used / free memory. I think the one you are using is the 4x2 widget that shows app icons...
cgibsong002 said:
Here are some screens showing what I think are the open apps. I'm not sure if theres a difference between open apps and apps running in the background. I didn't want to take a screen of each app as i scrolled through but you get the idea.
Click to expand...
Click to collapse

[Q] Earphones Connected is there any use?

I was wondering if there is anyway to make more applications show up for this earphones connected prompt in my notification drop down. If there isn't, is there a way to disable it completely? It is really not helpful without giving me like google music or something else as an option.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I followed this guide:
http://forum.xda-developers.com/showthread.php?t=1756885
and used this stripped down rom:
http://forum.xda-developers.com/showthread.php?t=1759642
Also somewhat related, does the galaxy s3 have support for lock screen music controls? I know it was a ICS default feature. It doesn't show for Google Play Music (or whatever it's name is at this point).
I also would like to add Google music and iheart radio in that menu. Any ideas? I am currently rooted using stock ROM
Sent from my SAMSUNG-SGH-I747 using xda premium
Just figured I should mention this, I put this rom on: and now I got more options, probably the stock options. It would be awesome to make this configurable in the future. I think a lot of us are getting ahead on expectations in development right now with this locked down bootloader, as it is still in the way of custom kernels and such. I think many of the capable dev's are busy trying to figure out how to fully unlock this device.
Heres an idea, I might give this one a try:
based off this: http://www.s3forums.com/forum/galaxy-s3-hacking-mods/874-hack-remove-wifi-reminder.html
edit this:
ContextAwareService -> logDatabase.db -> appLogTable
This appears to be holding the same shortcuts that the headphones plugged in thing brings up. When I plug in my headphones it crashes the SQLite Editor if I am viewing the database at the same time. Which leads me to believe it is making use of the sqlite database.
Edit:
indeed, I deleted the google talk as an option and it no longer shows when I plug in the headphones.
Update on progress:
I found the touchwiz home database which gave me the launch commands for different applications. I think I can add whichever I want to that database list in the same format at this point. Phone is doing a nandroid backup before I go any further. Here are the screen shots, and it was located in:
TouchWiz home -> launcher.db -> appOrder
Is there a hide/spoiler/resize option for the images? They are kind of large...
Got it working. =)
So I'll try to write up a better how to in the next few days. But these screen shots should be sufficient for now I figure. Here is proof it is working:
quick side note: notice the number skips 9 (what gtalk used to occupy). I would probably just edit gtalk to become Play Music, instead of deleting as I did.
__
__
edit:
Quick observation, anyone notice the fm radio option is default in the database? Not sure if that is because of the rom, or if included with even the stock Verizon.
xCaldazar said:
Got it working. =)
So I'll try to write up a better how to in the next few days. But these screen shots should be sufficient for now I figure. Here is proof it is working:
quick side note: notice the number skips 9 (what gtalk used to occupy). I would probably just edit gtalk to become Play Music, instead of deleting as I did.
__
__
edit:
Quick observation, anyone notice the fm radio option is default in the database? Not sure if that is because of the rom, or if included with even the stock Verizon.
Click to expand...
Click to collapse
Anyway to removes them completely?
Sent from my SPH-L710 using Tapatalk 2
I would like to know to remove the option completely too...as it takes too much space in drop-down notification
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
I'll do a nandroid backup and see if deleting the entries removes it cleanly. I suspecting the icon will still be there and such. Seems like a poor way to remove it even if it does work, I imagine the process will still run and such even if it doesn't show in notification bar. Giving it a shot in a little bit though.
Quick report back while I restore:
At first, it actually restored the original options after I deleted all entries. If I want into another table within the database and set the value to 0, then deleted the entries they would stay gone. Although they still allocated the same space it just didn't show them. I'll provide screenshots shortly.
Screenshots:
First attempt repopulated the default options:
Second attempt:
First go to 'sqllite seq' and set 'appLogTable' equal to 0:
Once again delete all the entries
Then you get this:
So even worse than I suspected. I thought it would at least allocate some extra space in the notification drop down. It takes up the same room, it is just blank now.
Made the how to:
http://forum.xda-developers.com/showthread.php?p=28986432#post28986432
freezing the contextaware service gets rid of it showing from the notifications at all
I forget who discovered this but it wasnt me

[MOD][XPOSED] Eternal Process Lock V1.4

Introduction:
Modify process oom_adj parameters by intercepting AMS
,prevent the application from being cleaned when running out of memory。
Features:
1. Frequent applications running out of memory are cleaned up by the system.
Download: repo.xposed.info/module/top.fols.aapp.eternalprocessxposed
Xposed Package Name: top.fols.aapp.eternalprocessxposed
Status: stalbe
Current Beta Version: 3.1.6
Changes:
Improving Module Compatibility
fixed bug
Created 2018-05-30
Last Updated 2019-04-28
Github: https://github.com/xiaoxinwangluo/android_xposedapp_eternalprocessxposed
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Even after a reboot it says: "Inactivated Xposed Modules".
So it's not working (for me) or am I wrong?
Sorry This is my problem
I have fixed this bug
Doesn't do anything
This mod is supposed to prevent selected background apps from being killed by the OS in case of low RAM, right? Well, for me, it doesn't. I just installed the mod, activated and started it, selected my music player, set it to "locked", rebooted, started some music, opened a very resource demanding website and the music player was closed just like without the mod.
Also it doesn't show all apps. for example GBoard is missing, just like the majority of system apps.
mark!支持国人devs!
I tested with FreeRamMemory, locked music player and viper, and started a full ram fill, which produced a low ram condition, but viper and poweramp stayed in ram even till the foreground app got killed! Very good modul i recommend it!
Not compatible with KitKat ? Thats too bad...
Hello... Thanks for the mod... Can you plz explain Red n Black lock means? And why I getting notifications for lock added to new/updated apps?
s
In simple terms black lock can manually stop red can't stop it
In simple terms black lock can manually stop red can't stop it
Very interesting module!
@784920843, would you mind telling why the module needs phone and storage permissions?
Sorry for being paranoid, but Xposed modules are essentially omnipotent. Or are you interested in making the module open source?
Edit: The module wants internet as well?
Is it possible for us to select a little higher oom_adj value? I want an app can be locked from lmk but can still be killed automatically by greenify
THIS IS GREAT! My phone has 6 gigs of RAM and Android still would never use more than about 1.3. I would have to wait SECONDS for the stupid messaging app to reload and by then I forgot what I was going to say. ITS frigging 2018! My freaking Palm Pilot was faster.
Now with this mod i locked my important apps in memory and they START INSTANTLY like they god damn well should have in the FIRST PLACE. And I still have 3 gigs of free memory. Why the hell doesn't Android work like this in the first place? Of course it would be reasonable if I had a sissy loser phone with 2 gigs RAM, but it knows damn well I have 6. What the hell is it saving all that extra RAM for? Of all the stupid things.
So my phone's still running great but I keep getting this annoying toast saying "device memory low" even though I still have almost 3 gigs free... Any ideas how to stop it. It's super annoying.
Update: it appears to have been some random app in the background creating that toast. Why? Who knows.
Thanks for this awesome module!!
Only problem (for me), It keeps spamming xposed logs.
Holy s*** it's working on LineageOS 15.1 Thanks so much man!!
Hope this isn't abandoned as it s a really useful mod, even nowadays.
Please add the possibility to choose the ooj level.
Curious Boy said:
Only problem (for me), It keeps spamming xposed logs.
Click to expand...
Click to collapse
Yeah I had this too. I modded the apk to remove it.
ninestarkoko said:
Hope this isn't abandoned as it s a really useful mod, even nowadays.
Please add the possibility to choose the ooj level.
Click to expand...
Click to collapse
I wouldn't mind this as well. But it appears the OP has stopped working on it. If they don't reply soon, I'll mod it and post the apk and if the OP doesn't like it i'll remove it then.
Thanks, you should really post it when it's ready!
There are already so many abandoned xposed modules... Seems like everyone moved to Magisk mods, though it can't obviously do everything Xposed Framework can.

Question Apps being aggressively closed following June update!

Hi folks,
I'm wondering if anyone has a solution to this: Immediately following applying the June update, I noticed certain apps (crucially, Angry Birds2) were being closed in the background as soon as I switch to other apps. Previously, I could have AB2 open, go do other things on the phone, come back half an hour, and AB2 would still be open. Now, even brief switches to other apps results in it being closed.
Figuring it had been switched to a higher level of battery optimization, I checked the AB2 app and made sure it was still Unrestricted (it is).
Battery Saver is off.
Adaptive Battery is on, but it was before the update too.
What other settings do I need to monkey with to fix this?
Thanks in advance!
Developer options>standby apps, check bucket state of app. It should be active.
If that's the case disable all global power management. If disabled all buckets show as active and their state can't be altered.
Google global power management never worked right. Turn all that junk off.
Deal with power hogs on a case by case basis instead. In settings individual apps can be set to not run in background without invoking global power management.
blackhawk said:
Developer options>standby apps, check bucket state of app. It should be active.
If that's the case disable all global power management. If disabled all buckets show as active and their state can't be altered.
Google global power management never worked right. Turn all that junk off.
Deal with power hogs on a case by case basis instead. In settings individual apps can be set to not run in background without invoking global power management.
Click to expand...
Click to collapse
For AB2 it shows "exempted" and is grayed out. What does that mean? Meanwhile I'm turning off Adaptive power. Anything else I need to turn off, while I'm at it?
Frankenscript said:
For AB2 it shows "exempted" and is grayed out. What does that mean? Meanwhile I'm turning off Adaptive power. Anything else I need to turn off, while I'm at it?
Click to expand...
Click to collapse
Exempted? More like KIA Erratic behavior is typically what it causes on my Samsung's.
In power management the only thing I enable would be fast charging if you want that.
Not familiar with Pixel settings but they are similar as it's a Google Android based subsystem.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sadly all similar settings are now turned off and the phone has been rebooted. AB2 still closes nearly instantly when I switch to another app. Sigh.
Frankenscript said:
Sadly all similar settings are now turned off and the phone has been rebooted. AB2 still closes nearly instantly when I switch to another app. Sigh.
Click to expand...
Click to collapse
Try clearing app cache.
More drastically delete data or reinstall it.
It may be the app itself is no longer compatible now and needs an update.
On a Samsung my first choice would be to clear the system cache found on the boot menu. I've been told Pixel's don't have this option.
Personally I avoid all OTA updates as they can and do break things. Pie and above are fairly secure if you don't do stupid things.

Categories

Resources