BinaryEye icon indicating copy to clipboard operation
BinaryEye copied to clipboard

actually add wifi network after scan

Open Svalorzen opened this issue 1 year ago • 1 comments

Apologies if this is a dumb issue, but I can't figure out if there is a way to solve my problem.

I've always thought that when using binary eye to scan a wifi qr code I was actually saving the network, but I've just discovered that this is not actually the case when I've tried to share a network that I have added this way. It seems that since the network is only "suggested", the system doesn't actually know the password and so it cannot share it (I do not have the option to generate a qr code from it, and if I try to modify the network I get asked the password, which I do not know).

I can only find the control to make binary eye stop suggesting a network, but not one to make a network "permanent" and so make it also sharable to others. Is this possible, or alternatively, could such a feature be added? Thanks in advance for your help.

Svalorzen avatar Aug 18 '24 21:08 Svalorzen

Sorry for not responding so long 🙈 This is a rather complex matter, unfortunately.

From Android Q on, apps can only suggest Wifi networks by using WifiManager.addNetworkSuggestions. These suggestions get stored in the context of the app only, and if you uninstall Binary Eye, the system would remove these suggestions with it, unfortunately.

But anyway, you should still be able to share the Wifi via the reproduction of the scanned QR Code that is shown with the scan result.

markusfisch avatar Sep 06 '24 16:09 markusfisch

https://developer.android.com/reference/android/provider/Settings?hl=en#ACTION_WIFI_ADD_NETWORKS would solve this

xnumad avatar Mar 30 '25 10:03 xnumad

@xnumad Thanks for the tip! Implemented in https://github.com/markusfisch/BinaryEye/commit/ca7dfb3a336578b9d5e2cc6dd2afe74bbd21c637

markusfisch avatar Mar 31 '25 20:03 markusfisch