Have you ever forgotten your home Wi-Fi password but remembered your phone had connected to that network? Or needed the password for a public hotspot you'd connected to before? On Android, this information is stored in the system, but it's not always accessible through the standard interface. Unlike iOS, where passwords can only be viewed through iCloud Keychain, Android offers several ways — from simple to technically complex.
In this article we will look at, Where are Wi-Fi passwords physically stored in the Android file system?, how to extract them without root access, and what to do if the phone isn't rooted. We'll also discuss security risks and legal aspects, as not every password can be reused without the network owner's permission.
1. Standard method: Android settings (only for some versions)
The easiest method is to look into the network settings. However, it works. not on all devicesManufacturers like Samsung, Xiaomi or Google Pixel may hide this option or require additional authentication.
Try this way:
- Open
Settings → Wi-Fi. - Find the network you need the password for and tap on its name.
- In some firmware versions a button will appear
ShareorQR code. Click it. - The system may ask
PIN code,graphic keyor a fingerprint.
If the buttons Share No, it means your manufacturer has disabled it. For example, on stock Android 12+ (pure Android from Google) this function is there, but on MIUI 14 from Xiaomi It is often removed "for safety".
⚠️ Attention: On devices with corporate profiles (such as work phones), this feature may be blocked by policies. MDM (Mobile Device Management). Attempting to bypass restrictions will result in a notification to the administrator.
2. The wpa_supplicant.conf file: where passwords are stored in the system
All saved Wi-Fi networks on Android are stored in a file /data/misc/wifi/WifiConfigStore.xml (on new versions) or /data/misc/wifi/wpa_supplicant.conf (on old ones). Access to it requires root rights, but there are workarounds.
If you have root, use any file manager with root support (eg. Root Explorer or FX File Explorer):
- Follow the path
/data/misc/wifi/. - Find the file
WifiConfigStore.xmlorwpa_supplicant.conf. - Open it with a text editor.
- Look for blocks with
SSID(network name) andPSK(password).
Sample Content wpa_supplicant.conf:
network={ssid="MyHomeWiFi"
psk="12345678"
key_mgmt=WPA-PSK
}
Without root there is no access to the file, but you can try make a backup via ADB (see next section).
What are root rights?
Root access (superuser) gives you complete control over the Android system. Obtaining it requires unlocking the bootloader and installing special utilities such as MagiskOn most modern devices, this will void the warranty and may interfere with the operation of banking apps (due to SafetyNet).
3. Extracting passwords via ADB (without root)
ADB (Android Debug Bridge) — a debugging tool that allows you to interact with Android via a computer. It can be used to extract certain system files, including Wi-Fi configurations. but not always.
Instructions for Windows/macOS/Linux:
Install Android SDK Platform-Tools|Turn on USB debugging In Developer Options, connect your phone to your PC via cable and enable debugging on your phone (a prompt will appear).
- Open a command prompt (terminal) and check the connection:
adb devicesYour device's serial number should appear.
- Create a backup of the password file:
adb pull /data/misc/wifi/WifiConfigStore.xmlIf the file is not found, try:
adb pull /data/misc/wifi/wpa_supplicant.conf - Open the downloaded file on your PC using any text editor.
On Android 10+ This method may not work due to limitations Scoped StorageIn this case, only root or specialized applications will help.
⚠️ Attention: Using ADB to extract passwords from someone else's device without the owner's consent is a violation of the law (Article 272 of the Russian Criminal Code - "Unauthorized access to computer information"). These instructions are intended only for restoring access to your own networks.
4. Apps for viewing Wi-Fi passwords
If manual methods seem complicated, you can use applications from Google PlayMost of them require root, but some work without it—via backups or firmware vulnerabilities.
Popular utilities:
- 🔓 WiFi Password Viewer — shows saved networks, but requires root rights.
- 📱 WiFi Key Recovery — attempts to extract passwords from backups (does not work on all devices).
- 🔍 WiFi Password Show - alternative for Samsung And LG.
- 🛠️ Root Browser — file manager for rooted devices.
Example of work WiFi Password Viewer:
- Install the application and open it.
- Grant root access (if requested).
- Find the desired network in the list and tap on it - the password will be displayed in the field
PSK.
Without root, most applications will only show the names of networks (SSID), but not passwords. The exception is devices with Android 9 and below, where sometimes it is possible to bypass restrictions.
5. Alternative methods: QR code and router
If none of the methods worked, try to work around the problem:
- 📱 Network QR code: On some phones (eg. Google Pixel) You can generate a QR code for the network. You can scan it with another device and connect without entering a password.
- 🖥️ Router settings: Go to the router's web interface (usually at
192.168.1.1or192.168.0.1) and look at the password in the sectionWi-FiorWireless network. - 🔄 Resetting the router: The last option is to reset the router to factory settings (button
Reseton the back panel). After this, the network will be passwordless or with the default one (indicated on the router sticker).
To log into the router, use the login/password from the sticker on the device (usually admin/admin or admin/password). If the data has changed and you don't remember it, the only option left is to reset it.
| Method | Root required | Works on all Android devices | Risks |
|---|---|---|---|
| Wi-Fi settings (Share button) | ❌ No | ❌ Only on some firmware versions | No |
File wpa_supplicant.conf |
✅ Yes | ✅ Yes (on Android 9 and below) | Warranty void, SafetyNet issues |
| ADB | ❌ No (but debugging is needed) | ❌ Only on older versions | May not work on Android 10+ |
| Apps from the Play Market | ✅ Most often | ❌ Depends on the firmware | Unofficial APKs may contain viruses. |
| Router settings | ❌ No | ✅ Yes | Resetting the router settings |
6. Security and legal aspects
Extracting Wi-Fi passwords from your device is legal, but there are some caveats:
- 🏠 Home network: You can use a password to connect your devices.
- 🏢 Work networkThe password may be protected by corporate policy. Disclosing it without permission is a violation of the employment contract.
- ☕ Public networks (cafes, hotels): Reuse of a password without the owner’s consent may be considered unauthorized access (Article 272 of the Criminal Code of the Russian Federation).
If you found a password for someone else's network (for example, a neighbor's), do not distribute itIn some countries, fines are imposed for this. For example, in Russia, the maximum penalty under Article 272 of the Criminal Code of the Russian Federation is up to 7 years of imprisonment (in case of particularly large damage).
Also be aware of security risks:
- 🔓 Storing passwords in plain text (for example, in a notepad) can lead to their leakage.
- 📲 Installing questionable password extraction apps often leads to malware infection.
- 🌐 Connecting to unknown networks (even with a "found" password) is dangerous—attackers can intercept traffic.
FAQ: Frequently Asked Questions
Is it possible to find out the Wi-Fi password without rooting on Android 13?
On Android 13 and newer, it is almost impossible to extract the password without root due to the tightened security policy (Scoped Storage and ADB limitations). The only working methods are:
- Use the button
Sharein the Wi-Fi settings (if available). - View the password in the router settings.
Apps from the Play Market and ADB won't help on newer versions of Android.
Why is the password encrypted in the wpa_supplicant.conf file?
On some firmware (for example, MIUI or One UI) Passwords in configuration files are stored encrypted. This is due to additional security measures implemented by the manufacturer. It is impossible to decrypt them without root access and knowledge of the algorithm.
If you see a line like this instead of a password psk=ccmp:00112233445566778899aabb, this means that the password is protected.
Is it possible to find out the password for a Wi-Fi connection that someone else has connected to?
Technically, yes, if you have physical access to their rooted device or can connect to it via ADB. However:
- This is a violation privacy law (Article 137 of the Criminal Code of the Russian Federation - "Violation of the inviolability of private life").
- Many instant messengers (for example, WhatsApp or Telegram) encrypt transmitted passwords.
- Modern routers can keep a connection log and block unauthorized access.
A legal alternative is to ask for the password directly.
How to protect your Wi-Fi passwords from being extracted?
To minimize the risk of password theft from your Android device:
- Turn it off
USB debuggingin the developer settings. - Do not install applications from unknown sources (outside Google Play).
- Use complex Wi-Fi passwords (at least 12 characters with letters, numbers, and special characters).
- Set up a guest network on your router for temporary users.
- Update your router firmware regularly (eliminates vulnerabilities like Krack).
You can also enable MAC filtering on the router, but this is not a panacea - MAC addresses are easy to spoof.
Does the wpa_supplicant.conf file method work on Samsung?
On devices Samsung with firmware One UI file wpa_supplicant.conf is often missing or contains encrypted data. Instead, passwords may be stored in:
/data/vendor/wifi/WifiConfigStore.xml- Database
Settings Storage(available only via root).
For Samsung It's better to use specialized applications like WiFi Password Show, which are adapted to One UI.