Forgot your home Wi-Fi password and your router settings have reset? Or need to connect a new device but lost the password sticker? Xiaomi Redmi Note 9 Pro There are several ways to extract a saved network password - both using standard tools MIUI, or using additional tools. The main thing is that the phone must have connected to this network at least once.
In this article we will analyze 5 proven methods, including options without root rights and using ADBPlease note: Some methods require prior setup (such as a backup), so if you haven't yet lost access to your password, prepare your phone for such situations in advance. Also keep in mind that Redmi Note 9 Pro was released with different firmware versions (MIUI 11–14), and the layout of menu items may vary slightly.
⚠️ Important: Extracting Wi-Fi passwords from someone else's phone without the owner's consent violates data privacy laws (Article 138 of the Russian Criminal Code). All methods in this article are intended for use only with own device.
1. The standard method through MIUI settings (without root)
The easiest method is to use the built-in function password exchange V MIUIIt works if:
- 📱 The phone is connected to the desired Wi-Fi network Now.
- 🔄 Function
WLAN DirectorMi Shareactivated (on by default). - 📲 You have a second phone (or tablet) with MIUI 12+ to accept the password.
Instructions:
- Open
Settings → Wi-Fion Redmi Note 9 Pro. - Tap on the name of the current network (not on the switch!).
- Select
Share password(orQR codein older versions of MIUI). - Bring the second phone with MIUI — the password will be displayed as a QR code or text.
Make sure Bluetooth and Wi-Fi are turned on on both devices|
Disable VPN/proxy - they may block exchange|
Check that the second phone has MIUI 12 or later installed|
Allow location access (required for Wi-Fi Direct)
-->
⚠️ Attention: If the function Share password absent, then:
- 🔹 It's disabled on the phone
Mi Account(authorization required). - 🔹 Custom firmware (unofficial MIUI) installed.
- 🔹 MIUI version is older than 12, but lower than 11.5 (updating solves the problem).
On Redmi Note 9 Pro With MIUI 14 Global, the password sharing feature works reliably, but may require confirmation via fingerprint or PIN.
2. View password via MIUI backup
If you have ever created a backup through Mi Cloud Or local storage, Wi-Fi passwords may have been saved in the backup file. This method doesn't require root access, but is only suitable for those with a backup archive.
How to extract the password:
- Go to
Settings → About phone → Backup & reset → Local backups. - Select the latest backup (preferably created before losing the password).
- Click
Restoreand select only the itemWi-Fi settings. - After recovery, the password will be available in
Settings → Wi-Fi → [network name] → Share password.
| Backup type | Contains Wi-Fi passwords? | How to restore |
|---|---|---|
| Mi Cloud | ✅ Yes (if enabled in settings) | Through Settings → Mi Account → Cloud → Restore |
| Local backup | ✅ Yes (always) | Through Settings → Advanced → Backup |
| Google Drive | ❌ No (only contacts and apps) | — |
| TWRP backup | ✅ Yes (in the section /data/misc/wifi) |
Requires root and a file manager. |
⚠️ Attention: Restoring a backup will overwrite your current Wi-Fi settings. If your phone is connected to other networks, their passwords may be lost. We recommend writing them down or creating a new backup beforehand.
Yes, via Mi Cloud|
Yes, locally to the memory card|
No, but I plan to start|
No, I don't see the point.
-->
3. Using ADB (without root, but from a PC)
If standard methods don't work, you can extract the password through Android Debug Bridge (ADB)This method does not require root access, but it does require a computer with installed drivers. Xiaomi and USB debugging enabled on the phone.
Step-by-step instructions:
- Activate
Developer mode:- Go to
Settings → About phone. - Tap 7 times on
MIUI version. - Return to
Settings → Advanced → For developers. - Turn on
USB debugging.
- Go to
File transfer).adb devices
(your device should be displayed).
adb pull /data/misc/wifi/WifiConfigStore.xml
WifiConfigStore.xml in any text editor and find the line:
<string name="PreSharedKey"><![CDATA[YOUR_PASSWORD]]></string>
⚠️ Attention: Starting from MIUI 13, the path to the password file may differ (/data/vendor/wifi/WifiConfigStore.xml). If the file is not found, check the current path using the command:
adb shell ls /data/misc/wifi/
4. View password using root rights
If on yours Redmi Note 9 Pro bootloader unlocked and installed Magisk (or another root manager), you can extract the password in 2 minutes. This method gives access to all saved networks, not just the current one.
Instructions:
- Install any root explorer (For example, Solid Explorer or FX File Explorer).
- Follow the path:
/data/misc/wifi/or/data/vendor/wifi/(depending on MIUI version). - Find the file
WifiConfigStore.xmland open it with a text editor. - Look for blocks of code like this:
<Network><string name="SSID">Network_name</string>
<string name="PreSharedKey">Password</string>
</Network>
Alternative way through Terminal Emulator:
- Install the application Termux or any other terminal.
- Enter the commands:
sucat /data/misc/wifi/WifiConfigStore.xml | grep "PreSharedKey" - The system will display a list of all saved passwords.
What to do if the WifiConfigStore.xml file is encrypted?
Starting with Android 10, some manufacturers (including Xiaomi) encrypt files with passwords. In this case, only specialized software like WiFi Password Viewer (requires root) or manual extraction via SQLite-base:
adb shellsu
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "SELECT * FROM wifi;"
⚠️ Attention: Using root access will void your warranty. Xiaomi and may lead to problems with MIUI OTA updatesBefore unlocking the bootloader, create a full backup using TWRP.
5. Extracting the password through the engineering menu (hidden method)
A little known method is to use engineering menu XiaomiIt doesn't work on all MIUI versions, but it can sometimes help when other methods aren't available.
How to open the engineering menu:
- Open the app
Telephone. - Enter the combination:
##4636##(a menu will open)Testing). - Go to the section
Wi-Fi Information. - Click on
Show password(if the option is available). - 🔢
##232338##— information about the MAC address and network. - 🔢
##232339##— Wi-Fi test (sometimes displays the password). - 🔄 Resetting the router. Click the button
Reseton the back of the router (hold for 10 seconds). The password will be reset to the factory default (indicated on the sticker). - 📡 Connection via WPS. If your router supports WPS, press the button on it and select on your phone
Connect via WPSin the Wi-Fi settings. - 💻 View on another device. Check the password on your laptop (Windows:
Control Panel → Network Connections → Wireless Network → Properties → Security). - 📱 Recovery applications. Programs like WiFi Password Recovery require root, but sometimes work on older versions of MIUI.
- 🔹 Installed custom firmware (unofficial MIUI).
- 🔹 MIUI version below 12 (update the system).
- 🔹 Disabled Mi Account or there is no internet (the function requires authorization).
- 🔹 Wi-Fi Direct data exchange is disabled in security settings.
- 🔹 No risk of data loss (ADB only reads files).
- 🔹 No bootloader unlocking required.
- 🔹 After extracting the password, USB debugging can be disabled.
- 🔒 Install application blocking on
Settings(throughSecurity → App Blocking). - 🔐 Turn off
USB debuggingin the developer settings. - 📱 Don't save passwords in the cloud Mi Cloud (turn off Wi-Fi sync in your account settings).
- 🔄 Change your router passwords regularly (every 3–6 months).
- 📱 Redmi Note 8/9/10/11 series.
- 📱 POCO X3/X4/F3.
- 📱 Mi 10/11/12 series.
- 🔹 On MIUI for Europe (EEA) Password sharing may not be possible due to GDPR restrictions.
- 🔹 On POCO with firmware POCO Launcher The path to the Wi-Fi files may differ.
If the combination doesn't work, try alternative codes:
6. Alternative methods (if nothing helps)
If none of the methods work, there are radical or indirect solutions left:
⚠️ Attention: Resetting your router will disconnect all users from the network and return your settings to factory defaults. If you have port forwarding, static IP or guest Wi-Fi, they will have to be configured again.
Standard password exchange via MIUI|
Backup copy|
ADB|
Root method|
Engineering menu|
Another way (I'll write in the comments)
-->
FAQ: Frequently Asked Questions
Is it possible to find out the password for a Wi-Fi network that my phone was previously connected to but is not currently connected to?
Yes, but only if you have root rights or backup, created at the time of connection. Without root, the system does not store passwords of previous networks in an accessible form. In the file WifiConfigStore.xml records of all networks remain, but it is impossible to read them without superuser rights.
Why is there no "Share Password" option in MIUI?
There are several reasons:
Try resetting your network settings: Settings → System → Reset → Reset Wi-Fi, mobile network, and Bluetooth settings.
Is it safe to use ADB to extract password?
Yes, if you follow the instructions and download ADB Tools from the official website Android DevelopersThe risks are minimal:
The danger arises when you run unknown commands from untrusted sources.
How to protect Xiaomi Wi-Fi passwords from prying eyes?
To prevent unauthorized access:
Do these methods work on other Xiaomi models (Redmi Note 10, POCO X3, etc.)?
Yes, most of the methods are universal for all phones MIUI, including:
Exceptions: