Related
Hi guys. Just wanted to plug my app here. It's based on the work that has been happening in the "auto task killer" thread.
In a nutshell this app lets you configure Android's internal memory manager to help define when to shut down different types of apps.
Features:
- Presets and custom settings
- Works with Android 1.5+
- Sliders for easy setting of the apps.
If you have any questions just pop me and email or hit me up on twitter. This is very much a work in progress so I'll be updating it fairly often. So give it a try (QR code below) and I hope you find it useful.
Requires root access
Another good reason to root my Hero. I'd probably do that before upgrading to 2.1.
sanderg said:
Requires root access
Another good reason to root my Hero. I'd probably do that before upgrading to 2.1.
Click to expand...
Click to collapse
Sorry. forgot to mention that it requires root. If you are rooting then I would recommend flashing a 2.1 ROM since that's faster than the 1.5 ROMs. There are caveats of course since not everything is working perfectly on the 2.1 ROMs but it's working good enough for me. Call me shallow but I LOVE live wallpaper.
Could you perhaps give more information? I have set it to mainly 120MB (to test) and nothing is happening. Does it happen every x mins or something?
G8D said:
Could you perhaps give more information? I have set it to mainly 120MB (to test) and nothing is happening. Does it happen every x mins or something?
Click to expand...
Click to collapse
This works differently than a task killer. What you are doing is setting thresholds for each application type. So if you set the threshold for Empty Apps to be 120MB then Android will kill these apps when there is only 120MB left. This would be most of the time.
However these thresholds are soft settings. So if Android needs to start an app/service or the user manually initiates an app/service then these will still start as normal.
This is my understanding of how it works. (I am not an expert regarding this.) However I have noticed that Android is still starting up certain apps that seem to be useless and I haven't used either e.g. Amazon MP3. This could be something to do with the out-of-memory priority of the app. (will need to investigate this)
For me at least, I have found that using a task killer to kill all apps after you apply your settings works the best. But the app should keep things much tidier in terms of memory usage.
As mentioned above these are soft settings and I have tried setting all bars to 120MB and everything still works fine. You may or may not get the same experience but these are soft settings so the worst that could happen is that you have to reboot your phone and revert to the default setting.
In the next update the settings will be saved after reboot but you will still able to go into the app to change the setting anyway.
I hope I answered your question.
Hi,
Does anybody know how to create a shortcut or a script to change the background process limit under developer options?
Ideally, I want to have a shortcut on my homescreen that will automatically change the background process limit to 0 before I play ram intensive games (to prevent lags).
The closest thing I can do is create a shortcut that goes to developer options, but then i still need to change the settings manually.
Thanks!
It's "amazing" that nobody has posted a solution for this one yet ... two years old thread ...
Greetingz.
this app works for me, there's an option in settings to stop background processes http://forum.xda-developers.com/xposed/modules/recent-app-cleaner-t2734053 although you need to be rooted and have Xposed Framework.
pryerlee said:
this app works for me, there's an option in settings to stop background processes http://forum.xda-developers.com/xposed/modules/recent-app-cleaner-t2734053 although you need to be rooted and have Xposed Framework.
Click to expand...
Click to collapse
Thanks but I want to disable bg processes automatically (on boot). I tried your suggested app but it just kill few bg processes, not all... I got only 120MB of free RAM, while I got +200MB with manual disabling.
Greetingz.
Finally figured this out, man was it annoying.
I need it for my 2012 Nexus 7 running Android 5.1.1
It was running slower than molasseses until I changed the data partition to f2fs (make sure you have a kernel and ramdisk that support f2fs!) and enabled this tweak.
It can be done with root access with a single command.
service call activity 51 i32 x
Where x is the number of background processes you want.
If the API changes in the future, it's easy to look it up again.
http://grepcode.com/file/repository...4.4_r1/android/app/IActivityManager.java?av=f
Look for the line with SET_PROCESS_LIMIT_TRANSACTION
http://grepcode.com/file/repository...ERSION/android/app/IActivityManager.java?av=f
Replacing DESIRED_ANDROID_VERSION with the version you're interested in.
It's a "bit" late to post it, but if someone wants to manage that option in the background or manually for whatever reason, here you have a way using the Tasker automation app:
https://www.reddit.com/r/taskernet/comments/d4x1ni/task_toggle_androids_background_process_limit/
tech128 said:
Finally figured this out, man was it annoying.
I need it for my 2012 Nexus 7 running Android 5.1.1
It was running slower than molasseses until I changed the data partition to f2fs (make sure you have a kernel and ramdisk that support f2fs!) and enabled this tweak.
It can be done with root access with a single command.
service call activity 51 i32 x
Where x is the number of background processes you want.
If the API changes in the future, it's easy to look it up again.
http://grepcode.com/file/repository...4.4_r1/android/app/IActivityManager.java?av=f
Look for the line with SET_PROCESS_LIMIT_TRANSACTION
http://grepcode.com/file/repository...ERSION/android/app/IActivityManager.java?av=f
Replacing DESIRED_ANDROID_VERSION with the version you're interested in.
Click to expand...
Click to collapse
hello, anyone? if links for lookup above changes, what to do?
CrashOverride93 said:
It's a "bit" late to post it, but if someone wants to manage that option in the background or manually for whatever reason, here you have a way using the Tasker automation app:
https://www.reddit.com/r/taskernet/comments/d4x1ni
Click to expand...
Click to collapse
hey can u help me change it using termux?
Hi guys,
just one question, search for it but didnt found a solution jet.
I´m using CM9 , latest version ofc. Under Settings -> Developer options -> Background process limit there is some options to choose. I´m unsig "At most, 2 processes". But, after rebooting the device, the option reset itself to "standart".
My question is : Is it possible to set this command as an startup file in the init folder, that after every restart it will be "2 processes" instead of "standart" ??
I hope to get some help, thanks !!!
saphirrot said:
Hi guys,
just one question, search for it but didnt found a solution jet.
I´m using CM9 , latest version ofc. Under Settings -> Developer options -> Background process limit there is some options to choose. I´m unsig "At most, 2 processes". But, after rebooting the device, the option reset itself to "standart".
My question is : Is it possible to set this command as an startup file in the init folder, that after every restart it will be "2 processes" instead of "standart" ??
I hope to get some help, thanks !!!
Click to expand...
Click to collapse
Just a thought but I doubt you can as the phone needs more than 2 process to boot up?.....so I'm guessing this won't ever be a persistent or init.d feature,
Sent from my GT-I9000 using xda premium
Bro, noone said that i want to apply this while booting to phone up...
saphirrot said:
Bro, noone said that i want to apply this while booting to phone up...
Click to expand...
Click to collapse
It was merely a thought
Sent from my GT-I9000 using xda premium
I´ve the same problem....
But I´ve an idea. This app runs an sh file on startup: search in google play for Autostart (root).
but I don´t know the command to set the background process limit... And I don´t know if theres any...
Or can somone say where th Backround Process Limit is saved?
Pretty interesting feature that saves lots of memory and makes the devices work better; i have been using this feature on my Samsung Galaxy tab 2 7, and still setting it up. Makes thing runs better although sometimes you can kill apps that you want to be running in the background.
Any ideas on his question?.
shinydesert said:
Pretty interesting feature that saves lots of memory and makes the devices work better; i have been using this feature on my Samsung Galaxy tab 2 7, and still setting it up. Makes thing runs better although sometimes you can kill apps that you want to be running in the background.
Any ideas on his question?.
Click to expand...
Click to collapse
I'm setting up phones for other people and I have found out that it is the single feature that probably speeds up -the most- most of the phones especially those that are low in the memory department.... Unfortunately to most of the people (that I'm helping with their phones) it is impossible to set this option each and every time that their phones boot so I thought maybe I'd add it a as init.d feature or -maybe so that not to disrupt the booting process- as sth which would run after a timer (which -say- lasts for a minute) runs it's course.
My only question is if anyone know how to enable this feature programmatically (e.g via shell)...
(sorry for the thread ressurection btw)
Two years old unsolved thread and no answer yet... what a shame ...
Greetingz.
this app works for me, there's an option in settings to stop background processes http://forum.xda-developers.com/xposed/modules/recent-app-cleaner-t2734053 although you need to be rooted and have Xposed Framework.
Finally figured this out, man was it annoying.
I need it for my 2012 Nexus 7 running Android 5.1.1
It was running slower than molasseses until I changed the data partition to f2fs (make sure you have a kernel and ramdisk that support f2fs!) and enabled this tweak.
It can be done with root access with a single command.
service call activity 51 i32 x
Where x is the number of background processes you want.
If the API changes in the future, it's easy to look it up again.
http://grepcode.com/file/repository...4.4_r1/android/app/IActivityManager.java?av=f
Look for the line with SET_PROCESS_LIMIT_TRANSACTION
Then just extrapolate that info to http://grepcode.com/file/repository...ERSION/android/app/IActivityManager.java?av=f
Replacing DESIRED_ANDROID_VERSION with the version you're interested in.
Activity number has changed for android 8 and 9
For now the end of 2019, android 8,9 has been the major platform for recent user's handy phone, the command for those use:
```
service call activity 51 i32 x
```
can not be exactly do what you will see in android8 and android9, the major issue was for the activity number '51' must to set it to 42 to Oreo and 47 for Pie, see github issue link (https_:_ //_github.com/flode/SetAndroidProcessLimit/issues/5#issuecomment-546690235 )
That means you should use: `service call activity 42 i32 x` for Oreo and 47 replaced for Pie.
Hope for adding new activity number for Android10
Check that thread for reference:
https://forum.xda-developers.com/showthread.php?t=1494530
Hello fellow MI5 users,
I received my phone one week ago and I start having some issues with the RAM. In fact, at the start of the phone, it's already at 70% filled up which is too much for me. Indeed I use a lot of RAM and I'm that type of guy who let the apps running in background everytime because I keep opening them everytime. I was wondering if it was possible to have a link to a better ROM because I guess it's the problem and also a link for a tutorial on how to flash it I'm a newbie in this type of manipulation but I'm very interested so I hope you will help me guys. By the way, my MIUI version is the MIUI 8 Global 6.8.18. I honestly don't know what can i give as information but I'll answer ASAP at any questions
Have a good day
This is working as design - Android keeps apps in RAM to reduce I/O on resuming from background - faster & more energy efficient.
You can change the number of background processes via the development settings or you can kill apps on closing.
adwinp said:
This is working as design - Android keeps apps in RAM to reduce I/O on resuming from background - faster & more energy efficient.
You can change the number of background processes via the development settings or you can kill apps on closing.
Click to expand...
Click to collapse
I've seen that indeed but it was set at standard so I'll probably put it at 3 I guess. How should I set the memory optimization? I've read it should be set off, altough I tried middle and I feel comfortable like that?
Is it normal to start at 70% without anything started ?
Unitae said:
I've seen that indeed but it was set at standard so I'll probably put it at 3 I guess. How should I set the memory optimization? I've read it should be set off, altough I tried middle and I feel comfortable like that?
Is it normal to start at 70% without anything started ?
Click to expand...
Click to collapse
For the 3GB version? Pretty much. MIUI is horrible.
After booting I typically had 1.3GB / 3.0GB free but after a while this averaged to around 650MB free.
free ram is useless ram , which cant accelerate anything
ps2lover said:
free ram is useless ram , which cant accelerate anything
Click to expand...
Click to collapse
I know that but I need more because I use multi-task a lot. Is there a way to change the ROM so I have more space to work with? Even if the ROM itself is beautiful.
Indeed it's the 3gb version 32gb. It have lags sometimes and I think it's due to the full RAM. Can I have a link to a custom ROM which works fine on this device?
I'm a little confused, you want as much RAM available but you want as many processes in the background as well? That sounds contradicting to me. Memory optimization maps to ZRAM, if you set it off there will be no memory compression and thus even less processes will be kept in the background. If you set it high, you can have as many processes as possible, but there could be lag due to (de)compression time overhead.
Try different Rom
Try to use a different Rom. On the Stock Rom is a lot of bloatware which is using your RAM too.
First you need to get an Bootloader unlock permission and have to unlock the BL.
It could take up to 10 Days to get the permission from Xiaomi
http://forum.xda-developers.com/mi-5/how-to/unlocking-xiaomi-mi-5-bootloader-t3336243
After that you have to flash a recovery like trwp via ADB. Google it for videos or threads how to do it.
http://forum.xda-developers.com/mi-5/development/recovery-twrp-xiaomi-mi-5-t3412123
After that you can flash a developer Rom.
I use the Resurrection Remix and it works fine. The CM 13 stucks in Bootloop. Maybe because I made a full wipe and had to sideload my rom.
Because you don't have a SD card option you have to have the room installed on your hard drive. But just follow the description below
http://forum.xda-developers.com/mi-5/development/unofficial-resurrection-remix-m-5-6-9-t3395945
It took me just 1 day to get the unlock permit but don't try do do it without it. You brick your phone.
The RR Rom works really fine. Fingerprint and everything. It has no bloatware and you have to get the gaps like in the description. Arm64 nano seems enough.
Good luck and fun with a great phone.
Normally the android system kills the unused apps even in background. But i also experienced lack in multitasking.
leledumbo said:
I'm a little confused, you want as much RAM available but you want as many processes in the background as well? That sounds contradicting to me. Memory optimization maps to ZRAM, if you set it off there will be no memory compression and thus even less processes will be kept in the background. If you set it high, you can have as many processes as possible, but there could be lag due to (de)compression time overhead.
Click to expand...
Click to collapse
I think you misunderstood the OP question, he wanted more free RAM at start in order to have as many as possible apps in the background.
lapocompris said:
I think you misunderstood the OP question, he wanted more free RAM at start in order to have as many as possible app in the background.
Click to expand...
Click to collapse
Yup exactly
Try trwp 3.0.2.0 with 3.0.2.1 people experience bootloop
Omied said:
Try trwp 3.0.2.0 with 3.0.2.1 people experience bootloop
Click to expand...
Click to collapse
In fact, I'm just doing some research before asking because I'm very new. I have found some videos but they are pretty old and not on this phone but I guess it works more or less the same way
lapocompris said:
I think you misunderstood the OP question, he wanted more free RAM at start in order to have as many as possible apps in the background.
Click to expand...
Click to collapse
OK, in that case, just open Security->Permissions->Autostart and disable those which aren't immediately needed upon start. I have 18 autostart items (mostly system monitoring & social media apps) and I usually start with 1.5 GB free RAM.
Hi everyone, i have a problem with "ram used" on Note 9 run android pie.
When i don't installer adhell, "ram used" on Note9 about 2,6G used
When i installer adhell and disable some unnecessary bloatware, i reboot the phone, "ram used" is 1,9G
But after 1 hour ram used is about 2,8G ~ 3,1G and dont decrease. Does anyone has a same problem like me?
Smileboy90 said:
Hi everyone, i have a problem with "ram used" on Note 9 run android pie.
When i don't installer adhell, "ram used" on Note9 about 2,6G used
When i installer adhell and disable some unnecessary bloatware, i reboot the phone, "ram used" is 1,9G
But after 1 hour ram used is about 2,8G ~ 3,1G and dont decrease. Does anyone has a same problem like me?
Click to expand...
Click to collapse
catlog filling up with errors because system is calling modules that have been removed or disabled but dependencies are looping tring to access these items and consuming more memory than stock?
its called add hell for a reason you know
lol jk
Ram keeps being used up but this time by apps you deem useful. Normal operating in any case.
Smileboy90 said:
Hi everyone, i have a problem with "ram used" on Note 9 run android pie.
When i don't installer adhell, "ram used" on Note9 about 2,6G used
When i installer adhell and disable some unnecessary bloatware, i reboot the phone, "ram used" is 1,9G
But after 1 hour ram used is about 2,8G ~ 3,1G and dont decrease. Does anyone has a same problem like me?
Click to expand...
Click to collapse
It depends on a lot of things, firstly you should get a better overview of whats happening. Easy way is to unlock developer options--->services. Most likely the RAM is cached with things and not really used. Also worth mentioning as already told here - disabling "bloatware" on the recent samsung updates (from nougat up atleast) is actually hurting - both in battery and performance. Reason - services calling those disabled services, leading to a loops. Android 7 and up is really good to "put to sleep" not used apps/services. Let the OS do it's job instead of causing problems that are hard to track (you should check logs like the one from the kernel to spot those things, it will not show as UI errors + the phone is fast enough to not notice it that much in performance).