How to Remove Files from a Locked Xiaomi Phone: From Mi Account to ADB

A locked Xiaomi smartphone is not a sentence for your data, even if you forget the pattern lock, PIN-Mi Account code or password, the chances of returning photos, videos, documents and contacts remain high, the main thing is to act systematically and avoid common errors that can lead to complete data loss in a hard reset.

In this article, we will analyze all the current ways to extract files from locked devices Xiaomi, Redmi and POCO β€” From official methods using the Mi Account to technical tricks ADB And Fastboot. We'll focus on the nuances for different versions. MIUI (from 12 before 14) and chip-sized models Qualcomm/Mediatek. If the phone doesn’t respond to touch, but is determined by a computer, you still have a chance!

1 Unlocking through Mi Account (official method)

The safest and most legal method is to use a linked Mi Account.

  • πŸ”Ή The phone is connected to the Internet (Wi-Fi or mobile network)
  • πŸ”Ή You remember the username/password from Mi Account (or you can restore it)
  • πŸ”Ή The device has not been reset via Fastboot before.

After 5 failed attempts to enter a password, the system will offer the option "Forgot your password?" Click on it and follow the instructions:

  1. Enter the email or phone number associated with the account.
  2. Confirm your identity via SMS or backup email.
  3. Create a new unlock password.

⚠️ Note: If the phone was purchased from hand and tied to someone else's Mi Account, official unlocking is not possible without the consent of the previous owner.

On Xiaomi 12/13/14 models with MIUI 14, additional verification by SMS may be required after unlocking via your account. If the message does not arrive, check:

  • πŸ“Ά Network availability (reboot router or switch to mobile Internet)
  • πŸ•’ Time on the phone (incorrect date blocks the sending) SMS)
  • πŸ“± Reference number in the settings of the Mi Account (via the web version of account.xiaomi.com)
πŸ“Š Your Xiaomi phone is tied to your Mi Account?
Yeah, that's my account.
Yeah, but I forgot my password.
No, the phone was bought by hand.
I don't know, I haven't.

2. Recovery of files via Recovery Mode (without data loss)

If you don't have access to Mi Account, but your phone is responding to power buttons, try booting into Restore Mode. On most Xiaomi models, this is a combination:

Power button + Volume up

In the Recovery menu, select Connect with MiAssistant (in Russian firmware - "Connect to PC").

  • πŸ“ Copy files to your computer via Mi PC Suite
  • πŸ”„ Update the firmware without reset (if available) OTA)
  • πŸ”§ Install a patch to bypass the lock (requires an unlocked bootloader)

To copy files:

  1. Connect your phone to your PC via the original cable.
  2. Start Mi PC Suite (download from the official website).
  3. In the program, select β€œData Recovery” β†’ β€œData Recovery”.
  4. Mark the categories you want (photos, contacts, messages) and click Export.

⚠️ Attention: On devices with MIUI 13+ Connect with MiAssistant can be disabled by default. If the item is not in the menu, go to the method with the ADB.

β˜‘οΈ Preparation for work with Recovery

Done: 0 / 4

3. Use of ADB (for unlocked bootloader)

Android Debug Bridge (ADB) is a powerful tool for working with the phone file system directly.

  • πŸ”“ The phone has unlocked the bootloader (Bootloader Unlocked)
  • πŸ–₯️ There is access to PCs with installed Xiaomi drivers
  • πŸ”Œ USB-debugging was enabled before blocking (in the developer settings)

If the conditions are met, follow the instructions:

  1. Install ADB Tools on your computer.
  2. Connect your phone in Fastboot mode (power button + volume down).
  3. Open the command line in the adb folder and type: adb shell su cp -r /data/media/0/ /sdcard/backup/
  4. Copy files from phone to PC: adb pull /sdcard/backup/ C:\Xiaomi_Backup\

For models with Mediatek (e.g., Redmi Note 10/11), an additional command may be required to mount the partition:

adb shell mount -o rw,remount /data
What if the ADB can’t see the device?
1. Check if Xiaomi drivers are installed (download from the app) en.miui.com/a-234.html). 2. Try another one. USB-port (preferably) USB 2.0). 3. Disable driver signatures in Windows (via command line: bcdedit) /set nointegritychecks on). 4. Reboot your phone to Fastboot mode and reconnect.

Bypassing a lock via TWRP (for advanced users)

TWRP (Team Win Recovery Project) is a custom recovery that allows you to gain full access to the file system even if the phone is locked.

  • πŸ“± Devices with unlocked loader
  • πŸ”§ Models supporting installation TWRP (Xiaomi Mi 9, Redmi K20 Pro, POCO F3 etc.)
  • πŸ’Ύ Phones that were previously included OEM Unlock in the settings

Algorithm of action:

  1. Download the official.img TWRP file for your model from twrp.me.
  2. Transfer the phone to Fastboot mode and connect to the PC.
  3. Install. TWRP The command is fastboot flash recovery. twrp-3.7.0_9-0-davinci.img (Replace Davinci with the encoding of your model).
  4. Boot to TWRP (Power button + Volume up) and select Mount β†’ Enable MTP.
  5. Connect the phone as a flash drive and copy the files to the computer.

⚠️ Attention: Installation TWRP model MIUI 12+ Before the procedure, check the bootloader status with the command: fastboot oem device-info Search for Device unlocked: true.

Xiaomi modelSupport for TWRPRisks.
Redmi Note 8/9 Proβœ… Yes (unofficial assemblies)Possible loss of IMEI
Xiaomi Mi 11/12⚠️ Partially (requires a patch)High risk of brick
POCO X3/X4βœ… Yes (stable versions)Could throw off the DRM.
Xiaomi 13/14❌ No (closed loader)Account lockdown

5. data extraction through a memory card (if installed)

If you have a removable memory card (microSD) on your phone, the chances of saving files increase, even if the screen is locked.

  • πŸ“· Photos and videos saved on the map remain available.
  • 🎡 Music and documents can be extracted through the card reader.
  • πŸ“ž Contact and SMS not stored SD-default-card.

To copy the data:

  1. Remove the memory card from your phone (use the SIM tray paper clip).
  2. Put it in the card reader and connect it to the computer.
  3. Check the folders: DCIM (Photo/video), Download (downloads), WhatsApp/Media (messenger).

On Xiaomi models with a hybrid slot (such as the Redmi Note 10S), the memory card can be formatted as internal storage.

  • πŸ”’ Data encrypted and inaccessible without unlocking the phone.
  • πŸ”§ Try connecting the card to another Xiaomi phone with the same Mi Account.

πŸ’‘

If the memory card is not readable, try scanning it with PhotoRec, a free utility for recovering deleted files, which works even with formatted media.

6. Contact the Xiaomi Service Center (guarantee cases)

If the independent attempts failed, the official service center of Xiaomi can help - but with reservations:

  • πŸ“„ You will need a document confirming the purchase (check or warranty card).
  • πŸ” If the phone is linked to someone else’s Mi Account, unlocking is not possible.
  • πŸ’° Cost of service - from 1,500 to 5,000 β‚½ (Depends on the model and complexity).

What can be done in the service:

  • πŸ”§ Reset the screen lock with data storage (only for some models).
  • πŸ“₯ Extract files through specialized software (for example, UFi Box).
  • πŸ”„ Reflash the phone with backup of user data.

Addresses of authorized Xiaomi service centers in Russia can be found on the website mi.com/ru/service. Please clarify before your visit:

  • βœ… Do they support unlocking for your model.
  • βœ… Is there a risk of data loss when resetting.
  • βœ… Whether a pre-recording is required.

⚠️ Warning: Unofficial services often offer β€œunlock in 5 minutes” through exploits in the Internet MIUI. This could lead to: 🚫 Blocking Mi Accounts for Suspicious Activity. πŸ”„ Automatic data reset after update. πŸ’€ Loss of warranty (if the device is new).

7 Extreme measures: hard reset (if nothing worked)

If access to data is not critical, and most importantly, to return the phone to working condition, it remains hard reset.

  • ❌ Delete all files, applications and settings.
  • βœ… Unlock the screen and reset the password.
  • πŸ”„ It will bring the phone back to factory settings.

How to perform the reset:

  1. Turn off the phone.
  2. Press the Power button + Volume up to enter Recovery.
  3. Select Wipe Data β†’ Wipe All Data (Navigation with Volume buttons).
  4. Confirm the action and wait for the reboot.

On newer models (Xiaomi 13T, Redmi Note 12), a reset via Recovery may require a password from Mi Account.

fastboot erase userdata


fastboot erase cache




fastboot reboot

πŸ’‘

If the phone requires an old password after reset, it means that Factory Reset Protection (FRP) has been enabled, which can only be bypassed through a Mi Account or specialized software (for example, Mi Account Remove Tool).

FAQ: Frequent questions about unlocking Xiaomi

Can you unlock Xiaomi without losing data if you forget your Mi Account password?
Technically possible, but extremely difficult: πŸ”§ Unlocked loader and installed TWRP. πŸ–₯️ Access to PCs with ADB root-rights. πŸ“‘ Internet connection to bypass account verification via patches. MIUI 14 and Snapdragon 8 Gen 2 chip (e.g. Xiaomi 13 Ultra) such methods are often blocked at the firmware level.
What to do if Xiaomi phone is locked after firmware?
This is a typical situation when you install custom firmware incorrectly. Solutions: Try to check the official version. MIUI via Fastboot: fastboot flash all [firmware name].tgz If the phone doesn't turn on, use EDL Mode (requires an authorized Xiaomi account to unlock). Contact the service - they can restore firmware through Qualcomm Firehose or Mediatek Auth Bypass. ⚠️ Don’t try to run your phone through SP Flash Tool without knowledge DA The file will lead to a hard brick.
How to know if the bootloader is unlocked on Xiaomi?
There are three ways: Turn on your phone and go to Settings β†’ About Phone β†’ MIUI Version. Press 7 times on the line to activate developer mode. Then check Settings β†’ Additional β†’ Developer β†’ bootloader Status. Connect your phone to your PC in Fastboot mode and type in the command: fastboot oem device-info Look for Device unlocked:. When you load your phone, the screen may display a warning This is unlocked (on English firmware).
Can I recover deleted files after resetting Xiaomi?
The odds are minimal, but there are: πŸ” Recovery programs: DiskDigger, Recuva, EaseUS Data Recovery (scan internal memory through the system). ADB or after being connected as a flash drive). πŸ“± If your phone has been synced to Google Photos or Mi Cloud, check cloud backups. πŸ’Ύ For memory cards, use PhotoRec (works with the device). RAW-partition). ⚠️ After reset, do not write new files to your phone – it will overwrite deleted data.
Which Xiaomi models are the hardest to unlock?
S 2022 Xiaomi tightened protection on flagship models.Most problematic: Model Difficulty unlocking Reason Xiaomi 13 Pro ⭐⭐⭐⭐⭐ Protection at the level of the Snapdragon chip 8 Gen 2 + Related to Xiaomi Mix Fold Mi Account 2/3 ⭐⭐⭐⭐ Closed loader + partitioning /data Redmi K50 Gaming ⭐⭐⭐ Blocking Fastboot commands with unofficial firmware POCO F5 Pro ⭐⭐ Possible installation TWRP, but at risk of loss IMEI On these devices, bypassing the lock without data loss is possible only in authorized services with access to Xiaomi Auth Tools.