Have you ever forgotten your home Wi-Fi password but knew your phone was connected to it? Or needed to share access with a guest but didn't have the paper code handy? In Android, passwords for saved networks are stored in system files, but manufacturers often hide them from the user. In this article, we'll cover all the working methods for extracting passwords—from standard settings to methods for experienced users. root rights.
It is important to understand that not all methods are universal. Samsung, Xiaomi or Google Pixel Password paths may differ due to customized shells (One UI, MIUI, Stock Android). We'll point out the nuances for each brand and warn you of the risks—for example, why you shouldn't use questionable apps from Google Play.
If you're looking for a way to quickly copy a password without technical manipulation, start with the first two sections. For advanced users, instructions are available. ADB and working with system files. At the end of the article, we'll answer frequently asked questions: is it possible to extract a password without root, why some networks don't appear in the list, and how to protect your data from leaks.
1. Standard method: passwords in Android settings (without root)
Starting from Android 10Google has added a built-in feature for viewing Wi-Fi passwords—but with some caveats. It doesn't work on all devices and requires identity verification (PIN, fingerprint, or pattern). Here's how to check:
- Open
Settings → Network & Internet → Wi-Fi. - Tap on the name of the connected network (or select a saved one from the list).
- Click
Share(orShare(on English firmware). - Confirm screen unlock (if prompted).
- A text password will appear under the QR code; you can copy it.
⚠️ Attention: On phones Xiaomi (MIUI 12+) and Samsung (One UI 3.1+) This method only works for current networkTo view passwords for other saved networks, you will need superuser rights or ADB.
If the point Share No, it means the manufacturer has disabled this feature. In this case, proceed to the next sections. Also, keep in mind that on some firmware versions (for example, ColorOS from Oppo/Realme) instead of a password, only a QR code is displayed - it can be scanned with another device, but the text key will not be shown.
2. Export passwords via QR code (for guest access)
If you don't need the password itself, but just the ability to connect to another device, use the built-in QR code generator. This method works on most modern Android devices and doesn't require administrator rights:
- 📱 Open
Settings → Wi-Fiand tap on the name of your network. - 🔍 Choose
Share(orQR codein some firmware). - 🔒 Confirm unlocking (PIN/fingerprint).
- 📷 A QR code will be displayed - scan it with a second device.
This method is convenient for temporary access, but it doesn't allow you to see or save the text password. Furthermore, the QR code is valid for a limited time (usually 10-15 minutes) and requires re-authentication each time it's used.
On some devices (eg. Huawei With EMUIThe QR code contains not only the password but also additional network parameters (encryption type, hidden SSID). This can cause problems connecting older devices; in such cases, it's better to use a text password.
3. View passwords via file wpa_supplicant.conf (root required)
On devices with root access All saved Wi-Fi passwords are stored in a system file /data/misc/wifi/WifiConfigStore.xml (on newer versions of Android) or /data/misc/wifi/wpa_supplicant.conf (on old ones). To remove them:
Make sure your phone has root access (check using the Root Checker app)
Install a file manager with root support (for example, Root Explorer or FX File Explorer)
Create a backup copy of your system files (in case of error)
Disable your antivirus (it may block access to system folders)-->
1. Open the file manager with root access.2. Follow the path:
- For Android 9 and below:
/data/misc/wifi/wpa_supplicant.conf- For Android 10+:
/data/misc/wifi/WifiConfigStore.xml3. Find the block with the network name (SSID) - the password will be in the line
psk="your_password".
4. Copy the value (without quotes).
⚠️ Attention: Editing or deleting this file may result in loss of all saved Wi-Fi networksNever change it manually without a backup!
| Android version | File path | Storage format |
|---|---|---|
| Android 4.0–8.1 | /data/misc/wifi/wpa_supplicant.conf |
Text file, passwords in clear text |
| Android 9–10 | /data/misc/wifi/WifiConfigStore.xml |
XML file, passwords are encrypted (key required) |
| Android 11+ | /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml |
Encrypted XML requires decoding |
On Android 10+ passwords in WifiConfigStore.xml encrypted using a key stored in keystoreTo decrypt them, you will need additional tools like WiFi Password Viewer (root only) Alternatively, use ADB (more on this in the next section).
4. Extracting passwords via ADB (without root, but with debugging)
If there is no root access, but it is enabled USB debugging, you can try to extract passwords using ADB (Android Debug Bridge). This method doesn't work on all devices, but it often saves Google Pixel, Nokia and some models Samsung.
You will need:
- 🖥️ Computer with installed ADB Tools.
- 📱 Phone with USB debugging enabled (
Settings → About phone → Build number- tap 7 times, then return toSettings → System → Developer options → USB debugging). - 🔌 USB cable (preferably original).
Instructions:
1. Connect your phone to the PC and confirm trust of the computer on the smartphone screen.2. Open a command prompt (Windows) or terminal (macOS/Linux) in the ADB folder.
3. Enter the commands in order:
adb shell
su
cat /data/misc/wifi/WifiConfigStore.xml | grep -E 'ssid|preSharedKey'
4. Find the line with in the output
preSharedKey- this is an encrypted password.
5. Use the utility to decrypt WiFi Password Decrypt (available on GitHub).
⚠️ Attention: On Android 12+ Google has tightened its security, and this method may not work. Also, some manufacturers (for example, Xiaomi) block access to system files even through ADB without unlocking the bootloader.
What should I do if ADB returns a "permission denied" error?
This means you don't have permission to read system files. Try:
1. Repeat the command with su (requires root).
2. Use an alternative route: adb pull /data/misc/wifi/WifiConfigStore.xml (sometimes works without root on older versions of Android).
3. Check if your antivirus or firewall is blocking access on your PC.
5. Wi-Fi Password Viewer Apps: What Works in 2026
IN Google Play There are hundreds of apps that promise to reveal saved Wi-Fi passwords. However, most of them either don't work without root access or contain malicious code. We've tested the latest solutions and compiled a list of reliable options:
| Application | Root required? | Powered by | Peculiarities |
|---|---|---|---|
| WiFi Password Viewer | Yes | Android 5.0–12 | Shows passwords in clear text and exports to a text file. |
| WiFi Password Recovery | No (but USB debugging is required) | Android 8.0–11 | Works via ADB, but not on all firmware versions. |
| WiFi Key Recovery | Yes | Android 4.0–9.0 | Supports older versions wpa_supplicant.conf |
⚠️ Attention: Unrooted apps often request unnecessary permissions (access to contacts, SMS, geolocation). This is a sign of potentially dangerous software. Before installing, check reviews and ratings in Google Play.
For non-rooted devices the best option is WiFi Password Recovery, but it requires connection to a PC and operation with ADBIf you need a one-click solution, consider purchasing an inexpensive router with a guest network feature—it's safer than installing questionable software.
6. Alternative methods: backup and reset the router
If none of the methods work, there are radical options:
- 🔄 Resetting the router: Click the button
Reseton the back of the router (hold for 10-15 seconds). After this, the network will be named by default (indicated on the router sticker), and the password will be reset to the factory default (usuallyadminor empty). - 💾 Android backup: Apps like Titanium Backup (root only) can save Wi-Fi settings to a backup. After restoring on another device, the network will reconnect automatically.
- 📧 Contacting your provider: If the router was issued by the Internet provider, the password can be specified in the contract or personal account (for example, Rostelecom, Beeline or MTS).
Resetting your router is a last resort, as it will require you to reconfigure your network (including port forwarding, parental controls, and other settings). If you have a saved copy of your router configuration (a file with the extension .cfg or .bin), it can be downloaded back via the web interface (192.168.0.1 or 192.168.1.1).
7. Security: How to protect your Wi-Fi passwords from leaks
Extracting passwords from Android is a useful skill, but it comes with risks. Here's how to minimize the risks:
- 🔐 Use complex passwords: Combinations like
12345678orqwertyare hacked in seconds. Password generators (for example, in 1Password or Bitwarden) will help create a secure key. - 📵 Disable automatic connection: In the Wi-Fi settings, disable the option
Auto-connection- this will prevent connection to questionable networks. - 🛡️ Encrypt your backups: If you backup your Wi-Fi settings, store it in encrypted form (for example, via 7-Zip with a password).
- 🚫 Do not share QR codes: They may contain information about your location or router model. It's best to manually enter the password for the guest.
If you often connect to public networks (in cafes, airports), use VPN (For example, ProtonVPN or Windscribe). This won't protect your Wi-Fi password, but it will prevent your traffic from being intercepted. Also, avoid networks with names like Free_WiFi or Starbucks_Guest — attackers often create them to steal data.
FAQ: Frequently Asked Questions About Android Wi-Fi Passwords
Is it possible to see a Wi-Fi password without root?
Yes, but with some reservations:
- On Android 10+ through the menu
Share(only for current network). - Through
ADB(requires USB debugging and a computer). - On some firmware (for example, EMUI from Huawei) - QR code only.
Without root and ADB extract password from all saved networks impossible.
Why isn't my Wi-Fi network listed in my saved networks?
Possible reasons:
- The network was removed from settings (for example, after resetting the phone).
- Android does not save networks
WPA3-Enterpriseor802.1X(corporate). - The manufacturer has restricted access to system files (relevant for Xiaomi And Samsung on new firmware).
Try reconnecting to the network - sometimes this helps get it back on the list.
Is it possible to extract the password from a phone if it is locked?
No. Without a screen unlock (PIN, pattern, fingerprint), none of the methods will work:
ADBrequires confirmation of trust to the PC on the phone screen.- Root access cannot be obtained on a locked device.
- Password viewer apps ask to unlock.
The only way out is to reset the phone to factory settings (losing all data) or use a backup copy (if one was created in advance).
How to transfer Wi-Fi passwords to a new phone?
Transfer methods:
- Backup via Google: Turn on sync
Settings → Google → BackupWi-Fi passwords will be transferred automatically when setting up a new device (not available on all firmware versions). - Export via root: Copy the file
WifiConfigStore.xmlto a new phone (requires root on both devices). - QR code: Share each network individually via the menu
Share.
On Samsung There is a built-in data transfer function through Smart Switch, but it doesn't always transmit Wi-Fi passwords.
Legal: Is it legal to extract Wi-Fi passwords from someone else's phone?
No. In most countries (including Russia), unauthorized access to someone else's device data is classified as:
- Violation Federal Law No. 152 "On Personal Data" (fine up to 500 thousand rubles).
- Unauthorized access to computer information (Article 272 of the Criminal Code of the Russian Federation, up to 2 years of imprisonment).
The exception is if the phone belongs to you but is used by someone else (for example, a child). In this case, you have the right to manage the device's settings.