https://developer.apple.com/documentation/uikit/inter-proces...
The WifiConfigStore stores its config into a wpa_supplicant compatible file. The file is then passed to the wpa_supplicant service, which is also present on other Linux distros like the GNU/Linux ones, although here the config file is built by a dedicated NetworkManager service (also, some intel folks are building a replacement IIRC). wpa_supplicant is a privileged service that talks to the WiFi card drivers.
[0]: https://github.com/zxing/zxing/blob/0cf3b9be71680f50c90a71ca...
[1]: https://github.com/zxing/zxing/blob/0b9b39a74fb3d7b010fb2979...
[2]: https://developer.android.com/reference/android/net/wifi/Wif...
[3]: https://android.googlesource.com/platform/frameworks/base/+/...
[4]: https://android.googlesource.com/platform/frameworks/opt/net...
[5]: https://android.googlesource.com/platform/frameworks/base/+/...
[6]: https://android.googlesource.com/platform/frameworks/opt/net...
Also found qifi.org that does a similar thing.