1

I have a Pixel 4a with LineageOS (Android 13) that can connect to various WiFi networks. Not all passwords can be viewed through the WiFi page in settings, e.g. those with WPA Enterprise or those added through third-party app.

How can I retrieve the passwords of these WiFi networks?

I tried finding the location of it via Google, but all the suggested paths turned out to be empty or missing:

  • /data/misc/wifi/WifiConfigStore.xml (does not exist)
  • /data/misc/wifi/wpa_supplicant.conf (does not exist)

/data/misc/wifi/wpa_supplicant is a directory, but it is empty. The only other thing in /data/misc/wifi is the empty /data/misc/wifi/socket folder.

This question is not a duplicate of the following questions:

1
  • Monitoring file wrote activity could show you where the WiFi passwords are stired. I would use Termux to install inotify-tools for arm64 and then use it in Termux or vis adb with root permissions to monitor the data tree of your file-system for write operations when you add a new WiFi password.
    – Robert
    Commented Mar 17 at 0:17

2 Answers 2

1

I cannot give you the direct answer but cannot comment yet on Stack Exchange. However, with ADB you can try searching for it in two ways.

  1. search for file names

cd / ; find | grep supp | grep conf

  1. or take a known SSID password and search for it in the files.

cd / ; grep -R "known SSID password"

Number 1) is supposed to give you various names, like wpa_supplicant.conf or bcm_supp.conf or whatever the file might be named. It seems to not always carry the same name.

Number 2) would give you the file name IF your Wi-Fi password appears in clear text in a file. Other passwords should likewise be in that file or at least in that directory.

Alternatively, if ADB is just an alternative for you to find the passwords, this app had worked for me on a Samsung Note 10+ with original firmware in which the "regular" location also hadn't worked; that is my reason for answering here.

https://android.izzysoft.de/repo/apk/ua.sytor.wifipass -Sources are linked from the site on GitHub.

0
2

On this Phone/OS combination, it turned to be in /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml.

Check out boro's answer for a more general approach on how to find it. I simply found it in the source code of the suggested app: https://github.com/syt0r/WifiPass/blob/1c649924649cb182e60535f27384793d2b6c09fc/app/src/main/java/ua/sytor/wifipass/core/network_data_collector/NetworkDataCollectorContract.kt#L38-L42.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .