OCR WiFi connect v1

by P. Andreas Schmidt, IVE

Version 3 (May 4, 2024)

Download (23 downloads)

Updates
2-changed ADB shell for privileged shell, you still need developers options, ADB active, and have AM's privileged service running, but makes it easier; added hidden network feature in qr codes.
1-added various things (previous scan of available and not already known SSIDs as suggestions in the manual SSID input, as well as for security level if not in text; pick a file option; copy shared content to a temp file for termux; direct manual input if SSID or key are not found, with whole text; extra command options when using ADB, i.e. no auto join, metered connection, MAC randomisation; QR code output) and cleaned up a little, made it more readable.

Todo:
- more error/security checks?
- what to do with QR: show, share, ...
- I'm not sure the way the ADB block is prefigured it'll work ootb for everyone, i.e. the IP and port, probably need to get those first with network service block, right? Or ask for manual input.
- how to open WiFi settings directly for any model?

Description:
Not always are there handy qr codes available to connect to a network, but just long difficult passwords written on the back of the modem or so...
This flow gives you the choice whether to take a picture, screenshot or share a pic to the flow, in order to ocr and find the SSID, password and security type (if you have Termux and tasker plugin it will try to read any qr codes in it, see my other flow for setup: https://llamalab.com/automate/community/flows/48010). You can then edit the results, and either copy the results to the clipboard or else (if you have it activated) run an ADB to add and connect to the given network.
I haven't really tried it out, but it should be working.
If anyone has another way of getting it to connect to the WiFi? Since the AM block is not really working in Android 10+ anymore... Or how to open the WiFi settings directly (on any model?!)?