Competitive-Fun-2417
New member
I'm trying to make a macro that triggers upon connecting and disconnecting from my work WiFi. Basically the working is this:
I'm coming from the Tasker world where I had a trigger in Tasker upon connecting to work WiFi to execute #3 and then an exit task to execute #4. My understanding is Macrodroid doesn't have exit tasks so in reading some guides, I was told to just have both connect and disconnect triggers in one.
What I've noticed is that in my permissions log, MacroDroid accesses my location a lot--yes I know that it needs location permissions to find out the connected WiFi SSID, but in trying to compare with my old phone which is still using the same Macro/Profile but, a Tasker version of it, MacroDroid is basically checking my location every 5 minutes whereas Tasker only does it pretty sparingly.
Is there a reason why MacroDroid has to ping location so much? Is my Macro horribly written for efficiency?
- When connected to work WiFi SSID, change DNS server from DNS over TLS server (Adguard, NextDNS) to DoH (dns.google or cloudflare). The context is that for whatever reason I've found my work WiFi doesn't like me using any adblocking DNS server and in fact any DNS over TLS server (even Cloudflare). I've experimented and it seems the automatic option/off or a DoH server like Google/Cloudflare seems to work fine. Given how Android seems to only allow 2 pre-programmed DoH server addresses and nothing else, I have no choice but to use either Google/Cloudflare.
- If the existing DNS server is not dns.google or cloudflare-dns.com, then change DNS to Cloudflare; store existing DNS server in a variable.
- Upon disconnect from WiFi SSID, restore the old DNS server.
I'm coming from the Tasker world where I had a trigger in Tasker upon connecting to work WiFi to execute #3 and then an exit task to execute #4. My understanding is Macrodroid doesn't have exit tasks so in reading some guides, I was told to just have both connect and disconnect triggers in one.
What I've noticed is that in my permissions log, MacroDroid accesses my location a lot--yes I know that it needs location permissions to find out the connected WiFi SSID, but in trying to compare with my old phone which is still using the same Macro/Profile but, a Tasker version of it, MacroDroid is basically checking my location every 5 minutes whereas Tasker only does it pretty sparingly.
Is there a reason why MacroDroid has to ping location so much? Is my Macro horribly written for efficiency?
- Screenshot of many location requests
- Macro screenshot (removed my work SSID for privacy purposes)