Unable to set Wi-Fi state, what is workaround?

367 views
Skip to first unread message

mike.g...@gmail.com

unread,
Nov 28, 2021, 6:46:52 AM11/28/21
to Automate
Hi.  After recent updates to Android on my Samsung devices (running Android 11) I am no longer able to set Wi-Fi state.  The log says: "java.lang.UnsupportedOperationException: setWiFiEnabled workaround".  Can anyone tell me what the workaround is and how I enable it.

This is very annoying as several threads that have worked well for a long time have suddenly started to fail.  I wonder why Android no longer supports this.

Thanks for your time.

Mike

Henrik "The Developer" Lindqvist

unread,
Nov 28, 2021, 6:59:53 AM11/28/21
to Automate
It should be working on Android 11, are you sure you're not using Android 12?
The next release will include a new workaround to work with Android 12.

Mike O

unread,
Nov 28, 2021, 7:46:14 AM11/28/21
to automa...@googlegroups.com
Thanks Henrik.

You are right the device with the issue is Android 12, my mistake.

Roughly when might you expect to release the workaround?

Mike

--
You received this message because you are subscribed to a topic in the Google Groups "Automate" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/automate-user/LQN-rwqpk7o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to automate-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/9922306b-4b53-44f6-b683-95560166579an%40googlegroups.com.

Henrik "The Developer" Lindqvist

unread,
Nov 28, 2021, 12:28:01 PM11/28/21
to Automate
Hopefully next week, unless Google is obtuse.

mike.g...@gmail.com

unread,
Nov 28, 2021, 12:35:57 PM11/28/21
to Automate
Great.  Thanks Henrik.  

Hard to imagine Google being obtuse. 😉

Good luck.

Mike

vpfe...@gmail.com

unread,
Nov 28, 2021, 1:22:41 PM11/28/21
to Automate
I have found the same issue - WiFi, NFC, etc. - now solved via Bixby routine, so Bixby and Automate are running paralell covering different tasks ...
... at least for now within current Android 12 restrictions

Dne neděle 28. listopadu 2021 v 18:35:57 UTC+1 uživatel mike.g...@gmail.com napsal:

Henrik "The Developer" Lindqvist

unread,
Nov 28, 2021, 5:50:42 PM11/28/21
to Automate
New workaround for Wi-fi set state block will also be in the next release.
What's the issue with the NFC set state block? Any error message?

vpfe...@gmail.com

unread,
Nov 29, 2021, 10:03:47 AM11/29/21
to Automate
It requires SuperUser and rooted device - I do not have that, and never will ...

Dne neděle 28. listopadu 2021 v 23:50:42 UTC+1 uživatel Henrik "The Developer" Lindqvist napsal:

Ion Barbu

unread,
Jan 11, 2022, 8:52:02 AM1/11/22
to Automate
Hi guys, this mentioned wifi state block workaround, is there something I can do now to update my Android 11 flows which are not working?

Henrik "The Developer" Lindqvist

unread,
Jan 11, 2022, 9:36:25 AM1/11/22
to Automate
In the release version of Automate the Wi-Fi set state workaround should work on Android 11.
On Android 12 the Alpha version has a new workaround that should work on Android 12+, opt-in at:

Ion Barbu

unread,
Jan 11, 2022, 10:15:45 AM1/11/22
to Automate
Thanks Henrik. I downloaded the update after signing up on the link you provided, I rebooted, but the flows still don't update the wifi state. Is there a different block i should use?

Henrik "The Developer" Lindqvist

unread,
Jan 11, 2022, 10:20:36 AM1/11/22
to Automate
You can also use the Shell command superuser block to execute: svc wifi disable
But that will require a rooted device.

What device brand & model are you using?

Ion Barbu

unread,
Jan 12, 2022, 3:42:27 AM1/12/22
to Automate
I have a rooted Oneplus 6

mike.g...@gmail.com

unread,
Jan 28, 2022, 6:35:27 AM1/28/22
to Automate
Just to let you know that version 1.32.4 which arrived yesterday (27 Jan 2022) seems to have successfully solved the problem.

Thanks Henrik.

Henrik "The Developer" Lindqvist

unread,
Jan 28, 2022, 12:55:27 PM1/28/22
to Automate
Great. Thanks for reporting back.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages