Where and how to find all the passwords on your Xiaomi phone: from Wi-Fi to apps

Lost access to saved passwords on Xiaomi, Redmi or POCO? Do you remember the code from Wi-Fi that you connected a year ago, or forgot your login from the social network? In this article, we will analyze all the legal and secure ways to extract passwords from the MIUI system - both with and without superuser rights (root), Importantly, the methods differ depending on the version of the firmware and device model, so we will specify the nuances for each situation.

Xiaomi does not provide direct access to passwords for security reasons, but there are hidden mechanisms in the system to store them. We will not consider hacking someone else’s accounts or bypassing locks – only restoring your data to your device. If your phone is stolen or you try to access someone else’s information, it violates the law (Article 272 of the Criminal Code).

1. Where Xiaomi stores passwords: system files and databases

The MIUI operating system (based on Android) saves passwords in several protected places:

  • πŸ“ File. wpa_supplicant.conf β€” Stores Wi-Fi networks and passwords (root required to access).
  • πŸ”‘ Keychain MIUI β€” Built-in password manager for accounts and apps (available through Settings) β†’ Passwords and security).
  • 🌐 Browsers and apps – Chrome, Mi Browser, Facebook and others store data in their databases (for example, /data/data/com.android.chrome/app_chrome/Default/Login Data).
  • ☁️ Xiaomi Cloud – syncs some passwords to your Mi Account (if enabled).

Without root rights, you can only retrieve some of the data, such as Wi-Fi passwords on older versions of MIUI (up to 12th) or saved browser logins via export. On newer firmware (MIUI 13/14 and above), access is severely restricted due to Google and Xiaomi's security policies.

πŸ’‘

If you plan to work with passwords often, turn on sync with Mi Cloud in Settings β†’ Xiaomi Account β†’ Cloud β†’ Data Sync. This will make it easier to recover from a phone reset.

2. How to view your Wi-Fi password on Xiaomi without root

On devices with MIUI 12 and older (2020 and later), viewing the Wi-Fi password through settings is blocked.

  1. Through QR-network code (working on the MIUI 13/14): Open the Settings. β†’ Wi-Fi, tap on the connected network β†’ Share the password. The system will generate QR-A code that can be scanned by another device, and the password will be displayed in text form under the code.
  2. Through router: Go to the router’s web interface (usually 192.168.1.1 or 192.168.0.1) and see the password in the Wireless or Wi-Fi section.
  3. Using Google Pixel or another Android: If you have a second phone on Android 10+, connect to the same Wi-Fi network, then open Settings β†’ Network and Internet β†’ Wi-Fi β†’ [network name] β†’ Share. Password will show up in text form.

On the phones with MIUI 14 and Android 13+ The Wi-Fi password viewing function QR-The code can be disabled by the manufacturer, in which case only root or router reset will help.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Another Xiaomi
Not Xiaomi.

3. Removing passwords with root rights (for advanced)

If your Xiaomi has root access installed (e.g., through Magisk), you can get full access to system files with passwords. Use these methods only if you understand the risks: wrong actions can lead to data loss or locking your phone.

Install a root-access file manager (e.g. Root Explorer or FX File Explorer)

Create a backup of data using TWRP or Mi Backup

Connect your phone to your PC via ADB (optional)

Disable the antivirus (it can block access to system files)-->

3.1. Wi-Fi passwords in wpa_supplicant.conf

Open the file manager with root rights and follow the path:

/data/misc/wifi/WifiConfigStore/wpa_supplicant.conf

Look for blocks of the view:

network={


ssid="NAZVANIE_SETI"




psk="VASh_PAROL"




key_mgmt=WPA-PSK




}

Copy the psk value, that is the password.

3.2 Account passwords in MIUI Keychain

MIUI Keychain stores the usernames and passwords of the apps to extract them:

  1. Install SQLite Editor from the Play Market.
  2. Open the database on the following path: /data/system/users/0/accounts.db
  3. Go to the account table, there will be saved accounts.
What to do if the files are encrypted?
On the newer versions of MIUI (13+), system files can be encrypted using FBE (File-Based Encryption), in which case passwords can only be extracted through specialized tools like Xiaomi Tool V2 (requires an unlocked bootloader and PC).

⚠️ Note: Modifying or deleting files in /data/misc/wifi/ This can cause you to lose all your stored Wi-Fi networks. Always back up before editing.

4. Recover passwords through Mi Account (cloud)

If your Xiaomi has Mi Cloud sync enabled, some of the passwords can be restored via the web interface:

  1. Go to i.mi.com and log in.
  2. Open the Devices section β†’ [your phone] β†’ Backups.
  3. Download the latest backup (if any) and find the files in it: πŸ“„ wifiConfig.xml β€” Wi-Fi; πŸ“„ accounts.db - Application accounts.

Note that Xiaomi doesn’t store passwords in the cloud, only encrypted backups, and decrypting them will require an original phone with the same Mi Account.

Type of dataWhere it's stored in the cloud.Can I get it out without root?
Wi-Fi passwordswifiConfig.xml in backupYes (on MIUI < 12)
Application loginsaccounts.db in backupNo (root needed)
Browser passwordsSynchronize with Google AccountYes (via passwords.google.com)
Passwords Mi AccountNot stored in the cloud.No.

5. Passwords in browsers: Chrome, Mi Browser, Firefox

If you have saved passwords in your browser, you can export them without root:

5.1. Google Chrome / Mi Browser

Both browsers sync with Google Account to see the passwords saved:

  1. Open passwords.google.com on any device.
  2. Sign up with the same Google account as you do on Xiaomi.
  3. Click on the desired site β†’ the eye icon to show the password.

5.2. Firefox

In Firefox, passwords are stored locally, and to export them:

  1. Open the browser on your phone.
  2. Go to Settings β†’ Logins and passwords β†’ Export logins.
  3. Create a.csv file and transfer it to your PC.

Remember, resetting your phone to factory settings (Settings β†’ About Phone β†’ Reset) will remove all saved passwords. Use this method only as a last resort if other methods have not worked.

FAQ: Frequent questions about passwords on Xiaomi

Can I get a Wi-Fi password on Xiaomi without rooting?
Yeah, but only on the old versions. MIUI (before 12-through QR-Network code or connection to another phone on Android 10+. On the new firmware (MIUI 13/14) Without root, it's impossible.
Where are the passwords from the apps (VK, Instagram, banks) stored?
Application passwords are stored in an encrypted account.db database (root required) or synced with Mi Cloud/Google Account (if enabled). Most banking and social media apps don't store passwords in the system - they use access tokens.
How to reset your Mi Account password if you forgot?
Go to account.xiaomi.com, click "Forgot your password?" and follow the instructions. You will need access to your email or phone number. If recovery fails, contact Xiaomi with proof of ownership of the device (check, IMEI).
Can I extract passwords from a broken Xiaomi screen?
Yes, if the phone turns on and reacts to touch, plug it into the PC via a touch. ADB Use the commands: Adb pull /data/misc/wifi/WifiConfigStore/wpa_supplicant.conf If the screen does not work at all, you will need to disassemble the device and connect to the display through HDMI-adapter (for models with support) USB-C to HDMI) or assistance from a service center.
Is it true that Xiaomi is transferring passwords to China?
Xiaomi officially says it doesn’t share user passwords with third parties. However, in 2020, security researchers discovered that some models sent Wi-Fi connection data to Xiaomi servers (without passwords). After the scandal, the company updated its privacy policy. For complete certainty, disable the collection of diagnostic data in Settings β†’ About Phone β†’ Send an error report.