How to get the name (SSID) of a connected Wi-Fi network via ADB?

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

+6
source share
1 answer

How about using netstats dumping information:

adb shell dumpsys netstats | grep -E 'iface=wlan.*networkId' 
+8
source

Source: https://habr.com/ru/post/989546/


All Articles