Forgot your home Wi-Fi password, and the router is in an awkward location where you can't read the sticker? Or do you need to connect a new device but don't have the password written down anywhere? Smartphone owners Xiaomi, Redmi And POCO They can easily retrieve a saved password directly from the phone's settings—without accessing the router or performing any complicated manipulations. In this article, we'll cover all the current methods, including methods for devices without root rights and using ADB debug bridge.
Important: Not all methods work on the latest versions. MIUI (especially 14+), since the company Xiaomi tightens the security policy. We tested each method on the latest firmware and indicated the limitations. If your smartphone runs on Android 12/13/14, check the about section first Settings → Wi-Fi Passwords - This is the simplest option.
Warning: Extracting passwords from system files may violate the terms of service of some networks (e.g., corporate or public). Use these methods for personal use only and on legal grounds.
1. Standard method: view the password in MIUI settings
The most obvious and safest method is to use the built-in function MIUI to view saved passwords. It works on most devices. Xiaomi, Redmi And POCO with firmware version MIUI 12 and newer, but may be disabled in some regional builds.
Instructions:
- 📱 Open the app
Settingson your smartphone. - 🔍 Go to the section
Wi-Fi(orConnections → Wi-Fion some models). - 🔗 Find the network whose password you need to know in the list and tap on its name.
- 👁️ In the window that opens, select the option
Show passwordorShare password(PIN or fingerprint may be required).
If option Show password absent, then:
- ❌ Your version MIUI does not support this feature (often found on older or custom firmware).
- ❌ The network is saved, but the password was not entered manually (for example, connecting via WPS or Mi Home).
- ❌ You have firmware for a different region installed (for example, the Chinese version) MIUI without Google services).
⚠️ Note: On some devices with MIUI 14 And Android 13/14 The option to view your password may be hidden due to security policy. In this case, try the method with export Wi-Fi configuration (section 3).
2. Via Wi-Fi configuration file (without root)
If the standard method does not work, you can extract the password from the system file wpa_supplicant.conf, Where Android stores data about saved networks. This method does not require root rights, but it will require connecting your smartphone to your computer and using ADB (Android Debug Bridge).
Step-by-step instructions:
- 🖥️ Install on PC Platform Tools (part of Android SDK).
- 📲 Activate on your smartphone
Developer mode:- Go to
Settings → About phone. - Tap the item 7 times
MIUI version. - Return to
Settings → Advanced → For developersand turn it onUSB debugging.
- Go to
File transfer or MTP).Platform Tools and run:adb devices
(Your device should be displayed. If not, check your drivers or enable debugging on your phone.)
adb pull /data/misc/wifi/WifiConfigStore.xml
This command will copy the configuration file to your computer. Open it with any text editor (e.g. Notepad++) and find the line:
<string name="PreSharedKey"><![CDATA[BashPapol]]></string>
If the file WifiConfigStore.xml not found, try an alternative path:
adb pull /data/misc/wifi/WifiConfigStoreSoftAp.xml
Install Platform Tools on PC|
Enable Developer Mode on Xiaomi|
Allow USB debugging|
Connect your phone in MTP mode|
Checking connection via `adb devices`-->
⚠️ Attention: On MIUI 13/14 The path to the configuration file may differ. If the command returns an error Permission denied, then they are required root rights or an alternative method (section 4).
3. Export Wi-Fi configuration via QR code
One lesser-known method is to generate a QR code with the connection details and scan it with another device. This method works on most devices. Xiaomi With MIUI 12+ and does not require additional programs.
How to do it:
- 📱 Open
Settings → Wi-Fi. - 🔍 Find the desired network in the list and tap on its name.
- 🖼️ Select an option
ShareorQR code(may be calledSharein English-language firmware). - 🔒 Enter your PIN or use biometrics to confirm.
- 📷 A QR code with network data will open. Now you can:
- 📱 Scan it with another phone (the password will be displayed upon connection).
- 🖥️ Decode the QR code using an online service (for example, ZXing Decoder). In the field
WPAorpassworda password will be indicated.
Example of QR code content (decoding):
WIFI:S:MyWiFiName;T:WPA;P:MyPassword123;;
Where:
S— network name (SSID),T— security type (WPA,WEP),P- password.
| MIUI version | QR code support | Confirmation required |
|---|---|---|
| MIUI 12 | ✅ Yes | ✅ PIN/biometrics |
| MIUI 13 | ✅ Yes | ✅ PIN/biometrics |
| MIUI 14 (Android 13/14) | ⚠️ Partially (depending on region) | ✅ PIN/biometrics + MI Account verification |
| Custom firmware (LineageOS, etc.) | ❌ No | — |
4. Using password viewer apps (root required)
If yours Xiaomi There is superuser rights (root), you can use specialized applications to view all saved passwords. This method is suitable for users of custom firmware or those who have unlocked the bootloader via Mi Unlock Tool.
Top 3 verified apps:
- 🔓 WiFi Password Viewer — displays passwords as a list, supports export to a file.
- 📋 Root Browser - allows you to manually open a file
/data/misc/wifi/WifiConfigStore.xml. - 🛠️ ES File Explorer (with root access enabled) - a convenient file manager with support for system folders.
Instructions for WiFi Password Viewer:
- Download the app from Google Play.
- Grant root access on first run.
- In the main window, you will see a list of all saved networks with passwords.
- To export, tap the button
Exportand select the format (TXT or CSV).
⚠️ Attention: Installing root on Xiaomi voids the warranty and may result in some features being blocked (e.g. Mi Pay or Face Unlock). On new models (for example, Xiaomi 13/14, Redmi Note 12) Unlocking the bootloader requires linking an account Mi and waiting time 7-168 hours.
What should I do if the application doesn't see passwords?
If the app doesn't display passwords after granting root access, check:
1. The path to the configuration file is correct (on some firmware versions it may be in `/data/vendor/wifi/`).
2. Having rights to read system files (in Magisk or SuperSU).
3. Application relevance - some utilities are not updated for new versions Android 13/14.
5. Alternative methods: backup and reset the router
If none of the above methods work, there are still drastic measures to try. These should only be used as a last resort, as they require additional steps or a factory reset.
Method 1: Backup Wi-Fi Settings
Some backup applications (eg. Swift Backup or Titanium Backup) can save data Wi-Fi Archived. After restoring it on another device, the password will be available.
- ⚙️ Install Swift Backup and grant root access.
- 📦 Select a section
Wi-Fi settingsand create a backup. - 🔄 Restore the backup to another phone (or the same one after a reset).
- 🔑 The password will be available in the connection settings.
Method 2: Reset the router to factory settings
If you have physical access to the router, you can reset it and set a new password:
- 🔌 Find the button on the back of the router
Reset(usually recessed into the body). - 📍 Press and hold it for 10-15 seconds (until the indicators start flashing).
- 🖥️ Connect to the router's network via cable or Wi-Fi (the network name and password will be the default ones, indicated on the sticker).
- 🔧 Go to the router's web interface (usually at
192.168.1.1or192.168.0.1) and set up a new password.
⚠️ Warning: Resetting your router will delete all user settings, including port forwarding, guest networks And parental controlIf the router is provided by the provider (for example, Rostelecom or MTS), after the reset, you may need to re-authorize in your personal account.
6. Common mistakes and how to avoid them
When attempting to retrieve a password, users often encounter typical problems. Let's look at the most common ones and how to solve them.
| Error | Cause | Solution |
|---|---|---|
adb: no devices/emulators found |
ADB drivers are not installed or USB debugging is not enabled. | Install the drivers Mi USB Driver and check the inclusion USB debugging in the developer settings. |
File WifiConfigStore.xml empty |
The password is not saved in the system (connection via WPS or Mi Home). | Try connecting to the network manually (enter any password, then the correct one). |
Option Show password absent |
Regional firmware or version limitation MIUI. | Use the ADB or QR code method. |
Permission denied when accessing a file |
Insufficient rights (root required). | Get root access or use alternative methods. |
On Xiaomi devices running MIUI 14 and Android 14, the Wi-Fi configuration file may be encrypted and linked to a Mi account. In this case, extracting the password without root is impossible—you'll need to reset the router or access its web interface.
If you use Xiaomi with custom firmware (for example, LineageOS or Pixel Experience), the path to the configuration file may differ. Try:
adb pull /data/misc/wifi/WifiConfigStore.xml
adb pull /data/vendor/wifi/wpa/wpa_supplicant.conf
FAQ: Answers to frequently asked questions
Is it possible to find out the Wi-Fi password on a Xiaomi device without rooting?
Yes, on most devices with MIUI 12/13 it is possible through Settings → Wi-Fi → [network name] → Show password or export a QR code. If this option is not available, use the method with ADB (section 2). On MIUI 14 Without root, the chances are minimal - you will need to reset the router.
❓ Why isn't my network listed in the WifiConfigStore.xml file?
This happens if:
- 🔄 The network was connected via WPS or Mi Home (the password is not saved in the system).
- 🗑️ Network data has been cleared via
Settings → Network reset. - 🔒 The firmware has been modified (for example, system files have been deleted).
Solution: Connect to the network manually (enter the password again).
❓ Does this method work on POCO F5 or Redmi Note 12?
Yes, but with some reservations:
- 📱 POCO F5 And Redmi Note 12 work on MIUI 14 And Android 13, where the option to view the password may be hidden.
- 🔧 Method with ADB works, but requires unlocking
OEM Unlockin the developer settings. - 🔒 If your device has factory firmware, try QR code (section 3).
❓ Is it possible to find out someone else's Wi-Fi password through Xiaomi?
Technically, yes, if the phone has previously connected to this network and the password is saved. However:
- ⚠️ This may be disruptive Personal Data Law (Article 272 of the Criminal Code of the Russian Federation - unauthorized access to computer information).
- 🔒 Corporate and public networks often use 802.1X or radius authentication, where the password is not stored on the device.
Use these methods only for their networks.
❓ What to do if none of the methods worked?
There are two options left:
- 🔄 Reset the router to factory settings (button
Resetfor 10-15 seconds). The password will be reset to the default (indicated on the sticker). - 📞 Contact your ISP (if you rented the router) - they can provide you with the password over the phone after verifying your personal information.