WifiUtils icon indicating copy to clipboard operation
WifiUtils copied to clipboard

Not connecting on Oreo

Open rtviwe opened this issue 5 years ago • 3 comments

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

rtviwe avatar Oct 14 '19 21:10 rtviwe

Is the network actually in range?

eliaslecomte avatar Dec 20 '19 09:12 eliaslecomte

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.

singhal2 avatar Feb 03 '20 20:02 singhal2

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

eliaslecomte avatar Feb 04 '20 06:02 eliaslecomte