Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect wifi on Samsung device (Android 8.0) #7

Open
wklow12 opened this issue Jul 31, 2018 · 4 comments
Open

Cannot connect wifi on Samsung device (Android 8.0) #7

wklow12 opened this issue Jul 31, 2018 · 4 comments

Comments

@wklow12
Copy link

wklow12 commented Jul 31, 2018

Hi, there is an issue when I try to connect wifi on Samsung with android 8.0. I can't connect and there is no any log message that I can use to debug. Is this library compatible with android 8.0 or is Samsung device problem ?

@wklow12
Copy link
Author

wklow12 commented Aug 1, 2018

java.lang.IllegalArgumentException: Illegal char: M at offset 0 at libcore.util.HexEncoding.toDigit(HexEncoding.java:96) at libcore.util.HexEncoding.decode(HexEncoding.java:77) at com.android.server.wifi.util.NativeUtil.hexStringToByteArray(NativeUtil.java:318) at com.android.server.wifi.util.NativeUtil.hexOrQuotedAsciiStringToBytes(NativeUtil.java:227) at com.android.server.wifi.util.NativeUtil.decodeSsid(NativeUtil.java:268) at com.android.server.wifi.SupplicantStaNetworkHal.saveWifiConfiguration(SupplicantStaNetworkHal.java:412) at com.android.server.wifi.SupplicantStaIfaceHal.addNetworkAndSaveConfig(SupplicantStaIfaceHal.java:405) at com.android.server.wifi.SupplicantStaIfaceHal.connectToNetwork(SupplicantStaIfaceHal.java:440) at com.android.server.wifi.WifiNative.connectToNetwork(WifiNative.java:851) at com.android.server.wifi.WifiStateMachine$ConnectModeState.processMessage(WifiStateMachine.java:8424) at com.android.internal.util.StateMachine$SmHandler.processMsg(StateMachine.java:992) at com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:809) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.os.HandlerThread.run(HandlerThread.java:65)

the error get from log

@jflavio11
Copy link
Owner

Hi @wklow12 I have not test the library with many devices on Android Oreo. Have you turned on the logs using the setLog(true) method?

@kkroid
Copy link

kkroid commented Aug 28, 2019

same error here

@techievex
Copy link

Hey,

I am facing the same error here. We are not able to scan/connect the application in android versions above marshmallow(6.0).

Later I was able to scan the wifi network after by passing permission option and but I am not able to get network ID for the selected network.

Hope you guys can help us out here.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants