Hello, i am connected to my WLAN home network. How can I see from my phone the password of the network which I am connected to? I was expecting to find it in “details” but it simply showed “unchanged”. Any suggestion?
Hello,
Using ADB in root mode, you may find the passwords in /data/misc/wifi/wpa_supplicant.conf
.
Hi @edapx, go to Wifi Settings, tap on the Wifi Network and then click on “share”. Below the QR Code the Password is shown in plain text.
How do you do that ?
I don’t have wpa_supplicant.conf
, it seems to be hidden by system.
davinci:/ # su
/sbin/sh: su: not found
davinci:/ # exit
$ adb root
$ adb shell
davinci:/ # su
/system/bin/sh: su: inaccessible or not found
davinci:/ # ls -lha /data/misc/wifi/wpa_supplicant/
total 3.0K
drwxrwx--- 2 wifi wifi 3.4K 1971-12-30 15:33 .
drwxrwx--- 4 wifi wifi 3.4K 2021-09-03 11:50 ..
Hi,
Android changed the storage in latest versions, it’s now an XML file.
Tested using ADB shell on 10/Q, may be the same for 11/R :
C:\adb>adb devices
List of devices attached
f6fbcc69 device
C:\adb>adb root
C:\adb>adb shell
perseus:/ # cat /data/misc/wifi/WifiConfigStore.xml
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<WifiConfigStoreData>
<int name="Version" value="3" />
<NetworkList>
<Network>
<WifiConfiguration>
<string name="ConfigKey">"Xiaomi Mi MIX 2_3874"WPA_PSK</string>
<string name="SSID">"Xiaomi Mi MIX 2_3874"</string>
<null name="BSSID" />
<string name="PreSharedKey">"H4ckM3IfUC4n"</string>
<null name="WEPKeys" />
You got a <network> ... </network>
pair for each network, for the password locate your network then search for "PreSharedKey"
.
Try this App (Need Root!):
Got it work, many thanks. I didn’t look for other files
cat /data/misc/wifi/WifiConfigStore.xml | grep -e '"SSID"' -e PreShared
But now could backup this file and restore, perfect !
@nohwann I’m not root and I don’t want an app when you can do it easily without. Btw thanks