Skip to content
Advertisement

Connecting to WiFi using adb shell

I have all the details to connect to a particular access point. I have to use that access point only, so all I require is the command to do it.

Advertisement

Answer

You can add a network entry into the wpa_supplicant.conf yourself (or within your script) Essentially connect manually once, then do:

JavaScript

and integrate the network entry into your script for automation. Example simple script:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement