You connected your Xiaomi Redmi to a Wi-Fi network, but you forgot your password β and now you need it for another device? The situation is familiar to many: the router is configured long ago, the password sticker is lost, and you need to manually enter it urgently. Fortunately, on smartphones running MIUI (even without superuser rights) there are several ways to extract the saved password. In this article, we will analyze all the current methods, from standard Android features to hidden capabilities of Xiaomi firmware.
It's important to understand that not all versions of MIUI allow you to view passwords directly, for example, in MIUI 12 and later, the manufacturer removed this option from the security interface. However, workarounds remain β and we tested them on Redmi Note 10/11/12, POCO X3/X4 and other popular devices. If your phone is rooted, the task is simplified significantly, but there are no root permissions.
1. Standard method through settings (MIUI 11 and older)
The simplest method works on firmware up to MIUI 12 inclusive. If you have a newer version, skip this section, it won't work.
- Open the Settings. β Wi-Fi.
- Click on the name of the current network (to which the phone is connected).
- In the window that opens, select Share Password (or Share in English).
- Confirm the action with a fingerprint, pattern lock or PIN-code.
After that, it will appear on the screen. QR-The code and the text password below, which can be copied or scanned by another device. 9A) Instead of a password, it can only be displayed. QR-code β in this case, use a scanner to recognize it.
β οΈ Attention: Starting with MIUI 12.5 and MIUI 13 share password option may not be available. It's not a mistake -- Xiaomi has purposefully deleted it for security reasons.
2. Viewing password through configuration file (without root)
Android Stores All Saved Wi-Fi Passwords in a System File wpa_supplicant.conf. Access is limited, but on some versions MIUI It can be read through a conductor with access rights or ADB. Here's how to do it:
First, install any file manager that supports root access (such as FX Explorer or Solid Explorer).
- Open the manager and turn on Root access (if any).
- Go to /data/misc/wifi/WifiConfigStore/
- Find the WifiConfigStore.xml file and open it with a text editor.
- Look for lines with <string name="ConfigKey"> tags - next to the password in encrypted form.
Unfortunately, in the latest versions of MIUI, this file is encrypted and cannot be read without additional tools, but on older firmware (before MIUI 10), passwords can be stored in plain form. If you see the psk="your password" string, that's the value you want.
How to decrypt WifiConfigStore.xml?
3. Use of ADB (for advanced users)
If you have a computer and have it installed ADB-You can extract the password through the command line, and this method works on most versions. MIUI, but requires pre-configuration:
First, turn on USB Debugging on your phone: Settings β About Phone β MIUI version (click 7 times to activate Developer Mode), then go back to Settings β Additional β For Developers and enable debugging.
Next, connect Redmi to your PC and do the following in the terminal:
adb pull /data/misc/wifi/WifiConfigStore.xml C:\wifi_password.txt
adb shell "su -c 'cat /data/misc/wifi/WifiConfigStore.xml'"If the team returns the Permission denied error, you donβt have superuser rights, in which case only rooting the phone will help (see section 5).
| Method | Root is required. | It's working on MIUI 14. | Difficulty |
|---|---|---|---|
| Settings β Share | No. | No. | β |
| Reading WifiConfigStore.xml | Partially. | No (encryption) | βββ |
| ADB-team | No (but you need rights) | Yes (with limitations) | ββββ |
| Hijacking applications | No. | Yeah (not always) | ββ |
| Rooting + Root Explorer | Yes. | Yes. | βββββ |
4. Wi-Fi password viewing applications
There are utilities on Google Play that promise to show saved passwords without root, and in practice, most of them either don't work on MIUI or require payment, and we tested some popular options:
- πΉ WiFi Password Viewer β shows networks, but hides passwords behind a paid subscription. MIUI 13+ doesn't work.
- πΉ WiFi Key Recovery β sometimes works on older versions of Android (7.0 and below). MIUI 12+ useless.
- πΉ Network Info II β It displays network technical data, but not passwords, and it's useful for diagnostics, but not for our purpose.
The only app that actually works on some Xiaomi models is WiFi Password (ROOT), but it requires superuser rights. Without root, these utilities will at best show a list of the networks you've connected to, but not the passwords themselves.
π‘
If you need a password urgently and none of the methods worked, try connecting to the router via a browser (usually at 192.168.1.1 or 192.168.0.1) and view it in the wireless network settings.
5. Obtaining root rights and viewing password
If you're willing to take drastic measures, rooting your phone will give you full access to system files. On Xiaomi Redmi, it's done by unlocking the bootloader and installing Magisk. It's a risky process (you can lose your warranty or brick your device), but it's 100% effective.
After receiving root:
- Install Root Explorer or FX File Manager.
- Go to /data/misc/wifi/.
- Open the file. wpa_supplicant.conf.
- Find the block with the name of your network β the string psk="password" contains the desired value.
Warning: Rooting voids Xiaomiβs warranty and can lead to update issues. On some models (e.g. Redmi Note 12 Pro+), unlocking the bootloader requires waiting 7-15 days after submitting an application to the Mi Unlock Tool.
Unlock the bootloader through Mi Unlock Tool|
Download the TWRP firmware for your model |
Install Magisk Manager|
Make a backup of data |
Charge your phone at least 70 times%-->
6. Alternative methods (if nothing has worked)
If all of the above methods fail, there are workarounds:
- π± Connect another device to this Wi-Fi via QR-code (if the phone generates it) MIUI 14 This works even without displaying a text password.
- π₯οΈ Check the router: often the password is on the back sticker or in the web interface (192.168.1.1).
- π Reset the router to factory settings (reset button for 10 seconds) β but then you will have to reconfigure the network.
- π§ Contact your ISP: If the router was issued by an Internet company, they may know the standard password.
On some Xiaomi models (e.g. Redmi A1+), the password can be seen in Settings β Google β Devices & Sharing β Save Networks. This method works if the phone is linked to a Google account and sync is enabled.
π‘
Since Android 10 (and MIUI 12+), Google has banned apps from reading Wi-Fi passwords without root, so most hacks have stopped working, leaving only system methods or rooting.
Frequent Mistakes and How to Avoid Them
When trying to extract a password, users often face typical problems:
- The WifiConfigStore.xml file doesn't open, so it's encrypted. On MIUI 13+, that's the standard situation.
- ADB doesnβt see the phone β check if USB debugging is enabled and if drivers are installed (download Mi PC Suite).
- The apps show a blank list of networks β they are not compatible with your version of MIUI.
- After rooting, Wi-Fi stopped working β file may have been corrupted wpa_supplicant.conf. Restore it from the backup.
If you use Redmi with dual firmware (Chinese/global), some system files may be in other folders, such as in Chinese versions, the path to passwords sometimes looks like /data/vendor/wifi/.