Where passwords are stored on Xiaomi: how to find and restore stored data

Lost access to an important account or forgotten the password from your home Wi-Fi? On Xiaomi, Redmi and POCO smartphones, you can restore saved passwords โ€” if you know where to look for them. Unlike the iPhone, where data is securely encrypted on a key chain, the Android platform (especially with a MIUI shell) leaves several loopholes to extract passwords. But there are nuances: some methods work without superuser rights, and others will require unlocking the bootloader or root access.

In this article, the current methods for devices on MIUI 12โ€“14 HyperOS, including Xiaomi models 13/14 series, Redmi Note 12/13, POCO F5/X5. We'll learn how to get passwords from Wi-Fi networks, apps (Vkontakte, Instagram, banking services), Mi accounts, even archived data from your browser. Importantly, some methods can only work if you've previously logged in under your account and haven't reset your settings.

1. Wi-Fi passwords: how to watch without root

The easiest way is to extract the password from your current or previously connected Wi-Fi network through system settings, which is hidden in MIUI but is available through a developer menu or third-party utilities.

If you have Android 10+ and MIUI 12+, follow these steps:

  • ๐Ÿ“ฑ Open the Settings. โ†’ Wi-Fi and tap on the current network name.
  • ๐Ÿ” In the network information window, find the Share button (or Share in English firmware).
  • ๐Ÿ” The system will request confirmation by PIN-code, print or pattern lock โ€“ enter it.
  • ๐Ÿ“ After the authorization will appear QR-code and text password underneath.

โš ๏ธ Note: This method only works for the current network, and to see passwords from all the saved networks, you need to root or ADB-teams (see section 3).

๐Ÿ“Š What kind of smartphone you Xiaomi?
Redmi Note 12/13
POCO F5/X5
Xiaomi 13/14 series
Another Xiaomi
Not Xiaomi.

2. Application passwords: where are stored in MIUI

Apps like VKontakte, Instagram or Tinkoff Bank often offer to save a username and password in the Android password manager. In MIUI, this data is synchronized with a Mi or Google account, but it can be extracted manually.

Method 1: Through Google Settings

  • ๐Ÿ”— Open the Settings. โ†’ Google โ†’ Managing a Google Account.
  • ๐Ÿ”‘ Go to the Security tab. โ†’ Password manager.
  • ๐Ÿ” Find the desired application in the list and tap it โ€“ the password will appear after confirmation by biometrics.

Method 2: Through MIUI settings (for synchronized data only)

  • ๐Ÿ“ฑ Go to Settings. โ†’ Accounts and synchronization โ†’ Mi Account.
  • ๐Ÿ”„ Make sure that password synchronization and login data are enabled.
  • ๐Ÿ”“ Open the Security app (shield icon) โ†’ Password manager.

โš ๏ธ Note: If you are not logged in to Mi Account or have disabled sync, passwords will not be displayed in this menu, in which case only root access or backup will help (see section 5).

๐Ÿ’ก

If the password is not displayed in the Google manager, try to log in to your computer account via the Chrome browser โ€“ there the stored data is synchronized faster.

3. Retrieving passwords via ADB (without root)

For advanced users, thereโ€™s a way to get passwords from Wi-Fi and some apps through Android Debug Bridge (ADB). This method does not require root, but requires debugging bridge and access to the USB-debugging.

Instructions:

  1. Turn on Developer Mode (7 times tap the MIUI version in Settings โ†’ About Phone).
  2. Activate. USB-debugging โ†’ Additionally. โ†’ For developers.
  3. Connect your phone to your PC and execute in the command line:
adb shell


su -c "cat /data/misc/wifi/WifiConfigStore.xml"

In the output, find the lines with <string name="PreSharedKey">... - these are the passwords from Wi-Fi networks.

adb pull /data/data/com.android.providers.settings/databases/settings.db

โš ๏ธ Attention: MIUI 14 and HyperOS may have different paths to the Wi-Fi base. If the command didn't work, try it:

adb shell "cmd wifi list_networks"

Install ADB-PC drivers

Enable the developer mode on Xiaomi

Activate USB-debugging

Connect your phone to USB (file transfer mode)

Download the Android SDK-->

4.Root access passwords: full control

If your Xiaomi has Magisk or another root manager installed, you can extract all the saved passwords, including data from banking applications, instant messengers and even system accounts.

Where to look:

Password typeThe path to the fileNote
Wi-Fi/data/misc/wifi/WifiConfigStore.xmlPasswords in PSK format
Applications (Google)/data/data/com.google.android.gms/databases/phenotype.dbIt needs decryption.
Mi Account./data/system/users/0/accounts.dbLogin in plain form, password - no
Browser (Chrome)/data/data/com.android.chrome/app_chrome/Default/Login DataYou need to copy and open in SQLite

To decrypt databases, use utilities like SQLite Browser or DB Browser for SQLite. Note: passwords in Login Data are encrypted using an Android encryption key that can only be extracted through specialized scripts (for example, ChromePass from NirSoft).

On HyperOS devices, the path to Wi-Fi passwords has changed: they are now stored in /data/vendor/wifi/hostapd/hostapd.conf, but require additional read rights.

How to bypass the system file reading block?
On some Xiaomi firmwares, even with root, access to /data/misc/wifi is limited. Solution: 1. Install Magisk's "Disable Flag Secure" module. 2. Use the command: su chmod 777 /data/misc/wifi/WifiConfigStore.xml 3. Copy the file before rebooting (rights reset).

5. Recover passwords from backup

If you've ever done a backup through Mi Cloud or Google Drive, there's a chance to recover passwords from the archive.

  • โ˜๏ธ Go to Settings. โ†’ Accounts and synchronization โ†’ Mi Account. โ†’ Cloud. โ†’ Backup.
  • ๐Ÿ”„ Find the latest backup and select Restore.
  • ๐Ÿ”‘ Make sure there is a password and Wi-Fi settings in the list.

For manual extraction from the local backup:

  1. Connect your phone to your PC and find the /MIUI/backup/AllBackup folder.
  2. Copy the file with the.bak extension and rename it to.tar.
  3. Unclarify with help 7-Zip WinRAR โ€“ Passwords can be stored in files wifi_config.xml or accounts.db.

โš ๏ธ Note: Backup recovery will overwrite your current settings. If you change your passwords after you backup, they will be lost.

6. Specific cases: Mi Account, banking applications, games

Some passwords (such as those from Mi Accounts or banking applications) are stored in encrypted form and are not extracted by standard methods.

Mi Account:

  • ๐Ÿ” If you have forgotten the password from the Mi Account, restore it through the official website (you will need a linked email or phone number).
  • ๐Ÿ“ง On devices with HyperOS, account data is stored in /data/system/mi_account.xml, But without rooting, you can't read them.

Banking applications (SberBank, Tinkoff, VTB):

  • ๐Ÿฆ These apps use secure storage and biometric binding, and even with root, it's almost impossible to extract a password.
  • ๐Ÿ”„ The only way is to restore access through the bankโ€™s personal account (by passport or in a branch).

Genshin Impact, Honkai: Star Rail (Genshin Impact)

  • ๐ŸŽฎ Passwords from miHoYo or other gaming accounts are stored in the /data/data/com.miHoYo.*/shared_prefs.
  • ๐Ÿ”‘ You need root to extract. + decompilation APK (for example, through JADX).

๐Ÿ’ก

Bank application passwords and Mi Accounts cannot be extracted without the help of a developer, and use official recovery channels to ensure that you do not lose access to services.

7. Alternative methods: if nothing has worked

If the standard methods donโ€™t work, try:

  • ๐Ÿ”ง Reset the pattern lock via Fastboot (if the screen is locked but you need access to settings). Commands: fastboot flashing unlock fastboot erase frp
  • ๐Ÿ–ฅ๏ธ PC usage: Connect your phone to your computer and scan your memory with programs like EaseUS Mobisafe or Dr.Fone (not all models).
  • ๐Ÿ“ฑ Flashing: Install custom firmware (like LineageOS) โ€“ sometimes it resets the restrictions on reading system files.

โš ๏ธ Note: Flashing or resetting via Fastboot deletes all data from the device. Use these methods only if other options are exhausted and you have a backup.

If you need to restore access to deleted data (for example, after a reset), contact the Xiaomi service center with proof of ownership of the device (check or box). EDL-mode (emergency loading).

FAQ: Frequent questions about passwords on Xiaomi

Can I see the Wi-Fi password I used a year ago?
Yes, but only if the network is stored in the device's memory. Use the ADB method (section 3) or root access (section 4).
Why is there no data from VKontakte in Googleโ€™s password manager?
The VK app does not save passwords in the Android manager by default. Try: Go to the VK app settings โ†’ Security โ†’ Save password. Use autocomplete the next time you sign in.
How to find out the password from Mi Account if you do not have access to email?
Contact Xiaomi via the mi.com/support form. You will need: IMEI device (written on the box or seen in *#06#) Check or warranty card. Passport photo (to verify identity). Recovery will take 3-7 days.
Do these methods work on POCO F5 with HyperOS?
Yes, but with reservations: The path to Wi-Fi passwords has changed (see section 4). ADB-Teams may require additional permits (include) USB-Debugging over Wi-Fi in the developer settings. Some system files are protected AVB 2.0 โ€“ You need a patch in Magisk to read them.
Can I remove passwords from a broken screen?
If the phone is turned on but the screen is not working: Connect the device to the PC USB and use ADB (Section 3). If USB-The debugging was not enabled in advance, try connecting the mouse to the OTG And you can use it blindly, and in the extreme case, you can take the phone apart and connect to the motherboard through the phone. UART (rationing skills required).