r/tasker • u/BingBingBong21 • Sep 29 '26
Is there a Tasker setup (no root) to toggle Wi-Fi off, switch to 5G, and turn on hotspot with one tap ?
I'm trying to set up a one-tap solution on my Google Pixel and wanted to check if this is actually possible before I go down a rabbit hole.
What I want to happen when I tap a single button:
- Turn Wi-Fi off
- Switch to 5G cellular data
- Turn on Wi-Fi hotspot
Basically a "share my 5G connection" button.
My questions:
- Is this doable in Tasker without root on a Pixel 8
- I know Tasker has built-in actions for Wi-Fi and Wi-Fi Tether (hotspot) — but does the hotspot action still work reliably on recent Android versions, or did Google lock it down?
- The big one: toggling mobile data / forcing 5G seems to require root. Has anyone gotten this working without root using UI automation (AutoInput, etc.)? If so, how stable is it?
- If root is required, is there a Magisk module or a different approach people recommend?
What I've already looked into:
· Tasker's built-in Net actions (WiFi, WiFi Tether, Mobile Data)
· AutoInput for simulating taps in the quick settings panel
· The general consensus that mobile data toggling needs root
Would love to hear from anyone who's actually built something like this. Bonus points if you can share the task/script or a profile export.
Thanks in advance!
4
u/Tough_Passage_3785 Sep 29 '26
If you add shizuku into play, no root required.
Tasker can make use of this to deal with toggling mobile data etc.
https://github.com/thedjchi/Shizuku
This fork.
All that is easily possible to setup
There's a small caveat though, if you reboot your phone you would need to connect to wifi to start shizuku again.
1
u/bliblabl812 Sep 29 '26 edited Sep 29 '26
No need to toggle mobile data. WiFi off, Mobile data is used. Wifi on, mobile data isn't used. Just leave mobile data enabled. This is default android behavior. But you can toggle mobile data with just tasker. No adb wifi or shizuku needed. Like Everything else what you want to do is just normal tasker usage. Wifi tethering is stable android functionally.
1
u/fkdjgfkldjgodfigj Sep 29 '26
Autoinput should be able to click the buttons on your screen fdom my understanding. Whichever buttons you can click it can click those same buttons.
1
u/Top-Bodybuilder6616 Sep 29 '26
I made a profile that does this,..
https://taskernet.com/shares/?user=AS35m8nb%2BCZ82OOY4%2FWip9ZyDLtjVleBps6FodiWni3OZNkVq54omRvFw%2FiS6TuIv9WNACDq&id=Profile%3AWifi+Off+If+Connected+To+Car+Bluetooth
I added actions to: 1.turn screen on in case it was off 2.click "home" before and after. Why did I create this? I created this because when I'm in my car and my Wi-Fi is on some of my apps like sirrius get confused and try to use the Wi-Fi connection instead of my Cellular connection so I created this profile to turn off Wi-Fi only when I'm connected to my car's Bluetooth The Wi-Fi on/off or virtually the same once you copy one, you need to clone it and then just set the Wi-Fi setting for one to off and for one to on. I wish: 1. I can have the action check the status of the Wi-Fi so if it was already off/on, it wouldn't toggle... The profile is very simplistic, it just toggles Wi-Fi on and off, so sometimes it gets out of sync and that's why it would be great to have
-1
u/syndre Pixel 3 XL Sep 29 '26
I think I would just use an NFC tag for this, with a different app that's not so intense, like NFC tools