How to flash Xiaomi Mi 3 through your computer: full instructions with error analysis

Firmware Xiaomi Mi 3 through the computer is a task that may seem difficult to beginners, but with the right approach, it is done in 20-30 minutes. This method is relevant if the device does not turn on, hung on the Mi logo, or you want to install custom firmware for advanced features. Unlike air update (OTA), firmware through the PC gives full control of the process and allows you to restore the phone even in critical situations.

The main reasons why users use this method are: password reset, virus removal, switching to a new version of MIUI or Android, and fixing errors after unsuccessful updates. It is important to understand that the procedure requires unlocking the bootloader, which erases all data from the device. If you have never worked with Fastboot or MiFlash, don't worry - we will analyze each step in detail, taking into account the nuances for Mi 3 (codename cancro).

Preparation for firmware: what to do before the start

Before you connect your smartphone to your computer, do some critical actions that can lead to a device blinking or errors like the Invalid image format.

First, check the model of your Xiaomi Mi 3. To do this, go to Settings β†’ About phone (if the phone turns on) or look at the sticker under the battery. Make sure it is the Mi 3 (not the Mi 3S or Mi 4), as the firmware is incompatible for them. Second, download the official firmware from the Xiaomi Firmware site - choose the version for cancro (global or Chinese, depending on your current firmware).

  • πŸ“± Battery charge at least 60 percent. Low charge can interrupt the process.
  • πŸ”— Cable USB β€” Use original or quality cable with data transmission support (not charging!).
  • πŸ’» Drivers - install Mi USB Driver for correct phone recognition.
  • πŸ”“ Unlock the bootloader – if not unlocked, the firmware will fail (instruction below).

Also back up your important data. Fastboot firmware wipes away all internal memory. Use Mi PC Suite for backup or manually copy files to your computer. If the phone doesn't turn on, remove the memory card (if any) and the data will be stored on it.

πŸ“Š What type of firmware do you plan to install?
Official MIUI
LineageOS (Pixel Experience)
Recovery after failure
I don't know.

Unlock the bootloader on Xiaomi Mi 3

The bootloader on all Xiaomi devices is locked by default. Without it, Fastboot firmware is impossible. The process takes 3 to 10 days due to checking your Mi Account, so start this step in advance.

To unlock, follow the following steps:

  1. Link your Mi Account to your phone in settings (Settings β†’ Xiaomi Account).
  2. Turn on USB debugging: go to Settings β†’ About Phone, tap 7 times on MIUI Version, then go back to Settings β†’ Additional β†’ For Developers and activate Debugging over USB.
  3. Download the Mi Unlock Tool and log in to it under the same account.
  4. Connect your phone to your PC in Fastboot mode (clip Volume Down + Power when your phone is off).
  5. Run unlock in the utility and wait for SMS confirmation (can take up to 720 hours).

⚠️ Note: If you bought the Mi 3 with your hands, make sure the previous owner untie your Mi Account. Otherwise, unlocking will not be possible without his data.

Once you unlock it successfully, the phone will restart, and you'll see Unlocked when you boot it. Now you can start the firmware. If the utility gives you a Couldn't unlock error, check:

  • πŸ”Œ Connecting the cable (try another port) USB).
  • πŸ“± Account status (no restrictions).
  • πŸ–₯️ Mi Unlock Tool (Update to the Last).

πŸ’‘

If unlocking is delayed, try contacting Xiaomi support via Twitter – sometimes they speed up the process.

Selection of firmware: official MIUI vs custom

The functionality and stability of the Mi 3 depends on the type of firmware. Official MIUI firmware is divided into:

  • 🌍 Global Stable – stable version with support for Google services (recommended for most users).
  • πŸ‡¨πŸ‡³ China Stable is a Chinese version without Google, but with the latest updates.
  • πŸ§ͺ Developer – test builds with new features but possible bugs.

For Xiaomi Mi 3 (cancro), the latest official version of MIUI is MIUI 9 based on Android 6.0. New versions are not supported due to hardware limitations. If you need current features, consider custom firmware:

  • πŸ“± LineageOS – pure Android without unnecessary applications.
  • 🎨 Pixel Experience – firmware with an interface like Google Pixel.
  • ⚑ Havoc-OS - custom firmware with wide settings.
Type of firmwareAdvantagesDeficienciesComplexity of installation
Official MIUIStability, OTG support, original functionalityOlder version of Android, a lot of Bloatware⭐⭐
LineageOSUp-to-date Android, no unnecessary appsThe camera or sensors may not work⭐⭐⭐
Pixel ExperienceInterface like on Pixel, quick updatesLess optimization for the Mi 3⭐⭐⭐

Critical! Custom firmware requires customized recavator (TWRP) installation. Mi 3 is not needed to flash, and official firmware can be installed through MiFlash without any further manipulation.

Xiaomi Mi 3 firmware via MiFlash: step-by-step instructions

This method is suitable for installing official MIUI firmware. You will need:

  • πŸ’» Windows computer (7/10/11).
  • πŸ“ Firmware in.tgz or.zip format (unpacked).
  • πŸ”§ MiFlash utility (version 2018 or newer).

Firmware steps:

  1. Unpack the downloaded firmware in a folder without Cyrillic characters (for example, C:\Mi3_Firmware).
  2. Turn off the phone and put it in Fastboot mode (clip Volume Down + Power).
  3. Connect the Mi 3 to a PC. The Android Bootloader Interface should appear in the Device Manager.
  4. Run MiFlash.exe on behalf of the administrator.
  5. Click Select and point the way to the firmware folder.
  6. At the bottom, select firmware mode: Clean all – complete cleaning (recommended). Clean all and lock – cleaning + lock bootloader (only for official firmware!), Save user data – data storage (not always stable).

Refresh

Flash

Download firmware for cancro| Unpack into a folder without spaces |Install MiFlash and drivers |Unlock bootloader | Charge phone to 60%+

-->

If the process is successful, the phone will automatically restart. It can take up to 15 minutes to turn on the first one, don't interrupt it. If MiFlash gives an error critical partition flashing is not allowed, then it means:

  • πŸ”“ The bootloader is not unlocked.
  • πŸ“ You have chosen the wrong firmware (for example, for another model).
  • πŸ”§ Selected Clean All and Lock mode for custom firmware.

⚠️ Warning: If the phone has been stuck on the Mi logo for more than 20 minutes after firmware, try flashing it back with the Clean all option. TWRP.

Firmware through Fastboot manually (alternative method)

If MiFlash doesn’t work or you prefer more control, you can flash Mi 3 through the command line, which is universal and suitable for official and custom firmware (if you have.img files).

You'll need:

  • πŸ“ Firmware folder (must have files) boot.img, system.img etc.).
  • πŸ–₯️ Platform Tools (ADB and Fastboot).
  • πŸ“ List of commands for your firmware (usually attached in the archive).

Instructions:

  1. Unpack the platform-tools in the root of the C:\ disk.
  2. Place the firmware files in the same folder.
  3. Open the command line (Win + R β†’ enter cmd).
  4. Go to the folder from fastboot: cd C:\platform-tools
  5. Check the phone connection: fastboot devices must display the serial number of the device.
  6. Round up the firmware commands (example for official MIUI): fastboot flash boot.img fastboot flash system.img fastboot flash recovery.img fastboot flash recovery.img fastboot flash userdata userdata.img
  7. Upon completion, type in fastboot reboot

For custom firmware (such as LineageOS), you first need to flash TWRP:

fastboot flash recovery twrp-3.6.0-cancro.img


fastboot boot twrp-3.6.0-cancro.img

Then reboot to TWRP (click Volume Up + Power) and install the firmware through the Recovery menu.

What if Fastboot doesn’t see the device?
1. Check the cable and USB port (try USB 2.0). 2. Install the drivers manually through Device Manager (select "Android Bootloader Interface"). 3. Disable the driver signature in Windows (to do this, temporarily disable digital signature verification). 4. Try another computer or virtual machine with Linux.

Common mistakes and their solutions

Even with the correct instructions, errors can occur, and here are the most common ones and how to correct them:

Mistake.Reason.Decision
Invalid sparse file format at headerA damaged firmware file or an incompatible version of MiFlash.Download the firmware again, use MiFlash 2018.
Device not foundDrivers are not installed or the cable is faulty.Check the connection, install the drivers manually.
The phone does not turn on after the firmwareIncompatible firmware or interrupted process.Repeat the firmware with the choice of Clean all.
Anti-rollback checkTrying to sew an older version of MIUI.Find firmware with the same or newer Anti-rollback number.

If the Mi 3 does not determine the SIM-maps, check the cards:

  • πŸ“Ά Compatibility of the firmware with your model (for example, Mi) 3W requires special firmware).
  • πŸ”§ Network settings: go to Settings β†’ SIM-Maps and mobile networks and select network mode manually.
  • πŸ“² IMEI: If it has dropped, restore it via Engineer Mode (code #3646633##).

⚠️ Note: If the sound is lost after the firmware or the sensor is not working, most likely the firmware is not designed for your Mi revision. 3. Try the version for cancro_global or cancro_china.

πŸ’‘

Always check the hash amount (MD5) of the downloaded firmware. Even a single character mismatch means that the file is corrupted and cannot be stitched.

Recovery after a failed firmware

If the Xiaomi Mi 3 stopped turning on or stuck on the logo, do not panic - in 90% of cases it can be restored.

First, determine the state of the device:

  • πŸ”„ Hanging on the logo – the phone responds to buttons, but does not load further.
  • πŸ’€ Black screen – no response to buttons, but the computer detects the device in the Fastboot.
  • πŸ”Œ PC not detected – phone does not respond to connection (possibly hardware failure).

For the first case (hang on the logo) will help hard reset:

  1. Turn off the phone (squeeze the power for 10 seconds).
  2. Press Volume Up + Power to enter Recovery.
  3. Select Wipe data/factory reset (control – volume buttons, confirmation – power).
  4. Reboot system (reboot system now)

If the phone is not turned on, but is determined in Fastboot:

  1. Sweep through the official firmware through MiFlash in Clean All mode.
  2. If the error repeats, try stitching in parts through the command line (see section above).
  3. For custom firmware, first install TWRP, then stitch ZIP-file-over.

If the phone is not detected at all:

  • πŸ”Œ Check the battery charge (plug in to charge for 30 minutes).
  • πŸ”§ Try a different cable and port USB.
  • πŸ’» Use another computer (possibly driver conflict).
  • πŸ› οΈ In extreme cases - contact the service center (possibly damaged connector or motherboard).

FAQ: Answers to Frequent Questions

Can I flash Xiaomi Mi 3 without unlocking the bootloader?
No, the official and custom firmware on Fastboot requires an unlocked bootloader. The only way to get around this is to upgrade through Recovery, but it only works for official ones. OTA-updates and will not help in case of serious failures.
How do I know if my Mi 3 bootloader is unlocked?
Turn off your phone and press Volume Down + Power to log into Fastboot. If there's Unlocked at the bottom of the screen, the bootloader is unlocked. If Locked, you need to unlock through the Mi Unlock Tool.
Which firmware is best for Mi 3 in 2026?
For stable operation, the latest official MIUI 9 (Android 6.0) is recommended.If you want a current Android, try LineageOS 16 (Android 9) or Havoc-OS (Android 10), but note that some sensors (such as NFC) may not work.
What if the camera doesn’t work after the firmware?
This is a typical custom firmware problem. Solutions: Install an alternative camera app (like Google Camera). File a patch for the camera (look for the XDA-Developers forum). Go back to the official firmware if the camera is critical.
Can I run Mi 3 on Mac or Linux?
Yes, but with caveats: For Mac, use Homebrew to install fastboot and adb. For Linux, drivers are usually installed automatically, but you may need to add udev rules. MiFlash only works on Windows, so for alternative OSs, use manual firmware via fastboot.