Search code examples
androidadb

Android ADB Wireless Scan


Is it possible to do a wifi scan with android adb/shell?

I have a Nexus 7 unlocked and rooted with Super User and busy box installed.

I can turn the wifi on or off, check the state, and get the current connected network, but cannot seem to find something that will scan for wifi connections.

I don't have wpa_cli available, but if its a must have for this functionality, is there a go-to article on installing/compiling it for my device?

Thanks.


Solution

  • To call WifiManager.startScan() do adb shell su 0 service call wifi 11