Android 查看 wifi 密码

1 命令

adb shell cat /data/misc/wifi/wpa_supplicant.conf

注意需要root权限,因为普通用户没有可读权限

Z91:/data/misc/wifi # ls -al
-rw-rw----  1 wifi   wifi    2849 2018-03-27 09:00 wpa_supplicant.conf

ssid 表示 wifi 热点,psk 为 wifi 密码

network={
        ssid="wifi_SU"
        psk="Su1ddsfs235sdf82"
        key_mgmt=WPA-PSK
        priority=117
        disabled=1
        id_str="%7B%22creatorUid%22%3A%221000%22%2C%22configKey%22%3A%22%
fi_SU%5C%22WPA_PSK%22%7D"
}

network={
        ssid="CTfdsaSasd-2.4"
        bssid=2c:30:33:60:76:c6
        psk="lasafdvasfda123456"
        key_mgmt=WPA-PSK
        priority=9
        disabled=1
        id_str="%7B%22creatorUid%22%3A%221000%22%2C%22configKey%22%3A%22%
S-2.4%5C%22WPA_PSK%22%7D"
}

network={
        ssid="Ssfdufsfdaadifsd"
        psk="su123sdf456sdf78"
        key_mgmt=WPA-PSK
        priority=19
        disabled=1
        id_str="%7B%22creatorUid%22%3A%221000%22%2C%22configKey%22%3A%22%
fadi%5C%22WPA_PSK%22%7D"
}

network={
        ssid=e9ab98e99381e59586e6978541
        bssid=78:d3:8d:f7:d7:13
        key_mgmt=NONE
        priority=28
        disabled=1
        id_str="%7B%22creatorUid%22%3A%221000%22%2C%22configKey%22%3A%22%
9%AB%98%E9%93%81%E5%95%86%E6%97%85A%5C%22NONE%22%7D"
}

你可能感兴趣的:(安卓系统)