Get configured wifis with ADB

后端 未结 4 1113
孤城傲影
孤城傲影 2021-01-07 04:32

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 yo

4条回答
  •  被撕碎了的回忆
    2021-01-07 04:58

    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 ~/

提交回复
热议问题