Why you canβt just copy your password from Android settings
Xiaomi smartphones (including the Redmi, POCO and Mi lines) by default hide stored Wi-Fi passwords for security purposes. Unlike Windows or macOS, where the password can be seen in a single click, Android does not provide direct access to this information through the GUI, which is due to Google's policy of protecting user data: even the owner of the device can not view the password without additional manipulation.
However, there are workarounds, from simple (for root users) to complex (through ADB or system files). It is important to understand that some methods require technical skills and can lead to resetting or loss of warranty if performed incorrectly. In this article, we will discuss all the current methods, from the most secure to extreme, taking into account MIUI versions (12 to 14) and smartphone models.
Before proceeding, make sure that:
- πΉ You have physical access to your smartphone (the methods donβt work remotely).
- πΉ The phone is connected to the target Wi-Fi network (or was previously connected).
- πΉ You are ready for possible data loss when using methods with bootloader unlocking.
Method 1: Viewing password through router settings (the most secure)
If you have access to a routerβs web interface, this is the most reliable and legal way, it requires no changes to your smartphone and works on any device, including Xiaomi, Samsung or iPhone.
Instructions:
- Connect your smartphone to a Wi-Fi network, the password from which you need to know.
- Find it. IP-router address: usually 192.168.0.1 or 192.168.1.1 (indicated on the device sticker).
- Open your browser and enter the address in the address bar. Sign in (username and password specified on the router).
- Go to Wi-Fi (or Wireless Network) β Security settings.
- The password will be displayed in the Network Key or Password field.
| Mark the router | The path to the password in the web interface | Default login/password |
|---|---|---|
| Xiaomi Mi Router | Settings β Wi-Fi β Wi-Fi password | admin/password from the sticker |
| TP-Link | Wireless β Wireless Security β Password | admin/admin |
| ASUS | Wireless Networks β Authentication settings | admin/admin |
| Keenetic | Wi-Fi β Access point β Key to the network | It's on the sticker. |
β οΈ Note: If you havenβt changed your routerβs login/password, you can find it on the sticker on the back of the device. If the data is lost, youβll have to reset the router with the Reset button (hold 10 seconds), but this will disconnect all users from the network.
Method 2: Use of the file wpa_supplicant.conf (rootless)
On Xiaomi smartphones (as well as on other Android devices), Wi-Fi passwords are stored in a system file. wpa_supplicant.conf. Access is possible without root rights, but requires a connection to the PC and use. ADB (Android Debug Bridge. The method works MIUI 12β14, It may not work on new versions due to increased protection.
Step-by-step:
Install ADB PC (download from [the official Android site](https://developer.android.com/studio/releases/platform-tools))|
Enable USB debugging on Xiaomi (Settings β About Phone β MIUI version β 7 times tap on version)| Connect your phone to your PC and confirm trust in your computer |
Open the command line (Windows) or terminal (macOS/Linux) file ADB-->
adb shell
su -c "cat /data/misc/wifi/WifiConfigStore.xml | grep 'SSID' -A 10"If the command doesnβt work, try an alternative path (for older versions of MIUI):
adb pull /data/misc/wifi/wpa_supplicant.confIn the resulting file, find the block with the name of your network (ssid).="NAZVANIE_SETI") β psk="..." will have a password.
β οΈ Attention: Starting with MIUI 13, Xiaomi encrypts content wpa_supplicant.conf. If you see encrypted characters instead of a password, this method wonβt work β go to the root-access method.
π‘
If ADB issues a βpermission deniedβ error, try running adb root first (only works on unlocked devices).
Method 3: Viewing the root password (for power users)
If your Xiaomi has a bootloader unlocked and Magisk (or another root manager installed), you can use a root-enabled file manager, such as Root Explorer or FX File Explorer.
Instructions:
- π Open the file manager and go on the way. /data/misc/wifi/.
- π Find the file. WifiConfigStore.xml (or wpa_supplicant.conf old-form).
- π Open the file with a text editor and find a line with psk="password".
- π Copy the password (it can be encrypted β use online decoders) Base64, if necessary).
Alternatively, you can use the WiFi Password Viewer (requires root), which automatically retrieves all saved passwords.
| Xiaomi model | Support for unlocking bootloader | Risk of loss of guarantee |
|---|---|---|
| Redmi Note 10/11/12 | Yes (via Mi Unlock Tool) | High-pitched |
| POCO X3/X4/X5 | Yes, 7-day timeout. | Medium. |
| Mi 11/12/13 | Yes (Mie account required) | High-pitched |
| Xiaomi 13T/14 | Restricted (new rules 2023) | Very tall. |
β οΈ Attention: Unlocking bootloader on Xiaomi resets all data on the device!In addition, the company can block the ability to unlock if the device is tied to the Mi Account with the Find Device feature enabled.
What happens if you break the bootloader?
Method 4: Retrieving passwords through backup (for MIUI 12 and older)
Xiaomi allows you to backup your settings, including Wi-Fi data. This method does not require root, but only works if you have previously done backup through Settings β Additional β Backup.
How to extract the password:
- Create a new backup (select only the Wi-Fi Settings option).
- Connect your phone to your PC and copy the backup file from the /MIUI/backup/AllBackup/ folder.
- Rename the file to.tar and unpack it (e.g., 7-Zip).
- In the folder apps/com.android.providers.settings/, find settings.db.
- Open it through SQLite Browser and complete the request: SELECT * FROM wifi WHERE ssid='NAZVANIE_VASHIEI_SETI'; In the field pre_shared_key will have a password.
If you donβt have any experience with databases, use the MiBackup Extractor utility (available on GitHub), which automates the process.
π‘
Backup MIUI is encrypted by binding to your Xiaomi account. If you reset your phone to factory settings, it will be impossible to restore your backup password without logging in to the same account.
Method 5: Reset the router (extreme case)
If none of these methods worked, and you have physical access to the router, then the radical solution is to reset the router to the 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).
- π Hold it for 10-15 seconds (until the lights flash).
- π After the reboot, the router will create a network with a factory name (indicated on the sticker).
- π Connect to it and set a new password through the web interface (192.168.0.1).
β οΈ Warning: Resetting your router will disconnect all devices (including smart appliances, cameras, and IoT gadgets) from the network.If you have Xiaomi Home set up or other ecosystems, they will have to be reconnected.
Frequent Mistakes and How to Avoid Them
When trying to extract a Wi-Fi password, users often face typical problems, and here are the most common ways to solve them:
| Mistake. | Reason. | Decision |
|---|---|---|
| ADB does not see the device | Not installed drivers or not included debugging | Install Mi PC Suite or Google USB Drivers |
| File. wpa_supplicant.conf hollow | New version of MIUI encrypts data | Use the method with root or backup |
| Cannot unlock the bootloader | The device is tied to the Mi Account | Untie your account in Settings β Xiaomi account |
| Password in file encrypted | MIUI uses Base64 or AES | Use online decoders or WiFi Password Viewer |
If you get an adb: device unauthorized error, check that a PC trust request window appears on your phone when you connect, sometimes hidden behind other notifications.
π‘
Before using ADB, disable antivirus on your PC β some programs (such as Avast or Kaspersky) block adb shell commands as suspicious activity.