Forgot the password from your home or work Wi-Fi, which your Xiaomi Redmi Note 8 Pro is connected to, and there is no one to ask for it? The situation is familiar to many β especially if the network was set up by someone else or the connection was long ago. Fortunately, there are several ways to extract the saved password on Xiaomi smartphones, and not all require root rights or complex manipulation.
In this article, weβll look at 5 proven methods, from simple (via MIUI settings) to advanced (using ADB or root file manager). Importantly, some methods only work on certain versions of the firmware, so weβll point out the limitations for each, and youβll learn how to bypass MIUI locking on passwords (relevant for recent updates).
1. Standard method via MIUI settings (no root)
The most obvious method is to look at the password in the Wi-Fi menu, but in MIUI 12 and later, Xiaomi has removed the ability to view passwords in the GUI for security, but on some versions of the firmware (especially if the phone hasnβt been updated for a long time), this method still works.
To check:
- π± Open the Settings. β Wi-Fi.
- π Find the network you are connected to in the list and tap it by its name.
- π If you have the option to show password or share, you're in luck! PIN-The screen unlock code/pattern lock and the password will be displayed.
β If you donβt have an option, then your version MIUI It blocks viewing. Go to the following methods.
β οΈ Attention: On the Redmi Note 8 Pro MIUI 14 Android 12/13 This method is guaranteed not to work β Xiaomi completely removed the function from the interface.
2. Viewing the password through QR-Code (works on all versions)
Few people know, but Xiaomi allows you to export data to the network QR-It's a code that you can then extract your password from, and it works even on the latest versions. MIUI It doesn't require rooting.
Instructions:
- Connect to the right Wi-Fi network.
- Go to Settings β Wi-Fi β [network name] β Share.
- Enter. PIN-Screen unlock code will open QR-code.
- Take a picture of it or scan it with another device.
- Use any online application to decode QR (e.g., ZXing Decoder) and you will get a line of the type: WIFI:S:[network name]; T:WPA;P:[your password]; where P:[your password] is the key you want.
πΉ Plus method: works on all versions MIUI It does not require additional programs.
πΈ Minus: We need to scan. QR-code by another device or manually decode a line.
π‘
If you donβt have a second QR scanner, install the QR & Barcode Scanner app from Google Play on the Redmi Note 8 Pro, which can read QR directly from your smartphone screen.
3. Use ADB (no root, but debugging is needed)
If previous methods failed, you can extract the password through Android Debug Bridge (ADB), which requires connecting the phone to your computer and enabling USB Debugging, but does not need root rights.
Step-by-step:
Enable Developer Mode (7 times tap the MIUI version in Settings β About Phone)|
Activate USB Debugging in Settings β Additional β For Developers |
Download ADB Tools on PC|
Connect Redmi Note 8 Pro to your computer via USB (select File Transfer mode)
-->
Next, run in the command line (or Terminal on Mac/Linux):
adb shell
su -c "cat /data/misc/wifi/WifiConfigStore.xml | grep '<string name=\"PreSharedKey\">'"If the team returns a line of form:
<string name="PreSharedKey">12345678</string>12345678 is your password.
β οΈ Note: Some firmware may have different paths to the file. If the command fails, try: su -c "cat /data/misc/wifi/WifiConfigStore.xml | grep 'psk='" or check the contents of the folder /data/misc/wifi/ via adb shell ls /data/misc/wifi/.
π Important: If su doesn't work, then there's no superuser rights on the phone.
4. Viewing password through file manager with root
If you have Magisk or another root rights manager installed on your Redmi Note 8 Pro, you can read the file directly with the Wi-Fi settings. This will require any root file manager (such as Root Explorer or FX File Explorer).
Instructions:
- π Open the file manager and go on the way: /data/misc/wifi/ or /data/misc/apexdata/com.android.wifi/ (Depends on the Android version).
- π Find the file. WifiConfigStore.xml (or WifiConfigStore.xml.bak).
- π Open it with a text editor and find a line: <string name="PreSharedKey">password</string>
πΉ An alternative path (for Android) 10+): /data/vendor/wifi/WifiConfigStore.xml
| Android version | The path to the password file | Note |
|---|---|---|
| Android 9 (MIUI 10-11) | /data/misc/wifi/WifiConfigStore.xml | The classic way, works on most firmware. |
| Android 10 (MIUI 12) | /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml | You may need to install /apex. |
| Android 11-13 (MIUI 12.5-14) | /data/vendor/wifi/WifiConfigStore.xml | Some firmware has the file encrypted. |
β οΈ Attention: If the file WifiConfigStore.xml is absent or empty, so, MIUI It uses a different mechanism for storing passwords, and in this case, only a backup copy will help. TWRP (method 5).
5. Removing password from TWRP backup (advanced method)
If none of the previous methods worked, the last option is to back up the /data partition via TWRP and extract the password on the computer.
- πΎ Access to a computer with 7-Zip Tar.
Step-by-step:
- Boot to TWRP (turn off the phone, then press Power + Volume up).
πΉ The advantage of the method: works even if the file is encrypted in a living system.
πΈ Disadvantage: requires TWRP takes a long time.
What to do if TWRP is not installed?
Comparison of methods: which one to choose?
Not all methods are equally convenient. Here's a quick comparison:
| Method | Need root? | Difficulty | Works on MIUI 14? | Notes |
|---|---|---|---|---|
| Through the Wi-Fi settings | β No. | β (simple) | β No. | Only on older versions of MIUI. |
| QR-code | β No. | ββ | β Yes. | You need to scan the code with another device. |
| ADB | β No (but I need debugging) | βββ | β Yes. | It requires PC and knowledge of commands. |
| Root file manager | β Yes. | ββ | β Yes. | We need super-user rights. |
| Backup copy of TWRP | β Yes (TWRP) | ββββ | β Yes. | The most reliable, but longest way. |
π‘
If you don't have root and MIUI 14, the easiest way to use is to use QR-If you have access to a PC, try it. ADB. For advanced users, the method of TWRP.