Introduction
Forgot your home Wi-Fi password and your router doesn't have a code sticker? Or you need to plug in a new gadget but you're too lazy to look for a login? There are several ways Xiaomi smartphones (including Redmi, POCO and Mi) can extract your password from the network -- and most of them don't require root rights or complex manipulations. In this article, we'll look at all the current methods for MIUI 14/15 and Android 13/14, including hidden system functions and workarounds.
Importantly, not all of these things work on locked devices (with a screen password) or after you reset, and if you're not a network administrator, password extraction can violate Wi-Fi rules -- check this out beforehand. Now let's get to the practice.
Method 1: via MIUI settings (official method)
The easiest way is to use the built-in password sharing feature in MIUI. It works on all modern Xiaomi smartphones (starting with MIUI 12) and does not require additional applications.
- Open "Settingsยป โ Wi-Fi.
- Click on your network name (connected or saved).
- Slip on the "Share" icon (or ยซQR-code on some firmware).
- Enter. PIN-Lock screen code/password (if requested).
- The password will be displayed under QR-textually.
โ ๏ธ Note: On some models (e.g, POCO F5 Redmi Note 12: This method may not work if the network is connected via a WPS Or Easy Connect. In this case, the password is not stored in the system in a readable form.
Connecting to the right network actively|Device not in guest mode|Version. MIUI less than 12|Screen password not reset-->
Method 2: via Wi-Fi configuration file (for advanced)
If the first method did not work, you can extract the password from the system file. wpa_supplicant.conf, where Android stores all the stored networks, you'll need a root Explorer (e.g., MiXplorer) or ADB (rootless).
Instructions via ADB (without root):
- Connect your smartphone to your PC and enable USB Debugging in Settings โ About Phone โ MIUI version (tap 7 times, then go back to Additional โ For Developers).
- Open the command line on your PC and type: adb shell su -c "cat /data/misc/wifi/WifiConfigStore.xml"
- Find the line with your network in the output - the password will be in the tag <string name="PreSharedKey">....
โ ๏ธ Attention: MIUI 14+ The path to the file may be different: try it. /data/misc/wifi/WifiConfigStoreSoftAp.xml If the command returns Permission denied, you will need root.
What to do if the file is encrypted?
Method 3: Backup of settings (without root)
Another legal way is to back up your Wi-Fi settings and extract the password from it, which works on all versions of MIUI, but requires a computer.
Step-by-step:
- Connect your smartphone to your PC and enable USB Debugging (see Method 2).
- Perform in ADB Team: adb backup -f wifi_backup.ab -shared On the phone will be a request to create a backup copy โ confirm and set the password (remember it!).
- Download the Android-backup-extractor archive and unpack wifi_backup.ab team: java -jar abe.jar unpack wifi_backup.ab wifi.tar [your password]
- In the wifi folder, find the file wpa_supplicant.conf โ It'll have all the networks and passwords.
This method is the only one that is guaranteed to work on all versions of MIUI without root, but requires command line knowledge.
Through MIUI | Through ADB| Backup |Root-conductor |I don't know-->
Method 4: Applications for viewing passwords
If previous methods were difficult, you can use third-party applications, but most of them require root rights, and free versions often contain ads or restrictions.
- ๐น WiFi Password Viewer โ Shows passwords for manually connected networks (not working with the Internet) WPS).
- ๐น MiXplorer (with root module) - allows you to open /data/misc/wifi and view configuration files.
- ๐น Root Browser is an analogue of MiXplorer, but with a less user-friendly interface.
โ ๏ธ Note: Applications without root (such as WiFi Key Recovery) often show outdated data or do not work on the Internet. MIUI 14+. Before installing, check the reviews for the last month!
๐ก
If you have a second Xiaomi smartphone connected to the same network, try sharing your password through the same network. QR-Code (Method 1) is faster than installing third-party applications.
Method 5: Reset the router (extreme case)
If none of the methods worked and the router is physically accessible, you can reset it to factory settings, which will delete all user settings, including the Wi-Fi password, but allow you to set a new one.
How to reset your router:
- Find the Reset button on the back of the router (usually recessed in the case).
- Press and hold it for 10-15 seconds (until the lights blink).
- Connect to the network with the factory name (indicated on the router sticker).
- Open in the browser 192.168.0.1 or 192.168.1.1 and set up a new network.
| Mark the router | IP-gateway | Default login/password |
|---|---|---|
| Xiaomi Mi Router | 192.168.31.1 | No/password from the sticker |
| TP-Link | 192.168.0.1 | admin/admin |
| ASUS | 192.168.1.1 | admin/admin |
| Keenetic | 192.168.1.1 | No/password from the sticker |
โ ๏ธ Note: Resetting the router will disconnect all users from the network and remove personal settings (for example, DMZ, Use this method only if other options are not available.
๐ก
Resetting a router is a nuclear option, and before using it, try contacting the network administrator or checking the sticker on the router (sometimes the password is encrypted there, for example, WPA2: 1234-5678-9ABC).
Frequent problems and solutions
Even with the detailed instructions, users face difficulties.
- ๐ซ ยซNo Share button in Wi-Fi settings Reason: MIUI This option is hidden if the network is connected through WPS Or Enterprise. Solution: Use it. ADB backup.
- ๐ ยซADB Receives a โdevice unauthorizedโ error Solution: Disconnect and reconnect USB-cable, then confirm debugging access on your smartphone screen. If the window doesn't appear, check if debugging is enabled in Settings. โ For developers.
- ๐ฑ ยซThe app asks for root, but itโs notโ Alternative: Use MiXplorer with SQLite Editor module to read a Wi-Fi database (path: /data/data/com.android.providers.settings/databases/settings.db).
If your problem is not described above, check:
- ๐ Version MIUI (In Settings โ On the phone. MIUI 15 may not work for the purpose of MIUI 12.
- ๐ Availability of storage encryption (included in Settings) โ Security โ Encryption. In this case, without root, you can't extract the password.