0

I would like to automate my android phone to do the following:

if connected_to_wifi(ssid=my_mobile_3g_router) then
    (1) disable automatic google play updates
    (2) turn off dropbox camera upload
    (3) enable VPN from no root firewall
else
    enable (1) (2), disable (3)

Can tasker or llama automate do it? I have tried automate but I haven't seen application specific settings. I could buy tasker if it could handle my case.

The reason should be clear: I travel a lot and being abroad I use 3g wifi mobile router to share Internet with my devices. Unfortunately, for my phone any wifi is seen as a resource without data limit which is not always true.

My question is a bit different but related to: Auto sync only when connected to a specific wifi network In my question, I ask for application-specific settings. The related one is about system sync.

5
  • Which device and Android version are you using? Is it rooted? If rooted, first is definitely doable, I don't use dropbox so can't tell, and if the device is already rooted then AFWall+ firewall can be used (it offers support for multiple profiles which can be easily managed using Tasker).
    – Firelord
    Commented Feb 20, 2016 at 12:32
  • I don't want to have it device-specific. I assume, that device is non-rooted, but if there is a solution for rooted devices, I am also happy to see it. The question is about changing any setting of any application – I don't want to be forced to change some applications just because they are supported by tasker/any other automation tool.
    – Piotr
    Commented Feb 20, 2016 at 12:37
  • 1
    "I don't want to have it device-specific" -- it won't make the question device-specific but it would help a poster to test and provide a satisfactory answer. For example, one may have to use dumpsys tool to query a service. Not every Android version from all manufacturers would provide same type of output from dumpsys. // Providing Android version and device lessens the scope.
    – Firelord
    Commented Feb 20, 2016 at 12:41
  • You're using this firewall, correct?
    – Firelord
    Commented Feb 20, 2016 at 12:46
  • I use Android 5.1.1 on Sony Xperia Z2. Edit: yes, I use this firewall. Google Photos upload and Play updates are the most important bits to me
    – Piotr
    Commented Feb 20, 2016 at 12:46

1 Answer 1

0

Tasker can indeed do what you are looking for! Using the Wifi-Connected State profile inverted (profile on when not connected) you can trigger a task that does the following:

1) Disable Google Play updates via Synker

    In newly created task Add an Action ('+' at bottom, center of screen), select 'Plugin' category, select Synker, select 'Autosync Settings', select Configuration, uncheck the Google /account name/ App Data)     Source: Is there an App Update Scheduler app? Reply #6

2) Stop auto-upload of photos using Dropsync (replaces Dropbox built-in tool)

3) Use Secure Settings to connect to stored VPN (requires root)

    In newly created task Add an Action (new Action> Plugins> Secure Settings> Root Actions> VPN)     Source: VPN Verbindung (keine Zusatzapp) per Tasker starten?

4
  • Can you please expand your answer? I'm looking for detailed instructions on "disable automatic google play updates" and "enable VPN from no root firewall"? Have you tested your solution?
    – Firelord
    Commented Mar 3, 2016 at 18:49
  • I have tested Parts 1 & 2 at this time. I am unable to test the VPN since I do not have a VPN setup nor is my device (Samsung Galaxy Note 4, Android 5) rooted. Commented Mar 3, 2016 at 18:53
  • I think the best solution for that is to mark the concrete Wifi network as metered (treated as 3G). This answer is very complicated (you need to install even more apps!). It shows that tasker and similar tools have still a long way to go.
    – Piotr
    Commented Mar 11, 2016 at 14:46
  • Except that marking as metered does not solved #3 in the question. Also, if that solution works, you might want to post it as an answer and accept it. Commented Mar 12, 2016 at 1:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .