DESCRIPTION
This task will allow you to toggle in the background, and check the current process limit value for Android. Found under Developer Options.
Notes:
- Current Tasker version (5.8.3+) can't toggle that option, due to lack of the 'android.permission.SET_PROCESS_LIMIT' permission on its AndroidManifest. But the request is done, and accepted by the dev. So, as I don't know when this will be implemented officially, here you can download a test build that the dev sent to me, including the required permission, if you need it to be implemented in your projects asap.
CREDITS
@SmartPhoneLover
CHANGELOG
- Other: setProcessLimit() action enabled, as Tasker (test build) now has the required permission. (5.8.x+)
- Other: Changed task name.
DOWNLOAD
Task (XML)
Task (TaskerNet)
DOWNLOAD (Ads Supported)
Task (XML)
Task (TaskerNet)
Sunday, September 15, 2019
[TASK] Toggle Android's Background Process Limit v1.1
September 15, 20193 comments
Related Articles:
[TASK] Check Device Orientation (X,Y,Z) v1.0DESCRIPTION This task will allow you to get the current orientation of the device on-demand. Notes: - A project for the same purpose is available here. - If what you want is to know the orientation of the screen (not device)… Read More
[TASK] Open Multiple Websites In Different Tabs v1.0DESCRIPTION This task will allow you to open several websites in different tabs each. SCREENSHOTS DEMO CREDITS @SmartPhoneLover DOWNLOAD Task (XML) Task (TaskerNet) DOWNLOAD (Ads Supported) Task (XML) Task (TaskerNet) … Read More
[TASK] Open Multiple Websites In Different Tabs v1.1DESCRIPTION This task will allow you to open several websites in different tabs each. SCREENSHOTS DEMO CREDITS @SmartPhoneLover CHANGELOG - New: Task (version B) that used only a single action (Send Intent) to perform sa… Read More
[TASK] Convert Date/Time Format Into Epoch v1.0DESCRIPTION This task will help you to convert any type of date/time string format into Epoch time. Notes: - To know more about how to use SimpleDateFormat class, you can go here. CREDITS @SmartPhoneLover DOWNLOAD Task (X… Read More
[TASK] Get Min & Max Brightness Levels v1.0DESCRIPTION Get the minimum and maximum brightness values from your device. Notes: - Thanks to @mehPhone (Reddit) for contributing (reference). CREDITS @SmartPhoneLover @mehPhone DOWNLOAD Task (XML) Task (TaskerNet) DOWNL… Read More
Thanks for this!
ReplyDeleteThis task has another use: overcoming the ridiculously tiny process limit set on modern phones in the name of battery conservation, WITHOUT ROOT. Today's phones with Android Pie and above have 3GB memory or more, yet severely restrict the number of background processes. This makes them peppy and allows for longer battery life (in theory), but background tasks just can't run, making these devices fairly useless for us power users.
So I used this task to set the process limit high (64), and now my background tasks and services can run freely! The phone still has a needlessly high low-RAM limit (which I can't touch without root), but it's a LOT better behaved.
This task is now part of my startup tasks. I had to give Tasker access to the SET_PROCESS_LIMIT permission from ADB, which is a one-time step that survives reboot.
Ohh, didn't think about trying higher values, other than 4 haha. It just worked. Need to test deeper.
DeleteI will update the task including such info.
Thank you very much for letting it me know 😉🤝
Ok, changed it. (v1.3)
Deletehttps://taskerprofilecenter.blogspot.com/search?q=Toggle+Android%27s+Background+Process+Limit