1
Solved

How to toggle Wifi on Pixel 7a without root.

Hello, Tasker reports an authorisation problem when it should switch Wifi and root is disabled for Tasker. Tasker settings via ADB is installed.

My Pixel 4a does the same job without any problems. Are there any differences between 4a and 7a regarding wifi permissions? Someone mentioned this on Reddit.

Both devices run LOS 21.

1 reply

Hi there.

Google has changed the way Android works for apps that target API 29, so Tasker can't toggle wifi anymore. Check here for more details: https://issuetracker.google.com/issues/128554616

If you want to better understand what "targeting" an API means, check here: https://tasker.joaoapps.com/userguide/en/target_api.html

.Can you please install this app on your phone and then try the "Wifi" action again from Tasker?

Make sure to exempt the "Tasker Settings" app (not only Tasker itself) from battery optimization (https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00) so that Tasker can call it in the background.

Even if you already have the "Tasker Settings" app installed, you need to install this new version for the Wifi toggle to work.

I can't upload this version to Google Play because it targets API 21 (which is why toggling Wifi still works with it) and Google only allows apps that target API 29 and over.

Note: your phone may warn you that this app is built for an older Android version. That's normal (and precisely why this app can still toggle wifi), so please dismiss the warning because it's nothing to worry about.

Important: on some Huawei/Xiaomi devices the system will prompt you to accept a permission via a popup every time you try to toggle Wifi. If that happens to you use the Huawei.Xiaomi version of the Tasker Settings app instead: https://github.com/joaomgcd/TaskerSettings/releases/tag/v1.4.0

Thanks in advance.

Download here: https://github.com/joaomgcd/TaskerSettings/releases/v1.2.0

Topic is closed for comments