-1

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?

Ugnius Malūkas
  • 2,649
  • 7
  • 29
  • 42
Josh
  • 57
  • 3
  • 7

1 Answers1

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

Go with android developer console.

  • Hi can you explain how to use the argument given in the android developer console to connect to the SSID which is password protected, – Josh May 17 '18 at 09:33
  • 1
    This one is for `Android Things`. Does it work with phones as well? – Christopher May 17 '18 at 12:04
  • 1
    Don't think so. Getting this error `java.lang.IllegalArgumentException: Bad component name: com.google.wifisetup.WifiSetupService` – anurupr May 10 '19 at 14:26