WifiUtils
WifiUtils copied to clipboard
Not connecting on Oreo
I am connecting to wifi with its name and password
WifiUtils.withContext(context)
.connectWith(ssid, password)
.onConnectionResult(::onConnectionResult)
.start()
Then I got this message in LogCat:
E/WifiConfigManager: UID 10345 does not have permission to update configuration "5ui5ide"-WPA_PSK
And Wi-Fi is not connected. This problem appears on Android 8 and 9
Is the network actually in range?
Hi, I am experiencing the same in Android Q, following from Logcat:
2020-02-03 21:58:37.066 1535-2019/? E/WifiConfigManager: UID -1 does not have permission to update configuration "Telia-83474E"WPA_PSK
and yes, the network is well within range.
If you forget the wifi network I think it will work. Can you test?
A lot has changed in Android Q / 10. There has been an experimental release to follows the new rules set by Google: https://github.com/ThanosFisherman/WifiUtils/issues/47