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

Is it possible to add and connect a Wifi network when targeting Android Q? #31

Closed
AndroidDeveloperLB opened this issue Jul 6, 2019 · 5 comments

Comments

@AndroidDeveloperLB
Copy link

AndroidDeveloperLB commented Jul 6, 2019

Seems it's not possible anymore:
https://stackoverflow.com/q/56905956/878126
https://issuetracker.google.com/issues/130542363

Is it true?
Is there at least a solution for rooted devices?

@ThanosFisherman
Copy link
Owner

Thanks for the links. I haven't tested this library on Android Q but reading up on the links it seems that it introduces API changes that won't really help address the auto connect feature.

I'm afraid this library won't work as intended on Android Q but I'm willing to try a few workarounds as soon as I get an Android Q device in my hands.

@AndroidDeveloperLB
Copy link
Author

Do you know of a way to add a network on a rooted device, perhaps?
A way that should work even on Android Q ?
The new API seems to only suggest to add the networks. I've noticed a notification that appears when I do it, but it appears after quite a while, and on some cases doesn't appear at all.

You can try the new API already , on an emulator. Sure it's not the same, but it's a start...
You can see my attempt to add a network using this API here:

https://issuetracker.google.com/issues/136787275

I don't get why it doesn't do anything. I think it's a bug, or that I didn't set it right. Sadly there is no tutorial that I've found, no sample, and barely any documentation...

@ThanosFisherman
Copy link
Owner

ThanosFisherman commented Jul 6, 2019

I think there should be a way to do it on a rooted device by utilizing commands of wpa_cli file but I haven't looked into it.

Regarding the new API I also think it is a bug. I will try to run your code when I find some time.

@AndroidDeveloperLB
Copy link
Author

Yes, please investigate it. I hope you will find a way to add a network, even if it requires root...

@ThanosFisherman
Copy link
Owner

Refer to #47

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

2 participants