Forgot your Wi-Fi password? Xiaomi can restore it in 2 minutes
You connected to your home or work Wi-Fi network on the Xiaomi Redmi Note 12, POCO X5 or another model, but forgot your password β now you need to connect a new gadget? Donβt rush to reset your router or call your provider. MIUI (even in the latest versions 14/15) has hidden ways to view saved passwords without root rights and a computer.
In this article, 5 proven methods, including official (through settings), alternative (via the file system) and universal (for any Android), we took into account the features of Xiaomi firmware, where standard instructions often do not work due to customization of the interface. Importantly, on phones with MIUI 12 and later, passwords are encrypted, but they can still be extracted - read below.
Before you start: if you have guest access to the network (such as a cafe or hotel), these methods will not work β the password is not stored in the system. Also check if the phone is connected to the network via WPS (button on the router) β in which case the password may not be in the phone.
Method 1: Official method via MIUI settings (works on 80% of devices)
The easiest way is to use the built-in βShare Passwordβ feature that appeared in the MIUI 11 and runs on all modern smartphones Xiaomi, Redmi and POCO. It does not show the password directly, but it allows you to copy or generate it. QR-code.
Instructions:
- π± Open the Settings. β Wi-Fi.
- π Find the network you want in the list and tap it by its name (not by switch!).
- π In the window that opens, select Share (or Share in English firmware).
- π The system requests PIN-code, pattern lock or fingerprint β enter it.
- π It will. QR-code and password (may be hidden under the button).
β οΈ Note: On some firmware (for example, MIUI 12.5 Global) the password is displayed only after scanning QR-If you don't have a second device, use method 2 or 3.
Check if you are currently connected to the network.
Update MIUI to the latest version
Reboot the phone.
Try another method from the article-->
Method 2: Viewing the password through the file wpa_supplicant.conf (advanced)
All Wi-Fi passwords on Android (including Xiaomi) are stored in a system file. wpa_supplicant.conf. Access to it is limited, but it can be read without root rights using a file manager with superuser rights or ADB.
Step-by-step:
- Install Solid Explorer or FX File Explorer.
- Turn on Developer Mode (7 times tap the MIUI version in Settings β About Phone).
- Activate USB Debugging in Settings β Additional β For developers.
- Connect your phone to your PC and use the ADB command: adb pull /data/misc/wifi/WifiConfigStore.xml or find the file manually along the path /data/misc/wifi/ (root rights required).
- Open the file in the text editor and find the line preSharedKey="your password".
π Where to look: C MIUI 14 The path to the file may be different β try it. /data/vendor/wifi/ or /data/misc/apexdata/com.android.wifi/. If the file is not, then the passwords are stored in encrypted form (see method). 4).
What to do if the file is empty?
Method 3: Using apps to view passwords (without root)
If previous methods didn't work, try specialized applications. They don't require root rights, but their effectiveness depends on the MIUI version and the phone model.
| Annex | Works for MIUI. | Requires root. | Reference |
|---|---|---|---|
| WiFi Password Viewer | 11β14 | β No. | Google Play |
| WiFi Key Recovery | 9β12.5 | β No. | Google Play |
| WiFi Password (Root) | Anybody. | β Yes. | Google Play |
β οΈ Note: Applications without root may not show passwords to MIUI 13+ If you see a blank list after you've installed it, try it:
- π Reboot the phone.
- π₯ Update the application to the latest version.
- π οΈ Enable Installation from Unknown Sources in Security Settings.
MIUI 14/15
MIUI 12/12.5
MIUI 11 or older
I don't know.-->
Method 4: Retrieving passwords via ADB (for technical users)
If you have a computer and a USB cable, you can use Android Debug Bridge (ADB) to extract the password, which works even on MIUI 14, but requires USB debugging enabled.
Instructions:
- Download ADB Tools and unpack it into a folder.
- Connect Xiaomi to your PC and allow debugging (a request will appear on your phone).
- Open the command line in the folder with ADB and type: adb shell su -c "cat /data/misc/wifi/WifiConfigStore.xml | grep psk" If there is no root, try: adb pull /data/misc/wifi/WifiConfigStore.xml
- In the resulting file, find the line with SSID="Network Name" and PreSharedKey="Password".
π‘ Tip: If the team returns a Permission denied error, you don't have permission to read the file. In this case, only root rights or method 5 will help.
π‘
If ADB does not recognize the device, install Xiaomi USB Drivers from the official website or through the Mi Flash Tool.
Method 5: Resetting the router - the last option
If none of the methods worked (for example, on Xiaomi with MIUI 15 or custom firmware), you have to reset the router settings, which will delete all user settings, including the Wi-Fi password, but will allow you to set a new one.
How to reset your router:
- π Find the Reset button on the back of the router (usually deepened into the case).
- π Press it with a paper clip or toothpick and hold it for 10-15 seconds.
- π After restarting the router, connect to the network with a name TP-Link_XXXX, Keenetic-XXXX or similar (depending on model).
- π The standard password is indicated on the router sticker (e.g. admin or 8-digit combination).
β οΈ Attention: Router reset:
- π« Disconnect all devices from the network.
- π‘ Reset PPPoE settings (you will have to re-enter the login / password from the provider).
- π Remove guest networks and parental controls.
π‘
Resetting the router is the only universal way if the phone doesn't show the password, but use it only as a last resort, as it affects all connected devices.
Frequent problems and solutions
Not all methods work equally well on different Xiaomi models, and here are the typical errors and solutions:
| Problem. | Reason. | Decision |
|---|---|---|
| The "Share" button is inactive. | Phone's not connected to the network | Connect to Wi-Fi and try again |
| File. wpa_supplicant.conf hollow | MIUI 13+ encrypts passwords | Use ADB or root apps |
| ADB does not see the device | Drivers not installed | Install Mi PC Suite or Drivers Manually |
| The app shows the wrong password | Outdated version of the program | Update the app or try another one |
π Useful Life Hack: If you often forget passwords, create in Google Keep or Notes MIUI Hidden entry with logins / passwords and protect it PIN-So the data will be synchronized and accessible from any device.