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] Kill Background Processes v1.0DESCRIPTION Different methods by which you can kill app processes. Notes: - Some will require root and some not. CREDITS @SmartPhoneLover DOWNLOAD Task (XML) Task (TaskerNet) DOWNLOAD (Ads Supported) Task (XML) Task (Task… Read More
[TASK] Open File Types Using Intents v1.1DESCRIPTION This task will allow you to open any type of file (image, video, audio, doc...) using intents. Notes: - Thanks to @Svitosky (Reddit) for providing the method to retrieve metadata type from system automatically. -… Read More
[TASK] Toggle Flashlight v1.0DESCRIPTION Different methods by which you can toggle (on/off) the device's flashlight. Notes: - Big thanks to @JustRollWithIt (Reddit) for the base task. CREDITS @SmartPhoneLover @JustRollWithIt DOWNLOAD Task (XML) Task (… Read More
[TASK] Podcast Addict Intents v1.1DESCRIPTION Intents for the Podcast Addict app. Notes: - To make 'Force Playback Speed' work, you have to enable the playback button (toggle) manually first, from within the app. - Disable Variable Playback Speed works as ex… Read More
[TASK] MIUI Music Player Intents v1.0DESCRIPTION Intents for the MIUI Music Player app, included in all Xiaomi devices. Notes: - The app have to be already running (service) when using these intents. CREDITS @SmartPhoneLover DOWNLOAD Task (XML) Task (TaskerNe… 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