Thursday, May 28, 2020

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

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:
- The required permission is already integrated into Tasker, but you will need to grant it manually. Use the following cmd to do so: pm grant net.dinglisch.android.taskerm android.permission.SET_PROCESS_LIMIT.
- As the value will be restored after rebooting the device, you will need to automate it on device boot.
- Standard process limit (-1) could be 10, 15, 20, or whatever the Android manages in the background. In depends on your system.
- Even 1, 2, 3 or 4 are the only available options to be chosen from settings (Developer Options), you can specify any other value higher than 4 if want too. (But, doing so will make the custom values not to be reflected on its settings, only visible by this task)

SCREENSHOTS

CREDITS
@SmartPhoneLover

CHANGELOG
- New: Added 'Device Boot' profile to automate the setting on boot.
- Other: Minor changes.

DOWNLOAD
Task (manual)
Task (XML)
Task (TaskerNet)
Profile (automated)
Profile (XML)
Profile (TaskerNet)

DOWNLOAD (Ads Supported)
Task (manual)
Task (XML)
Task (TaskerNet)
Profile (automated)
Profile (XML)
Profile (TaskerNet)

Related Articles:

  • [TASK] Check Keyguard Status v1.0DESCRIPTION Here you have a little task that will help you to get more information than the 'KEYG' built-in variable, about the device lock status. Quick information: • Device Locked: The device is locked and asks for authen… Read More
  • [TASK] Get All Apps Installed Time v1.1DESCRIPTION Generate a list with all the apps installed, showing the following information: • App name • App package • Install time • Update time These are the available versions: • Version (A): The collection of every app's… Read More
  • [TASK] Get Available CPU Cores v1.0DESCRIPTION This task collects different methods by which you can get the number of all the available CPU cores that your device has. CREDITS @SmartPhoneLover DOWNLOAD Task (XML) Task (TaskerNet) DOWNLOAD (Ads Supported) T… Read More
  • [TASK] Get All Apps Installed Time v1.0DESCRIPTION Generate a list with all the apps installed, showing the following information: • App name • App package • Install time • Update time Notes: - The information is saved as a TXT file, under '/storage/emulated/0/*'… Read More
  • [TASK] Get Available CPU Cores v1.1DESCRIPTION This task collects different methods by which you can get the number of all the available CPU cores that your device has. Notes: - Thanks to @DutchOfBurdock (Reddit) for helping on building the task. CREDITS @Sm… Read More

6 comments:

  1. Getting the following error, pm permission granted:
    05.21.36/E Java Function: am -> am
    05.21.36/E Java Function use app context
    05.21.36/JU analyse: target: ActivityManager expected: null
    05.21.36/JU target: analyse done: ActivityManager: class: android.app.ActivityManager obj: null partWithoutMods: null static: true const false casted: false
    05.21.36/JU analyse: returnval: android.app.IActivityManager expected: null
    05.21.36/JU returnval: analyse done: android.app.IActivityManager: class: android.app.IActivityManager obj: null partWithoutMods: null static: true const false casted: false
    05.21.36/JU initClass: class: android.app.IActivityManager obj: null partWithoutMods: android.app.IActivityManager static: true const false casted: false
    05.21.36/JU initClass: retnovar: init with array handling -> interface android.app.IActivityManager
    05.21.36/JU initClass: class: android.app.ActivityManager obj: null partWithoutMods: android.app.ActivityManager static: true const false casted: false
    05.21.36/JU initClass: target: init with array handling -> class android.app.ActivityManager
    05.21.36/Mirror android.app.ActivityManager.getService: unavailable
    05.21.36/Mirror android.app.ActivityManager.getService: unavailable
    05.21.36/E Java Function: no matching method for getService
    {android.app.IActivityManager} ()
    05.21.36/E result: stop task (error)
    05.21.36/E Error: 1
    05.21.36/MacroEdit action finished exeID 2 action no 2 code 664 status: Err next 2

    ReplyDelete
  2. Seems the Android release version you are using doesn't have the required API method, or maybe it was changed. What Android version do you have? (I have created and tested it in Android 10 based OS: Pixel Experience ROM, modified)

    ReplyDelete
  3. There's an invocation error
    Tasker doesn't request, but needs, permission READ_DEVICE_CONFIG.

    ReplyDelete
  4. This doesn't work, same as basically every other thing I've tried using Tasker.

    ReplyDelete
    Replies
    1. Hello, sorry for the inconvenience.
      I'm already aware of the error. Other users reported the same.

      Currently, I'm in the task of migrating all the content to the new website, so I cannot take attention to 100% to bug reports and projects requests.

      Once migrated, I will take a look at this specific task.

      Meanwhile, can you tell me what's your device's operating system version, and Tasker version?

      Delete
    2. I will thank you if you can report it here:
      https://bug-reports.taskerprofilecenter.com/

      Don't forget to write your operating system, tasker version and if you're rooted.

      Delete