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?
What about using dumping netstats info:
adb shell dumpsys netstats | grep -E 'iface=wlan.*networkId'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With