You forgot your home Wi-Fi password, but your Xiaomi (or Redmi/POCO) successfully connected to the network? The situation is familiar to many: the router was set up by the provider a year ago, the password is written down on a piece of paper that has long since been lost, and now you need to connect a new device. Luckily, on smartphones with MIUI There are several ways to retrieve a saved password - how to do it without root rights, and so it is with them.
In this article, we will analyze all the current methods for modern versions. Android 10–14 and shells MIUI 12–15Important: Some methods require technical knowledge or additional applications, but most options are accessible even to beginners. Also note that Starting with MIUI 14, Xiaomi actively blocks access to system files with passwords through standard methods. - therefore for new models (for example, Xiaomi 13/14 or Redmi Note 12) a workaround may be needed.
Before you begin, please check two things:
1) Make sure your smartphone is currently connected to the target Wi-Fi network (the network icon is active in the notification bar).
2) If you are planning to use ADB or root, charge your phone to at least 50% - interrupting the process may lead to malfunctions.
Method 1: Via MIUI settings (no root required, for older versions)
The easiest method is to use the built-in password viewer function in MIUI. Unfortunately, it doesn't work on all devices: starting from MIUI 12.5 And Android 11+ Xiaomi removed this option from the interface "for security reasons." However, on older models (for example, Redmi Note 8/9 or Mi 9T) the method is still relevant.
Instructions:
- 📱 Open
Settings → Wi-Fi. - 🔍 Find your current network in the list and tap on its name.
- 🔑 In the details window, click
Share password(orShow QR code). - 👁️ The system may ask PIN code, graphic key or fingerprint for verification.
⚠️ Attention: If the point Share password no - your version MIUI It doesn't support it. Proceed to the next method.
On some firmware versions, instead of a text password, it is displayed QR codeTo extract the password from it:
- Take a photo of the QR code with another device.
- Use any scanning application (eg. Google Lens).
- There will be a line in the connection data
WPA:...- this is the password.
2. Method: via file wpa_supplicant.conf (file manager required)
All saved Wi-Fi passwords on Android stored in the system file wpa_supplicant.conf. It can be accessed through file manager with root rights (For example, Root Explorer) or by a roundabout route - through ADB (We'll talk about it in the next section). Here we'll consider the option with MIUI, where sometimes it is possible to do without root.
Steps:
- Install a file manager with system folder support, for example FX File Explorer or Solid Explorer (enable display of hidden files in settings).
- Follow the path:
/data/misc/wifi/WifiConfigStore/Or an alternative path for newer versions:
/data/vendor/wifi/WifiConfigStore/ - Find the file
WifiConfigStore.xmlorwpa_supplicant.confand open it with a text editor. - Look for blocks like:
network={ssid="NAZVANIE_SETI"
psk="PAROL_OT_WIFI"
key_mgmt=WPA-PSK
}
⚠️ Attention: On MIUI 13/14 Access to these folders is often blocked even for system applications. If the file manager returns an errorPermission denied, try the method withADBor root.
If the file is opened, but the password is encrypted (for example, the string psk=1234567890abcdef), it can be decrypted using online services like WPA2 PSK DecoderHowever, this does not always work - modern versions Android use dynamic encryption.
Install Xiaomi drivers on your PC | Enable USB debugging in Developer Options | Download the ADB platform from Google | Connect your phone to your PC with the original cable -->
Method 3: Using ADB (without root, but from a PC)
ADB (Android Debug Bridge) — is a debugging tool that allows you to execute commands on your smartphone from your computer. It can be used to extract the Wi-Fi password even if you don't have it. root rightsThe method works on most devices. Xiaomi, but requires preliminary configuration.
Step-by-step instructions:
- Enable USB debugging:
- 🔧 Go to
Settings → About phone. - 🔨 Tap the item 7 times
MIUI versionto activate developer mode. - 🔩 Return to
Settings → Advanced → For developersand turn it onUSB debugging.
- 🔧 Go to
- 🖥️ Install the drivers Xiaomi (download from the official website).
- 🔌 Connect your smartphone via USB and select the mode
File transfer. - 🐍 On your PC, open the Command Prompt (
Win + R → cmd) and enter:adb devicesIf your device appears in the list, you can continue.
- Extract the password:
adb pull /data/misc/wifi/WifiConfigStore.xmlOr for newer versions:
adb pull /data/vendor/wifi/WifiConfigStore/WifiConfigStore.xmlThe file will be saved in the folder from which you ran the command. Open it with any text editor (for example, Notepad++) and find the line with
PreSharedKey.
If the team adb pull gives an error Permission denied, try an alternative method:
adb shellsu
cat /data/misc/wifi/WifiConfigStore.xml | grep psk
⚠️ Attention: On MIUI 14 and newer Xiaomi can block access to these files even through ADBIn this case, only root or reset the router.
Method 4: Using root rights (100% working method)
If yours Xiaomi There is root access (for example, through Magisk), you can extract a Wi-Fi password in seconds. This method is universal and works on all versions. MIUI, including the latest.
Instructions:
- 📲 Install any root explorer (For example, Root Explorer or FX File Manager).
- 🔍 Follow the path:
/data/misc/wifi/Or alternative paths for new versions:
/data/vendor/wifi/WifiConfigStore//data/misc/apexdata/com.android.wifi/ - 📄 Find the file
WifiConfigStore.xmland open it. - 🔑 Look for blocks like:
<Integer name="NetworkId" value="0" /><String name="SSID" value=""NAZVANIE_SETI"" />
<String name="PreSharedKey" value=""PAROL_OT_WIFI"" />
If the file does not open or the password is encrypted, try running the command through ADB With root:
(replaceadb shellsu
cat /data/misc/wifi/WifiConfigStore.xml | grep -A 5 "NAZVANIE_SETI"
NAZVANIE_SETI to the name of your network).
For convenience, you can use applications like WiFi Password Viewer (requires root), which automatically retrieve all saved passwords and display them in a convenient form.
What should I do if Wi-Fi stops working after rooting?
On some firmware versions MIUI After rooting, the Wi-Fi module may become unstable. Solution:
1. Restart your phone.
2. In Magisk check if there are any conflicting modules (for example, Universal SafetyNet Fix).
3. If the problem persists, reflash the Wi-Fi module via TWRP (find the one suitable for your model on the forum XDA Developers).
5. Method: via backup (if saving to Mi Account is enabled)
Xiaomi offers a settings backup feature in Mi AccountIf it was activated, there is a chance to extract the password from the backup - even without root or ADBHowever, the method does not always work: in the latest versions MIUI Wi-Fi passwords may not be included in the backup for security reasons.
How to try:
- 🔄 Go to
Settings → About phone → Backup & reset → Local backup. - 📥 Create a new backup (select
System PreferencesAndWi-Fi). - 📂 Connect your phone to your PC and find the backup file in the folder
/MIUI/backup/AllBackup. - 🔍 Change file extension from
.bakon.zipand unzip the archive. - 📄 Find the file inside
wifi.conforwpa_supplicant.conf- it may contain passwords in clear text.
If the passwords in the backup are encrypted, you can try to decrypt them using utilities like Mi Backup Decryptor (you will need to know the PIN code from Mi Account). Please note that this method does not guarantee success — it all depends on the version MIUI and encryption settings.
6. Alternative methods (if nothing helps)
If all the above methods do not work, there are radical or workaround options:
- 🔄 Resetting the router. Click the button
Reseton the back of the router (hold for 10-15 seconds). After the reset, the network will be named by default (for example,TP-Link_1234), and the password is indicated on the device sticker. Minus: You will have to configure the router again. - 📡 Connection via WPS. If the router supports
WPS, press the corresponding button on it, and then connect the new gadget viaWi-Fi Settings → Advanced → WPSon Xiaomi. You won't need a password. - 📱 Using another device. If a laptop is connected to the network, iPhone or another Android- smartphone, extract the password from it (on Windows - through
Network and Sharing Center, on MacOS - VKeychain). - 📞 Contacting the provider. If your router was provided by your provider, call support and ask them to remind you of your password (you will need to provide your contract details).
⚠️ Attention: Starting in 2023, many providers (eg. Rostelecom, Beeline, MTS) By default, routers are configured with unique passwords that don't match the information on the sticker. In this case, resetting the router will restore factory settings, but re-authorization (username/password from your provider) may be required to access the internet.
| Method | Root required | A PC is required | Runs on MIUI 14 | Complexity |
|---|---|---|---|---|
| MIUI Settings | ❌ No | ❌ No | ❌ No | ⭐ It's very simple |
File wpa_supplicant.conf |
⚠️ Sometimes | ❌ No | ❌ No | ⭐⭐ Average |
| ADB | ❌ No | ✅ Yes | ⚠️ Partially | ⭐⭐⭐ Difficult |
| Root access | ✅ Yes | ❌ No | ✅ Yes | ⭐⭐⭐⭐ Very difficult |
| Backup | ❌ No | ✅ Yes | ⚠️ Partially | ⭐⭐ Average |
FAQ: Answers to frequently asked questions
❓ Is it possible to find out the Wi-Fi password on a Xiaomi device without rooting or using a PC?
Yes, but only on older versions MIUI (up to 12.5) through Settings → Wi-Fi → Share passwordThis method doesn't work on newer versions - you'll need ADB or root.
❓ Why in the file WifiConfigStore.xml is the password encrypted?
Starting from Android 10 And MIUI 12Xiaomi encrypts stored passwords to protect data. They can only be decrypted with root access or special utilities (for example, WiFi Password Decryptor), but success is not guaranteed.
❓ Will the router reset if I just reboot it?
No, rebooting (powering off/on) does not reset the settings. The reset only occurs when you hold down the button. Reset more than 10 seconds. However, after a reboot, some providers may temporarily block access until re-authorization (for example, via PPPoE).
❓ Does the ADB method work on Xiaomi 13/14?
On Xiaomi 13/14 With MIUI 14 access via ADB access to files with passwords is often blocked. If the command adb pull gives an error, try:
- Use
adb shell su(requires root). - Install custom recovery (TWRP) and extract the file manually.
❓ Is it possible to find out the password for someone else's Wi-Fi network that my Xiaomi is connected to?
Technically yes, but that's breaks the law (Article 272 of the Criminal Code of the Russian Federation - unauthorized access to computer information). Password extraction is only permitted for their own networks to which you have legal right of access.