Change an option from Developer Options after every boot automatically - Tasker Tips & Tricks

I want to change an option from Developer Options (specifically the background process limit) but now I have to do it manually because this option changes back to the default after every reboot. Is there a way for this change to happen automatically after every reboot, either using Tasker or any other app? I run on Android 9.

Much to my surprised amazement, looking into this for you I discovered the classic IntangibleObject Secure Settings plugin has resurrected itself with an update back in January 2019.
What you want is easy peasy with this plugin. It's under Root Actions -> Background App Processes

Without root also possible -> open dev settings -> scroll down -> autoinput

ktmom said:
Much to my surprised amazement, looking into this for you I discovered the classic IntangibleObject Secure Settings plugin has resurrected itself with an update back in January 2019.
What you want is easy peasy with this plugin. It's under Root Actions -> Background App Processes
Click to expand...
Click to collapse
Would you mind elaborating a bit more on how to do what I want, using Tasker and the app you suggest? If you have time for a step-by-step guide, I would really appreciate it. I have both apps now but I cannot figure out how to make it (it is the first time I am trying to use tasker)

huggarn said:
Without root also possible -> open dev settings -> scroll down -> autoinput
Click to expand...
Click to collapse
If you mean in the device's dev settings (which, in my device/rom are called Developer Options), there is no autoinput option.

If you are that new to Tasker, then you would really benefit from taking time to read up on it. There are countless write-ups, videos, posts here in this forum geared towards beginners...
Even if you're not planning to need/want a profile, work through a beginner tutorial anyway which will get you familiar with how to add profiles, tasks and connect them.
To use the secure settings plugin action, you do have to be rooted. That's why it's under "root actions". You just add an plug-in action in a task for the secure settings plugin. Then configure that action to run the background process to whatever setting you want.
I would guess in your case the profile context would be an event -> system -> device boot.
BTW, the advice of using AutoInput you were given is a plugin for Tasker also. It would be a non-root method of emulating the taps you otherwise do manually. The specific advice was assuming some familiarity with Tasker and was actually the (abbreviated) steps to achieve what you want using AutoInput.

Import this profile, if you gave Tasker required permissions, should work without root. Just change int value in task.
https://taskernet.com/shares/?user=...DV78XH3AUBaZitf5Llp0FupQY=&id=Profile:Profile

Related

[Help] App Preferences

Greetings,
Currently I'm trying to make a module but I require to save a few settings/preferences of the user.
But only problem is I have no clue how to let's say save settings in my own app and load the settings in a different app.
Would be nice to see some example code for this
Here is a simple module with preferences: https://github.com/rovo89/AllAppsInPlayStore
The most important part is MODE_WORLD_READABLE, as you will read the settings from the process of a different app, which usually doesn't have access to your app's settings.

Lock Tasker App Itself

It is possible to lock the access to apps with tasker. However, this doesn't make much sense when tasker itself is accessible and the corresponding profile can simply be deactivated.
But how can I do this? Tasker doesn't appear on the apps list.
Sorry for my ignorance. I had a look in settings, there I found the answer.

Tasker or another automate app working?

Hi,
I tried to find root cause, but unfortunately without success. Is there anybody, who using Tasker or another application for automatization of your phone without any issues?
My issue is, Tasker is still "delayed" - but same rules I used before on LG G3 (Android 6.0) - but now on P9 (DualSIM) didn't work.
I have task for Calendar Entry, where if I have appointment in my work calendar, during this time Sound mode is deactivated (only Vibrate).
Some suggestion? I tried white lists, etc. or another app with same bad behavior.
Thank you!
Well, I tried to deactivate power management app from Huawei over ADB and looks good now finally! Its workaround, but tasker now working very well as expected.
adb shell pm hide com.huawei.powergenie
Did you have "Run in Foreground" selected in Tasker's preferences?
My Tasker works fine with that selected, although I also have trusted the app in permissions manager, allowed it to auto launch & activated it as a device administrator in advanced settings/security.
Yeah, I tried every tip over Tasker or phone (EMUI settings) and only deactivate power management helps me.
I had the same problem with IFTTT. It worked perfectly with my LG G3, but was hopeless on the P9. No amount of white-listing or settings would work.
I even had the app in memory, with Google maps running, on GPS, screen on, and it still wouldn't trigger a location based profile.
I've had to revert to manually arming and dis-arming my home security system. Annoying.
I translate from spanish so I'm sorry if your phone shows menus with other name.
You must go to adjust > advanced adjusts > memory and store and at bottom of page "space clean". On new screen push on upper-right wheel, and now on last option "white list of memory clean". Finally look for your app and activate it.
If you don't include app here, clean system will close it on background and timers won't work. It solved my problems.
aidrabmol said:
I translate from spanish so I'm sorry if your phone shows menus with other name.
You must go to adjust > advanced adjusts > memory and store and at bottom of page "space clean". On new screen push on upper-right wheel, and now on last option "white list of memory clean". Finally look for your app and activate it.
If you don't include app here, clean system will close it on background and timers won't work. It solved my problems.
Click to expand...
Click to collapse
"Settings>Advanced settings>Memory & storage>Storage cleaner" and "Memory cleanup whitelist".
Using Agama, I can get an app to start following a reboot. However, I would like to start the App at every Startup. Does Automate or any other app let you do that?
carroamer said:
Using Agama, I can get an app to start following a reboot. However, I would like to start the App at every Startup. Does Automate or any other app let you do that?
Click to expand...
Click to collapse
Why would you need Tasker for that simple.
Settings, type in the Search Autostart and add your app to the list of apps to be started on every reboot.
You may also need to disable Battery Optimization for your app (to make sure it would still work in background when the phone sleeps with dark screen)
That should generally work for all Androids. I don't have Huawei P9 now for years, I remember that EMUI might have had specific Settings organization but there was also Autostart (or Auto start)...
zgfg said:
Why would you need Tasker for that simple.
Settings, type in the Search Autostart and add your app to the list of apps to be started on every reboot.
You may also need to disable Battery Optimization for your app (to make sure it would still work in background when the phone sleeps with dark screen)
That should generally work for all Androids. I don't have Huawei P9 now for years, I remember that EMUI might have had specific Settings organization but there was also Autostart (or Auto start)...
Click to expand...
Click to collapse
When I search 'Autostart' it produces 'No results'
carroamer said:
When I search 'Autostart' it produces 'No results'
Click to expand...
Click to collapse
I had P9 for three years (if you don't believe, you can find tons of my posts here back from 2017-2018)
Now, you have that phone, not me (I got rid of my last Huawei almost three years ago) - I cannot show you and I cannot look into the EMUI settings because I don't have the EMUI phone anymore
But I KNOW that there was a way in EMUI how to control which apps will be automatically started on boot - I know because I played with all that back in those years, II did need for many apps like AdAway, Find My Device and similar that required to be auto-started to operate correctly
Take your time and google and you'll find. Sorry, I tried to help you but I will no more waste my time on that. Huaweis are past time for me
And take your time, use your imagination, If not Autostart, google for EMUI startup manager or something similar to find the answer for your question on the Net

Initial Tasker Configuration Checklist

Quit scratching your head trying to remember how to configure Tasker and use my initial Tasker configuration checklist!
Features include a bullet list of configuration and setting preference I typically use when I installing Tasker on a wiped or new device.
Article Link
Enjoy!
hello, you know if there is a way to do this with a task?
kurokirasama said:
hello, you know if there is a way to do this with a task?
Click to expand...
Click to collapse
Hey there! Unfortunately I do not... I wish there was though! If you are rooted there is always TiBu, I used to just do that until I stopped rooting my devices a few years ago. Thanks for reading my post!
when you create a task and go to Tasker action, there is something called Set Tasker Pref. You can use this to set different aspects of Tasker configuration, isn't this what you want?
alienyd said:
when you create a task and go to Tasker action, there is something called Set Tasker Pref. You can use this to set different aspects of Tasker configuration, isn't this what you want?
Click to expand...
Click to collapse
That method can do a few things however it will handle a very limited amount of items compared to my list. Hope that helps!

Tasker Tips: Automate Any Setting!

Hey guys just wanted to share some tips I've found.
1. If the action you're looking for isn't within Taskers list of actions. There's a good chance that "Custom Setting" will accomplish what you're trying to do. You can control almost anything with Custom Settings and control settings that usually requires ADB to accomplish. Check it out.
2. If you're unsure how to do something, check out other projects. Usually you can find new and complex patterns that help make sense of a situation.
3. To make your dialogs and fonts look good and stand out, use html tags.
Example: <b><font color=green>This text will be green and bold</font></b>
4. AutoTools and AutoInput is a must have plugin for any Tasker enthusiast, however the rest can be ignored as most of them have been implemented into Tasker over the years except maybe AutoNotifications if what you're trying to do involves Notifications.
5. There's a 99% chance anything you want to accomplish can be done using Tasker. You just need to dig deep to find the method of accomplishing it.
6. Be sure to give Tasker WRITE_SECURE_SETTINGS permission and any other adb specific permission. It's a one time thing and gives Tasker tons of power.
7. When creating open source projects you intend to share publicly, try to use as few plugins as possible. If there's a native Tasker method, use it. Use as few permissions as possible. Use Tasker's native command options instead of AutoApps.
8. The better you understand variables and arrays, the more you'll be able to do. Once you understand loops (if, for, etc) and variables, you're ready to start making projects. Always use local variables unless a global variable is required. Use project variables instead of global variables if the variable in question is only used within the same project. Global variables should only be used when you need to use it's value universally across Tasker. Take note, that once you start using an action that requires dynamic monitoring, Tasker will always monitor that action requiring more memory use.

Categories

Resources