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.
- 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.
- 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.
- 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.
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.confLook 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:
- Install SQLite Editor from the Play Market.
- Open the database on the following path: /data/system/users/0/accounts.db
- Go to the account table, there will be saved accounts.
What to do if the files are encrypted?
β οΈ 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:
- Go to i.mi.com and log in.
- Open the Devices section β [your phone] β Backups.
- 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 data | Where it's stored in the cloud. | Can I get it out without root? |
|---|---|---|
| Wi-Fi passwords | wifiConfig.xml in backup | Yes (on MIUI < 12) |
| Application logins | accounts.db in backup | No (root needed) |
| Browser passwords | Synchronize with Google Account | Yes (via passwords.google.com) |
| Passwords Mi Account | Not 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:
- Open passwords.google.com on any device.
- Sign up with the same Google account as you do on Xiaomi.
- 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:
- Open the browser on your phone.
- Go to Settings β Logins and passwords β Export logins.
- 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.