2

Wifi has been enabled on my android device. Usually to connect an available network, I input username and password from UI. Is it possible to do it via ADB or shell script?

ericyoung
  • 621
  • 2
  • 15
  • 21

3 Answers3

0

you can enable/disable wifi from command line with:

adb shell svc wifi enable|disable

regarding specifying the username & password.. hm... maybe this can help: How do I program android to look for a particular network? (Issues Following Simple Tutorial)

Community
  • 1
  • 1
Marcel Tricolici
  • 442
  • 3
  • 14
-2

yes of course its possible I also tried this and found this-> How can I connect to Android with ADB over TCP? i hope this will help you :)

Community
  • 1
  • 1
Sebastian Walla
  • 1,104
  • 1
  • 9
  • 23
-3

Install ADB over WIFI Widget, add it to your homescreen, enable it. you will be presented with your IP address

open the terminal and try

 adb connect <IP>:<PORT>
Kirill Kulakov
  • 10,035
  • 9
  • 50
  • 67