You connected your Xiaomi (or Redmi/POCO) to Wi-Fi, but you forgot your password β and now you need to connect another device? The situation is familiar to many. Fortunately, on Android, there are several ways to extract the saved password from the network to which the phone is already connected, the main thing is to know where to look and what tools to use.
In this article, weβll look at 5 proven methods, from simple (via MIUI settings) to advanced (using ADB or superuser rights). Note that some methods require root or computer rights, but there are universal solutions without additional conditions. Weβll also explain why the standard methods may not work on new versions of Android 12+ and MIUI 14+ β and what to do about it.
Before you start, make sure your Xiaomi is actually connected to the target network. If the connection is active, you can start.
1. Standard method via MIUI settings (no root)
Xiaomi smartphones with MIUI 12 and older (including HyperOS) have a built-in Wi-Fi password viewing feature β but itβs hidden from the user. To activate it, you need to perform a simple manipulation of the system menu.
Instructions:
- π± Open the Settings. β Wi-Fi and tap on the current network name.
- π In the window that appears, click on the Share icon (or Share iconΒ»).
- π The system will request confirmation by PIN-code, print or pattern lock.
- π After authentication will open QR-And the code is the network data, and underneath it is the Password line, which is your password.
β οΈ Note: Some firmware (especially custom ones) may not work, and if you click on Share, you can only see it. QR-code without a text password, go to the next method.
2. View password through configuration file (file manager required)
Android Stores All Saved Wi-Fi Passwords in a System File wpa_supplicant.conf. It can be accessed through any root file manager (e.g., Root Explorer or Root Explorer). FX File Manager or even without them β if you use workarounds.
If you donβt have root rights, try this method:
- Install a file manager FX File Manager (or similar with support) FTP-server).
- Turn it on. FTP-server and connect to the phone from the computer over the local network.
- Go to /data/misc/wifi/WifiConfigStore (on new versions of Android may be different).
- Find the file. wpa_supplicant.conf Open it with a text editor.
The file will have lines of the form:
network={
ssid= "Name of your network"
psk="your password"
key_mgmt=WPA-PSK
}β οΈ Attention: On Android 10+ and MIUI 12+ access to this file is often blocked even for root users. /data/misc/wifi/ empty or absent, try the following method.
Make sure your phone is connected to the right Wi-Fi | network
Use root-enabled file manager (if you have permission)|
Try alternative paths: /data/misc/wifi/ or /data/vendor/wifi/|
Set up FTP-Access if there are no root rights-->
3. Use ADB (no root, but need a computer)
ADB (Android Debug Bridge) is a tool for debugging Android devices through a computer, which can extract a Wi-Fi password even if you don't have root permissions. The method works on most versions of MIUI, but requires pre-setting.
Step-by-step:
- Download and install ADB Tools on your computer.
- On your phone, activate Developer Mode (7 times tap Settings β About Phone β MIUI version) and enable Debugging via USB.
- Connect Xiaomi to your PC via cable and confirm your trust in your computer.
- Open the command prompt (or Terminal on Mac/Linux) and type:
adb shell
su -c "cat /data/misc/wifi/WifiConfigStore/SoftAp_WPA_PSK" || echo "Root or other path required"
su -c "cat /data/misc/wifi/wpa_supplicant.conf"If the teams donβt work, try an alternative route:
adb pull /data/misc/wifi/WifiConfigStoreFiles/WifiConfigStore.xmlIn the resulting WifiConfigStore.xml file, find the following line:
<string name="PreSharedKey">"your password"</string>π‘ Useful advice: If ADB If you have permission denied, you have your firmware blocked, and only root or backup will help (see next section).
What if the ADB canβt see the device?
4. Removing password from MIUI backup
MIUI allows you to back up system data, including your Wi-Fi settings. If youβve ever backed up Settings β Additional β Backup, you can extract your password from it.
How it works:
- π² Create a new backup (select only βWi-Fi settingsΒ»).
- πΎ The backup file will be saved to /MIUI/backup/AllBackup/ (usually with.mbk extension).
- π₯οΈ Copy it to your computer and rename it to.zip, then unpack it.
- π In the folder, find the file. WifiConfigStore.xml β It will have a password line (as in the method with the ADB).
β οΈ Attention: On new versions MIUI 14+ Backups are encrypted, and you'll need a special tool like MiBackup Extractor to unpack them).
| MIUI version | Does the standard backup support Wi-Fi? | Do I need encryption? |
|---|---|---|
| MIUI 11 and below | Yes. | No. |
| MIUI 12 β 13 | Yes. | Sometimes (depending on region) |
| MIUI 14 / HyperOS | Yes. | Yes (MiBackup Extractor required) |
5. Password Viewing Applications (root required)
If your Xiaomi has root rights, the task is simplified: Google Play has dozens of apps that show saved Wi-Fi passwords.
- π WiFi Password Viewer β Simple interface, shows all networks and passwords.
- π‘ WiFi Key Recovery β Works on custom firmware.
- π οΈ Root Browser β file manager with access to system folders.
How to use:
- Install one of the applications (e.g. WiFi Password Viewer).
- Provide root access when requested.
- In the list of networks, find the desired one and copy the password.
β οΈ Warning: Be careful about root rights β they can compromise system security. Do not install unknown applications or modify system files without a backup.
π‘
If you donβt have root, but you have an old smartphone with Android 8 and below, you can temporarily root through Magisk and extract the password and then roll back the changes.
What if none of the methods worked?
If all of the above methods have not worked, the reasons may be as follows:
- π Your firmware. MIUI heavily modified (e.g. custom PixelExperience or LineageOS).
- π± The device runs on Android 13+ safety-enhanced.
- π« The manufacturer (or device administrator) has blocked access to the system files.
In such cases, two options remain:
- Reset the router (press the Reset button for 10 seconds) and set up a new network.
- Contact the network administrator (if it is a work or training Wi-Fi).
πΉ Key Conclusion: Xiaomi with MIUI 12β14 easiest to use QR-code from the Wi-Fi settings or ADB. For older versions, the method with wpa_supplicant.conf. If nothing helps, then you just have to reset the router.