Start/Stop Adguard protection

Post your questions and help other users.

Moderator: Martin

Post Reply
houdinix64
Posts: 33
Joined: 08 Mar 2013 12:45

Start/Stop Adguard protection

Post by houdinix64 » 02 Sep 2015 03:32

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...
Attachments
Screenshot_2015-09-02-10-29-59.jpeg
Screenshot_2015-09-02-10-29-59.jpeg (409.1 KiB) Viewed 15048 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Start/Stop Adguard protection

Post by Martin » 03 Sep 2015 19:28

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

houdinix64
Posts: 33
Joined: 08 Mar 2013 12:45

Re: Start/Stop Adguard protection

Post by houdinix64 » 11 Sep 2015 01:49

Sorry for the late reply... Automagic rocks.. Thank you martin, it flowlessly works!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Start/Stop Adguard protection

Post by Martin » 11 Sep 2015 17:57

Great! I'll add the two configurations it to the examples.

mata77
Posts: 5
Joined: 18 Jan 2016 15:49

Re: Start/Stop Adguard protection

Post by mata77 » 18 Jan 2016 15:54

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Start/Stop Adguard protection

Post by Martin » 21 Jan 2016 20:44

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

Post Reply