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?
Asked
Active
Viewed 3,731 times
-1

Ugnius Malūkas
- 2,649
- 7
- 29
- 42

Josh
- 57
- 3
- 7
-
@Joshua Did you searched the stackoverflow for duplicate question? – Manmohan_singh May 17 '18 at 09:04
-
1@RickM. can you provide the right ADB command from the link given by you to perform the action I intended, I already searched and I couldn't find it. – Josh May 17 '18 at 09:14
-
1@Manmohan_singh yes I did.. – Josh May 17 '18 at 09:15
-
1@SethuramanSrinivasan, I wanted to connect using "ADB" command not using any other code – Josh May 17 '18 at 09:16
-
is your device rooted? – Srini May 17 '18 at 16:52
-
Yes @Srini it is rooted – Josh May 18 '18 at 05:17
-
IMHO, this question was wrongly closed. The first link says nothing about ADB. The second needs root. – Luis A. Florit Apr 10 '20 at 21:32
-
@Joshua Did you get your answer? – Luis A. Florit Apr 10 '20 at 21:33
1 Answers
-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
-
1This one is for `Android Things`. Does it work with phones as well? – Christopher May 17 '18 at 12:04
-
1Don't think so. Getting this error `java.lang.IllegalArgumentException: Bad component name: com.google.wifisetup.WifiSetupService` – anurupr May 10 '19 at 14:26