Exactly. I initially went with that approach [1], but eventually opted for on-screen QR code scanning. Suggested networks have lower connection priority and don’t always auto-connect. Also, passwords for suggested networks can’t be viewed or shared later, unlike regular WiFi connections. This is inconvenient because I often need to connect my Mac to the same network later.
They could probably use this API: https://developer.android.com/develop/connectivity/wifi/wifi... or https://developer.android.com/reference/android/provider/Set... to skip the step with Google Lens. Showing the QR-Code is still an interesting functionaliy, for the use case if they had a second phone they wanted to connect that doesn't have this app.