Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get configured wifis with ADB

Tags:

android

adb

Is there a way to get the configured WiFi-SSIDS from an Android (not rooted) device via ADB? This should be working independant from the WiFi on/off state.

Thank you

like image 574
Soccertrash Avatar asked Feb 07 '23 02:02

Soccertrash


1 Answers

generally all the configured WIFIs with their passwords are stored in wpa_supplicant.conf which saved in

/data/misc/wifi/wpa_supplicant.conf

but you cant access it unless you have root permission.

you can pull the file by this command

if using windows

adb pull /data/misc/wifi/wpa_supplicant.conf c:\

if using ubuntu

adb pull /data/misc/wifi/wpa_supplicant.conf ~/

like image 127
Nishant Pardamwar Avatar answered Feb 13 '23 07:02

Nishant Pardamwar