Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the name (SSID) of the connected WiFi network using ADB?

Tags:

android

adb

I am trying to get the connected Wifi network name through the ADB commands. The only method I could figure out was search the dumpsys for the WiFi network info and get the SSID. But this is cumbersome. Is there a more direct way?

like image 964
Rahul Vig Avatar asked Jun 22 '15 18:06

Rahul Vig


1 Answers

What about using dumping netstats info:

adb shell dumpsys netstats | grep -E 'iface=wlan.*networkId'
like image 193
Simas Avatar answered Sep 22 '22 17:09

Simas