Accidental deletion of system files on a Xiaomi smartphone is one of the most frustrating situations a user can encounter. The phone stops booting, emits errors like No OS installed or Fastboot mode, and access to data seems lost. The reasons are different: a failed editing of the /system partition via TWRP, an error command in ADB, a firmware failure or even a virus attack. But donβt panic β in 90% of cases, the device can be restored if you act according to a clear algorithm.
The rule is not to try to βfixβ the phone at random by pressing all buttons in a row or installing the first firmware that you find. This can lead to a complete loss of IMEI, locking the bootloader or βbrickingβ the device at the level of a hardware controller. This article provides proven recovery methods for all modern Xiaomi models (including Redmi Note 10/11/12, POCO F3/F4/F5, Mi 11/12/13 and others), as well as answers to questions about data security and warranty.
Why the phone stopped booting after the system was removed
System section (/system) Android contains critical files for the OS to boot: the kernel, libraries, Google services and firmware for running hardware. When these files are corrupted or deleted, the smartphone loses its ability to run:
- π Download the kernel β a black screen or Xiaomi logo appears with infinite download.
- π± Initialize the interface β the device goes to Fastboot mode or EDL (emergency).
- π Manage hardware modules - buttons, touchscreen, backlight do not work.
On models with an unlocked bootloader, the problem often occurs after:
- βοΈ Wrong firmware through TWRP (for example, customization ROM vendorless).
- π» Fastboot erase system or fastboot format system manually.
- π¦ Actions of malware that has obtained root rights (such as Shuanet or Triada Trojans).
β οΈ Note: If you used tools like Mi Unlock Tool or Xiaomi before crashing ADB/Fastboot Tools, high probability of blocking the bootloader, in which case you will need to log in to your Mi Account even to restore through the EDL.
First steps: diagnosis of the condition of the phone
Before you start rebuilding, determine which mode the device is in, which will help you choose the right method:
| Symptoms. | Regime. | Possible action |
|---|---|---|
| Black screen, no reaction to the buttons | Hard Brick | EDL only (Emergency Firmware via Qualcomm HS-USB) |
| Xiaomi logo is constantly burning or flashing | Bootloop | Fastboot or TWRP (if installed) |
| Fastboot mode or this device is locked | Fastboot | Firmware via Mi Flash Tool or ADB Sideload |
| The phone vibrates, but the screen doesn't turn on. | Display Brick | Connecting to a PC for diagnosis (possibly a problem in the screen driver) |
To check the reaction of the device:
- Connect your phone to charge for 10-15 minutes (even if it doesnβt show signs of life).
- Press Power + Volume Down for 10-15 seconds β if the Fastboot menu appears, the bootloader is alive.
- Connect to PC: If Qualcomm HS-USB QDLoader 9008 appears in Device Manager, the phone is in EDL mode.
Method 1: Fastboot Recovery (for unlocked bootloader)
If the bootloader is unlocked and the phone is detected in Fastboot mode, the most reliable way is to flash the official firmware through the Mi Flash Tool, which works even if the /system partition is completely erased.
What you need:
- π» Windows PC 7/10/11 (on macOS/Linux Possible problems with drivers).
- π Cable USB Type-C (preferably original).
- π Fastboot firmware ROM For your model (download only from the official Xiaomi website).
- π οΈ Mi Flash Tool (last version).
Step-by-step:
- Install Xiaomi drivers (download here).
- Unpack the archive with firmware in a folder without Cyrillic characters (for example, C:\Xiaomi\fastboot_rom).
- Launch the Mi Flash Tool, press Select and specify the path to the firmware folder.
- Connect your phone in Fastboot mode (press Power + Volume Down).
- In the Mi Flash Tool, press Refresh β the device must be defined as COMX.
- Select Clean All mode and press Flash.
βοΈ Preparation for firmware through Fastboot
β οΈ Note: If there is an error in the Mi Flash Tool anti_rollback, So you're trying to flash an older version of the software than the one you installed, and then you need to find firmware with the same or a newer Android number (like Android). 12 Android 11 You can't roll back).
Method 2: Emergency firmware via EDL (for "bricks")
If the phone is not responsive to buttons and is defined as Qualcomm HS-USB QDLoader 9008, then it is in Emergency Download Mode (EDL) mode. This method works even on locked bootloaders, but requires authorization through a Mi Account (if the device is tied).
Important: Firmware through EDL erases all data, including IMEI and NV-After recovery, network activation may be required.
Instructions:
- Download the EDL firmware for your model (see the 4PDA or XDA-Developers forums marked EDL authorized).
- Install the Qualcomm HS-USB driver (download here).
- Connect your phone to your PC β Qualcomm HS-USB QDLoader 9008 (COMX) should appear in Device Manager.
- Run the Mi Flash Tool, select the firmware and press Flash. If it requests authorization, enter the data from the Mi Account tied to the phone.
What if the Mi Flash Tool doesnβt see the phone in EDL?
After successful firmware, the phone should automatically restart. If the screen remains black, try:
- π Latch Power for 30 seconds (power reset).
- π Repeat the firmware with the option Clean all and lock (block the bootloader, but return factory settings).
Method 3: Recovery through TWRP (if custom recavery is installed)
If the phone is installed TWRP Recovery, and section /system damaged, you can try to restore the system through ADB Sideload or installation ZIP-This method stores user data (if not formatted) /data).
What do you need?
- π± Phone with a setup TWRP (Check by clamping the Power + Volume Up).
- πΎ Firmware in.zip format (for example, LineageOS, Pixel Experience or official). MIUI Fastboot, converted to ZIP).
- π₯οΈ PC ADB and Fastboot (download here).
Procedure:
- Download your phone to TWRP (Power + Volume Up).
- Connect to the PC and execute in the terminal: adb devices The device must be determined.
- Download the firmware on your PC and send it to your phone: adb push rom.zip /sdcard/
- V TWRP Choose Install β Select Storage β Micro SD Card (or Internal Storage) and point the way to the ZIP-file.
- Swipe to Confirm Flash and wait until itβs over.
π‘
If TWRP Does not see internal memory, try to connect your phone to the PC in mode MTP (Mount menu TWRP) And copy the firmware directly. If that doesn't work, use it. OTG-cable ZIP-file.
What to do if nothing helps: contact the service
If all of the above methods fail, the problem may be hardware:
- π Power controller damaged (phone not charging, does not respond to buttons).
- πΎ Flash memory (eMMC or eMMC) has failed. UFS), What often happens when a broken firmware is interrupted.
- π Oxidized contacts on the motherboard (after moisture hit).
In such cases, a professional diagnosis is required.
- π οΈ Xiaomi official service will refuse warranty repair if the bootloader is unlocked or installed TWRP.
- π° The cost of restoring the brick in unofficial services is from 3,000 to 10,000 β½ (depending on the model and type of breakdown).
- π± If the phone is warranty but the bootloader is locked, try resetting it via the Mi Unlock Tool (Mi Account binding is required).
β οΈ Attention: Some "masters" suggest that you flash your phone through Test Point to bypass the Mi Account lock. This is risky: if you make a mistake, you damage the fee and the warranty will be lost.
How to avoid data loss in the future
If you have managed to restore the phone, take steps to avoid repeating the following mistakes:
- π Regularly do backups through TWRP or Mi Cloud (especially before firmware). /data, /system and EFS (stored IMEI and network settings).
- π Do not unblock the bootloader unnecessarily β this deprives you of warranty and opens access to critical partitions.
- π‘οΈ Use antivirus software (such as Malwarebytes or Bitdefender) if you install applications from third-party sources.
- π Read the instructions before the firmware - on the forums 4PDA and XDA There are guidelines for each Xiaomi model.
For automatic backup of system partitions, you can use the script:
adb shell
su
dd if=/dev/block/bootdevice/by-name/system of=/sdcard/system.img
exitThe system.img file is copied to internal memory. Save it to your PC.
π‘
Even if you are a seasoned user, always check the firmware compatibility with your phone model. Installing firmware from another model (e.g. Redmi Note 11 instead of Redmi Note 11 Pro) will cause the device to fail.