Page 1 of 1
Start/Stop Adguard protection
Posted: 02 Sep 2015 03:32
by houdinix64
Hi... I need help, i tried so many ways to figure out how to convert this tasker intents to automagic but no luck.. Im noob in programming...Sorry for my english...
Re: Start/Stop Adguard protection
Posted: 03 Sep 2015 19:28
by Martin
Hi,
Please try the following (I'm no expert in reading the Tasker definitions but I hope I got it right).
You can use action Start Service to send an intent to a service.
Configuration:
Action: android.intent.action.SEND
Explicit Component: checked
Package: com.adguard.android
Class: com.adguard.android.ServiceManager
Extras: putInt("ACTION", 2);
the same to stop but with:
Extras: putInt("ACTION", 6);
Let me know if it works so I can add the two configurations to the built-in examples.
Regards,
Martin
Re: Start/Stop Adguard protection
Posted: 11 Sep 2015 01:49
by houdinix64
Sorry for the late reply... Automagic rocks.. Thank you martin, it flowlessly works!
Re: Start/Stop Adguard protection
Posted: 11 Sep 2015 17:57
by Martin
Great! I'll add the two configurations it to the examples.
Re: Start/Stop Adguard protection
Posted: 18 Jan 2016 15:54
by mata77
Hi all,
I tried following the instructions of Martin..ma not working. Use Marshmallow 6.0.1 and 1.30.0-dev (2016-01-09).
In addition, the "Class: com.adguard.android.ServiceManager" I wrote it by hand because it does not present among the services available.
Solutions?
Xml of this flow?
Thank you
Re: Start/Stop Adguard protection
Posted: 21 Jan 2016 20:44
by Martin
Hi,
Did you use action Start Service (not Start Activity)? Please share an empty flow containing just your action so I can check where the problem might be.
Regards,
Martin