How to connect to any specified Wi-Fi network(SSID) using ADB command

3.9k Views Asked by At

Lets assume I have Wi-Fi networks 'A' 'B' & 'C'. I want to connect the connected android device to SSID: 'A' which is password protected. Is there a way to perform this using ADB command by providing SSID and password in the same command?

1

There are 1 best solutions below

3
On
$ am startservice \
    -n com.google.wifisetup/.WifiSetupService \
    -a WifiSetupService.Connect

Go with android developer console.