Sunday, September 15, 2019

[TASK] Toggle Android's Background Process Limit v1.1

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)

3 comments:

  1. Thanks for this!

    This 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.

    ReplyDelete
    Replies
    1. Ohh, didn't think about trying higher values, other than 4 haha. It just worked. Need to test deeper.
      I will update the task including such info.

      Thank you very much for letting it me know 😉🤝

      Delete
    2. Ok, changed it. (v1.3)

      https://taskerprofilecenter.blogspot.com/search?q=Toggle+Android%27s+Background+Process+Limit

      Delete