Why do you need a WiFi password from your phone?
Have you ever faced a situation where you need to connect a new device to your home Wi-Fi, but the password has long been forgotten and the sticker on the router has been erased? Or a friend asks to share the Internet, and you do not remember the combination of characters that were introduced two years ago? With Xiaomi phones (including Redmi and POCO), this problem is solved in a couple of clicks - if you know where to look.
Unlike the iPhone, where network passwords are stored encrypted and not available without jailbreaking, MIUI smartphones (even those with HyperOS shells) allow you to extract stored data in several ways. The main thing is not to try to hack the router or reset its settings: these are unnecessary risks.
In this article you will find:
- ๐ Official methods through Xiaomi settings (without root rights).
- ๐ Methods with access to the file system (for experienced users).
- ๐ ๏ธ Bypasses if the phone is not connected to the network right now.
- โ ๏ธ Safety warnings and possible errors.
All instructions are valid for devices on MIUI 12-14 and Android 10-14, including Xiaomi 13/14, Redmi Note 12/11, POCO X5/F5 and others. If your smartphone is running on an older version, some menu items may differ, but the logic remains the same.
Method 1: Viewing your password through Wi-Fi settings (the easiest one)
If your Xiaomi is currently connected to the target network, this method will work 90% of the time. It doesn't require superuser rights or installing additional apps. Here's how to do it:
- Open the Settings app (the gear icon on the desktop).
- Go to the Wi-Fi section (or Connections โ Wi-Fi on some firmware).
- Find your network in the list and tap it by its name (not by switch!).
- In the window that opens, select Share or Show Password (the name may differ).
- Confirm the action with a fingerprint, PIN-code-key.
After that, it will appear on the screen. QR-The code for connecting other devices quickly, and the text password underneath, can be copied or written. MIUI Password can be hidden behind stars - to display tap the icon of the eye (๐๏ธ).
Check if you are connected to a Wi-Fi network
Update your firmware to the latest version of MIUI
Try an alternative method (see below)
Reboot the phone.-->
โ ๏ธ Note: If your Xiaomi runs on Android 10 and below, this method may not work due to security limitations.
Advantage of the method:
- โก Fast - takes less than 30 seconds.
- ๐ Secure โ does not require access to system files.
- ๐ฑ It works on all Xiaomi, Redmi and POCO.
Method 2: View a list of saved networks (if not currently connected)
What if you want to find out the password for a network that your phone isn't connected to right now, but it's connected to before? MIUI has a hidden function to export the list of networks, which is rarely used, but it does save you in these situations.
Instructions:
- Open the Settings. โ Wi-Fi.
- Stick to three points (โฎ) in the upper right corner and select Additional (or Advanced Settings).
- Find Export Networks or Backup Wi-Fi Networks.
- Confirm the export with a password/fingerprint.
- The file with the.conf extension will be saved in the Download folder. Open it with any text editor (for example, QuickEdit or Google Docs).
In the file you will see blocks of the form:
network={
ssid= "Name of your network"
psk="your password"
key_mgmt=WPA-PSK
}Where psk="..." is the password you want. The method is the problem: the file contains all the networks you saved, so you have to manually search for the one you want.
๐ก
If the passwords are encrypted in the file (instead of the text, random characters), then your device has backup encryption enabled. Try disabling it in the Xiaomi account settings or using Method 3.
| Method | Do you need a network connection? | Need root rights? | Difficulty |
|---|---|---|---|
| Through "Share." | โ Yes. | โ No. | โญ |
| Exports of networks | โ No. | โ No. | โญโญ |
| File system | โ No. | โ ๏ธ Partially. | โญโญโญ |
| Third-party annexes | โ No. | โ No, but permissions are required) | โญโญ |
Method 3: Removing passwords from system files (for advanced ones)
This is a good method if the first two didn't work and you don't have root permissions, and we're going to use a built-in MIUI Explorer with access to hidden folders. Importantly, don't delete or edit other files in those directories, because that could disrupt the system!
Step-by-step:
- Open the standard Files app (or install Solid Explorer from Google Play).
- Enable the display of hidden files: in Solid Explorer, this is done through the menu (โฎ) โ Settings โ Hidden files.
- Go to /data/misc/wifi/WifiConfigStore.xml or alternative path (on some firmware): /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml
- Open the file with a text editor and find the line: <string name="ConfigKey">your network</string> <string name="PreSharedKey">your password</string>
On Android 12 devices+ and MIUI 13+ This file can be encrypted, and you'll need to either root or use it. ADB-commands (see Method 5).
โ ๏ธ Attention: Getting into the folder /data/ without root rights is possible only on some firmware Xiaomi (for example, on the Internet). POCO F1 If the conductor gives an error "No access", proceed to the Method 4.
What to do if the WifiConfigStore.xml file is empty?
Method 4: Apps for viewing Wi-Fi passwords
If the system methods didn't work, third-party tools will come to the rescue, and they don't require root rights, but they need special permissions, and we tested a few applications and selected the most reliable ones.
- ๐ฑ WiFi Password Viewer (from SimoneDev) โ shows passwords of saved networks, runs on Android 10โ13.
- ๐ WiFi Key Recovery โ Supports Xiaomi and other brands, but may not see networks added through the QR-code.
- ๐ก๏ธ Network Info II โ In addition to passwords, it also provides detailed information about the network (IP, MAC, signal strength).
How to use (for example, WiFi Password Viewer):
- Download the app from Google Play.
- When you first start, give access to Wi-Fi connections and storage.
- In the main window, select Saved Networks tab.
- Slip the name of the network you want - the password will appear in the Password field.
Warnings:
- โ Do not install applications from unknown sources (APK-Files โ they may contain viruses.
- โ ๏ธ Some utilities require disconnection MIUI Optimization in the developer settings (this can disrupt the stability of the system).
- ๐ After using the application, delete it so as not to leave loopholes for data leakage.
๐ก
Third-party apps are the most versatile way, but they may not work on the latest versions of MIUI due to Google and Xiaomiโs tightening security policies.
Method 5: Using ADB (for tech-savvy)
If youโre familiar with Android Debug Bridge (ADB), this method will allow you to extract a password even without root permissions. Youโll need a computer with Xiaomi drivers installed and USB debugging enabled on your phone.
Instructions:
- Turn on Developer Mode on your phone: go to Settings โ About Phone and tap the MIUI version 7 times.
- Return to Settings โ Additional โ For developers and activate Debugging over USB.
- Connect your phone to your PC and confirm your trust in your computer.
- Open the command line (Windows) or terminal (macOS/Linux) and type: adb shell su -c "cat /data/misc/wifi/WifiConfigStore.xml | grep psk" If the command does not work, try: adb shell cmd wifi list-networks
The result will look like this:
id ssid BSSID flags
0 "MyWiFi" any [WPA2-PSK-CCMP+TKIP]
1 "Office" any [WPA-PSK-CCMP+TKIP]To see a password for a network with id=0, enter:
adb shell
cmd wifi get-network-info 0โ ๏ธ Attention: MIUI 14+ Android 13+ team ADB If you see a Permission denied error, your firmware is blocking access.
Method 6: Getting a root-right password (extreme option)
If none of the previous methods worked and the password is urgent, you can exercise the rights of the superuser. This is risky (may lead to loss of warranty or "bricking" the device), but it gives 100% result.
What you need:
- ๐ฑ Xiaomi phone with unlocked bootloader and installed Magisk or SuperSU.
- ๐ป PC ADB (Optionally, if you do not want to use the terminal on your phone).
- ๐ง Root Explorer app or app or FX File Explorer.
Action:
- Open Root Explorer and go to /data/misc/wifi/.
- Find the WifiConfigStore.xml file and open it.
- Or run in the terminal: su cat /data/misc/wifi/WifiConfigStore.xml
- Copy the value of the PreSharedKey parameter for the desired network.
Alternatively, the Terminal Emulator is:
su
ls /data/misc/wifi/
cat /data/misc/wifi/WifiConfigStore.xml | grep -A 5 "your network"โ ๏ธ Note: Using root rights disables some functions MIUI, For example, Find Device and Game Turbo, which can cause problems with banking applications (because of SafetyNet!
Frequent Mistakes and How to Avoid Them
When trying to find out the password from Wi-Fi on Xiaomi, users face typical problems, and here are the most common ways to solve them:
| Mistake. | Reason. | Decision |
|---|---|---|
| No share button. | Outdated version of MIUI or corporate policy restrictions | Update the firmware or use the 2/3 method |
| No access to the WifiConfigStore.xml file | Android 12+ blocks access without root | Try ADB or third-party apps |
| The app doesn't show passwords | MIUI restrictions for third-party utilities | Use proven programs (see Method 4) |
| ADB issues Permission Denied | Firmware blocks commands | Try root or go to method 3. |
A few more life hacks:
- ๐ If the phone is not connected to the network, but you remember its name, try resetting the network settings (Settings). โ System system โ Reset โ Reset network settings. After that, when you connect to the network, you will be asked to enter a password, at which point you can click "Show password".
- ๐ก If you have a second Xiaomi phone that is connected to this network, use it to extract your password (by any of the methods described above).
- ๐ง On some routers (for example, Xiaomi Mi Router) the password can be viewed in the web interface at the address 192.168.31.1 (login/password usually admin/admin).