Have you forgotten your home Wi-Fi password and the router's sticker is gone? Or you need to plug in a new gadget but you can't remember the combination? On Xiaomi smartphones (including Redmi, POCO and Black Shark) there are several ways to extract the saved password from the network - both with and without superuser rights (root), in this article we will discuss all the current methods for MIUI 12-15, including hidden system functions and workarounds.
It's important to understand that the manufacturer deliberately restricts access to passwords for security reasons, so Xiaomi's standard settings don't allow you to just open a list of networks and copy the key. QR-code-in-use ADB-We tested each method on the Redmi Note 12 Pro.+, POCO X5 Pro and Xiaomi 13 Ultra β all of them are working in 2026.
If youβre looking for a universal Dummies solution, start with the first two methods β they donβt require technical skills. For advanced users, weβll detail root access and MIUI backups, which allow you to extract passwords even after you reset your phone.
Method 1: Viewing the password through QR-code (without root)
The simplest and most formal method is to generate QR-The current network code, and then decrypt it with a third-party app. This method works on all Xiaomi smartphones with a single-party app. MIUI 12 and newer, does not require superuser rights and takes less than a minute.
How to do this:
- π± Open the Settings. β Wi-Fi and tap on the name of the connected network.
- π At the bottom of the screen, select Share Password (or QR-code MIUI).
- π The system will request confirmation by fingerprint, PIN-code-key.
- π· Open up. QR-code β take a photo or copy it to another phone.
Now we need to decrypt the code.
- Install any QR scanning app (e.g. QR & Barcode Scanner from Gamma Play).
- Scan the code and the result will appear as follows: WIFI:S:MyWiFi;T:WPA;P:your_password;; where P:your_password β That's your password.
β οΈ Attention: Some versions MIUI They may hide the password in QR-In this case, use the asterisk code (P:). β2 or β3.
π‘
If you have two Xiaomi phones, you can share your password directly through the Mi Share (formerly Xiaomi Quick Share) function. To do this, click Share Password β Mi Share and select the second phone from the list. The password will be transmitted automatically without display.
Method 2: Use a Wi-Fi configuration file (file manager required)
In the Android system (and) MIUI in particular) passwords from networks are stored in an encrypted file wpa_supplicant.conf. Without root rights, it is impossible to read it directly, but you can bypass the restriction with a backup or special applications.
Instructions for Xiaomi without root:
- π² Install a file manager with access to system folders, for example FX File Explorer or Solid Explorer (enable the option to show hidden files).
- π Cross the path: /data/misc/wifi/WifiConfigStore/ There's gotta be a file here. WifiConfigStore.xml (firmware β wpa_supplicant.conf).
- π Copy the file to SD-map or cloud, then open it with any text editor (e.g. QuickEdit).
- π Find a line. <string name="PreSharedKey">password</string> β That's the key to the network.
If the file is missing or unavailable, try an alternative path:
/data/misc/wifi/WifiConfigStore/SoftApConfigStore.xmlβ οΈ Attention: Starting with MIUI 14, Xiaomi tightened the protection of system files. If your phone upgraded to this version, the file can be encrypted. ADB (method β4).
What if the file is empty or encrypted?
Method 3: Password Viewing Apps (without root)
There are dozens of apps on Google Play that promise to show saved Wi-Fi passwords, but most of them either don't work on Xiaomi or require root, and we tested the top-end utilities and picked two that actually help:
| Annex | Reference | Need root? | Works for MIUI? | Features |
|---|---|---|---|---|
| WiFi Password Viewer | Download | β No. | β Yes (partially) | Shows passwords only for manually connected networks (does not work with automatically saved networks). |
| WiFi Key Recovery | Download | β No. | β οΈ Limited. | Uses MIUI backups. Requires access to /data/misc/wifi/ folder. |
| Root Browser | Download | β Yes. | β Yes. | Full access to wpa_supplicant.conf, but it needs root. |
How to use WiFi Password Viewer:
- Install the application and open it.
- Provide all the permissions requested (storage and Wi-Fi access).
- In the list of networks, find the desired one and tap it - the password will appear in the form *.
- Click on the stars and a pop-up with a real password will appear.
Important: On phones with MIUI 14+ The application may not show passwords for networks connected via WPS Or Mi Share. Use the method. β4 (ADB).
QR-code|File manager|Third-party annexes|ADB-team|Root access|I haven't tried it yet.-->
Method 4: Retrieving passwords through ADB (for advanced)
ADB (Android Debug Bridge) is an Android debugging tool that lets you execute commands directly on the system, and it can extract a Wi-Fi password even without root, but it requires a computer and a little patience.
What you'll need:
- π» Computer with Windows, macOS or Linux.
- π USB-cable (preferably original from Xiaomi).
- π± Included debugging by USB phone-on.
- π Utility. ADB (You can download from the official website).
Step-by-step:
- Turn on developer mode on Xiaomi: Settings β About phone β MIUI version (shap 7 times)
- Activate debugging via USB: Settings β Additional β For developers β Debugging via USB
- Connect your phone to your computer and confirm your trust in the device.
- Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with ADB.
- Execute commands in order: adb shell su cat /data/misc/wifi/WifiConfigStore.xml | grep -E 'SSID|PreSharedKey' If a Permission Denied error appears, use the alternative command: adb pull /data/misc/wifi/WifiConfigStore.xml C:/wifi_password.txt (The file will be saved to disk C:)
As a result, you will get a list of networks with passwords in the format:
<string name="SSID">MyWiFi</string>
<string name="PreSharedKey">12345678</string>β οΈ Note: Some Xiaomi firmware may not have the su command even when debugging is enabled, requiring unlocking the bootloader and installing Magisk to get root.
Download Platform Tools from Android Studio |Enable developer mode on Xiaomi|Activate debugging via USB|Connect phone with original cable |Contact adb device-->
Method 5: Viewing Passwords with Root Access
If your Xiaomi has root installed (for example, through Magisk), you can read the password file directly or use specialized applications, which gives 100% results, but requires unlocking the bootloader and potentially deprives you of warranty.
Instructions for Root Phones:
- Install any root conductor (e.g. Root Explorer or Mixplorer with Magisk module).
- Cross the path: /data/misc/wifi/ and open the file. wpa_supplicant.conf.
- Find the block with your network name (ssid=..) β below will be the line psk="..." with a password.
Alternatively, use the WiFi Password Root app:
- π± Download the utility from Google Play.
- π Provide root access when requested.
- π In the list of networks tap on the desired - the password will be displayed in plain form.
Advantages of root method:
- β It works on all versions. MIUI Android.
- β Shows passwords for all saved networks, including hidden ones.
- β Allows you to edit or delete networks directly.
Risks:
- β Knox reset (if used) and loss of warranty.
- β Possible problems with MIUI OTA-update.
- β Vulnerability to malware when root is incorrectly configured.
π‘
Root access is the most reliable way, but it's only for power users. If you're a beginner, try rootless methods first (QR-code ADB).
Method 6: Recover password from MIUI backup
Xiaomi allows you to backup your system through the built-in Backup app, and these backups store Wi-Fi passwords, but it's not easy to extract them. Here's how to do this:
Step 1: Create a backup copy
- π± Open the Settings. β Memory. β Backup.
- π Select Local Backup and select Wi-Fi Settings.
- πΎ Click Create a backup and wait until it is completed.
Step 2: Remove the password from the backup
The backup file has the.mbk extension and is stored in the /MIUI/backup/AllBackup/ folder to read it:
- Copy the file to the computer.
- Rename the extension from.mbk to.zip and unpack the archive.
- Inside, find the wifi/ folder β there will be a WifiConfigStore.xml file with passwords.
If the file is encrypted, use the MiBackup Extractor utility (available on GitHub) that automatically decrypts the backup and extracts the passwords.
β οΈ Attention: Backup copies MIUI If you reset your phone to factory settings, you can only restore your backup passwords once you log in to the same account.
Frequent problems and solutions
Not all methods work equally well on different Xiaomi models, and here are the typical errors and ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| QR-code doesn't contain a password | MIUI hides password in new versions | Use ADB or root |
| File. wpa_supplicant.conf absent | Changes in the structure of MIUI 14+ | Check the path /data/misc/wifi/WifiConfigStore/ |
| ADB issues Permission Denied | Lack of rights even with debugging | Get root or use Magisk |
| Apps don't show passwords | MIUI restrictions for third-party utilities | Try WiFi Password Viewer with Developer Mode enabled |
If none of the methods worked, check:
- π Update. MIUI Up to the latest version β sometimes bugs are fixed in new builds.
- π‘ Connect to the network again (forget it and enter the password manually) β this can update the configuration file.
- π§ Reset network settings: Settings β System system β Reset β Resetting network settings.