Crashed firmware on an Android smartphone is one of the most frightening problems for the user. The phone stops loading, freezes on the logo, or does not respond to buttons at all. The reasons may be different: an unsuccessful update, a virus attack, experiments with custom firmware, or a hardware failure. But in 90% of cases, the device can be brought back to life on its own - without contacting a service center.

This article will help you figure out how to properly flash Android after a failure, even if you have no experience working with firmware. We will consider all stages - from diagnosing the problem to choosing the appropriate recovery method (via SP Flash Tool, Fastboot or Recovery). We will pay special attention to data security typical errors that can turn the recovery into a brick.

Important: the flashing procedure differs for different manufacturers (Samsung, Xiaomi, Huawei etc.) and models. We will give universal recommendations, but additional nuances may be required for a specific device. If your smartphone is branded Google Pixel or OnePlus , check the compatibility of the tools in the official documentation.

๐Ÿ“Š What smartphone do you have?
Samsung
Xiaomi/Redmi/Poco
Huawei/Honor
Google Pixel
OnePlus
Other brand

1. Diagnosis of the problem: has the firmware really failed?

Before you start updating the firmware, make sure that the problem is in the software. Symptoms of crashed firmware are often confused with hardware failures. Here are the key signs of a software failure:

  • ๐Ÿ“ฑ The phone turns on, but freezes on the manufacturer's logo or boot animation.
  • ๐Ÿ”„ The device constantly reboots (bootloop).
  • โš ๏ธ Appears error No Command or DM-Verity Verification Failed in recovery mode.
  • ๐Ÿ–ฅ๏ธ The computer detects the phone as Qualcomm HS-USB QDLoader 9008 or MediaTek Preloader (in Device Manager).

If the phone is not responds to charging, does not vibrate when connected to a PC, or is physically damaged (for example, after a fall) - the problem is most likely a hardware one. In this case, the firmware will not help.

โš ๏ธ Attention: If you installed custom software before the failure (for example, LineageOS or Magisk), the cause could be a kernel conflict or an incorrectly installed boot.img. In this case, you will need a complete flashing with cleaning of the partition system.

For accurate diagnostics, try going into Recovery mode:

  • Turn off the phone (if it does not respond, press the power button to 10+ seconds).
  • Hold down the key combination (depending on the model):
    • Samsung: Power + Volume Up + Bixby (or Home on older models).
    • Xiaomi/Redmi: Power + Volume up.
    • Google Pixel: Power + Volume down, then select Recovery Mode.

If you can enter Recovery, it means that the firmware is partially damaged, and the chances of recovery without a PC are high. If not, you will need firmware via a computer.

2. Preparing for the firmware: what needs to be done before you start

Improper preparation is the main reason why the firmware turns into a โ€œbrickโ€. Before starting the procedure:

Download the correct firmware for your model|Install drivers (Qualcomm/MediaTek)|Charge the phone at least 50%|Prepare a USB cable (original!)|Make a backup of data (if the phone still turns on)-->

1. Determine the phone model and chipset. This is critical: firmware from Redmi Note 10 is not suitable for Redmi Note 10 Pro, even if they look similar. You can find out the model:

  • ๐Ÿ“„ On the box or under the battery (if removable).
  • ๐Ÿ” Through ADB (if the phone turns on):
    adb shell getprop ro.product.model
  • ๐Ÿ–ฅ๏ธ In Windows Device Manager (if the phone is detected how Android Bootloader Interface).

2. Download the correct firmware. Sources depend on the manufacturer:

Manufacturer Official source Alternative source
Samsung Sammobile, Samsung Members SamFW, Frija Tool
Xiaomi Mi Flash Tool (built-in downloader) Xiaomi Firmware Updater
Google Pixel Google Factory Images XDA Developers
MediaTek devices Manufacturer's website NeedROM, 4PDA

3. Install the drivers. Without them, the computer will not see the phone in firmware mode:

  • For Qualcomm: QDLoader HS-USB Driver.
  • For MediaTek: MediaTek Preloader USB VCOM.
  • Universal: ADB/Fastboot Drivers (for example, Minimal ADB and Fastboot).
โš ๏ธ Attention: Firmware drivers are often blocked by antiviruses (for example, Avast or Windows Defender). Before installation, temporarily disable protection or add folder with drivers in exceptions.

4. Prepare the tools. Depending on the firmware method you will need:

  • ๐Ÿ’ป SP Flash Tool โ€” for MediaTekdevices.
  • ๐Ÿ”ง Fastboot โ€” for Qualcomm and most brands.
  • ๐Ÿ“ฆ Odin โ€”only for Samsung.
  • ๐Ÿ”„ Mi Flash Tool โ€”for Xiaomi.
๐Ÿ’ก

If the phone still turns on, copy important data (photos, contacts) to a PC or cloud. After the firmware is installed, they will be deleted!

3. Firmware methods: which one to choose?

The recovery method depends on the condition of the phone and its chipset. Let's consider all the options from the simplest to the most complex.

Method 1: Firmware via Recovery (if the phone turns on)

Suitable if the phone boots into Recovery Mode, but does not start normally. This method is the safest, as it does not require a connection to a PC.

  1. Download the firmware in the format .zip (for example, for Xiaomi these are files with the name miui_*.zip).
  2. Rename the file to update.zip and place it to SD card or to internal memory (if the phone is defined as a storage device).
  3. Go to Recovery (see section 1) and select Apply update from SD card or Install update.zip.
  4. Confirm the installation and wait for completion.

If Recovery there is no item Apply update, then your recovery version does not support this method. Try the alternative:

  • ๐Ÿ”„ Use ADB Sideload:
    adb sideload filename.zip

Method 2: Firmware via Fastboot (for Qualcomm and most brands)

Universal method for devices on Qualcomm SnapdragonRequires an unlocked bootloader (bootloader).

Steps:

  1. Unpack the firmware (usually a file images.zip or a set of files with the extension .img).
  2. Connect the phone to the PC in mode Fastboot (press Power + Volume Down).
  3. Open the command line in the folder with the firmware and run:
    fastboot flash boot boot.img
    

    fastboot flash system system.img

    fastboot flash recovery recovery.img

    fastboot reboot

For Google Pixel and some other models use a script flash-all.bat - just run it.

โš ๏ธ Attention: If the bootloader is locked (by default on most phones), first unlock it with the command fastboot oem unlock. This will completely reset the data may void the warranty!

Method 3: Firmware via SP Flash Tool (for MediaTek)

Used for phones with chipsets MediaTek (Redmi Note 8T, Realme C-series etc.). A more risky method - an error can lead to complete brick.

Instructions:

  1. Download SP Flash Tool and firmware in format scatter.txt.
  2. Run Flash_tool.exe, press Scatter-loading and select scatter.txt.
  3. Tick all partitions (or only damaged ones, if you know which ones).
  4. Connect turned off the phone to the PC (without pressing buttons!).
  5. Press Download and wait for completion (a green circle appears).

Important: If the process hangs on DA 100% or BROM ERROR, means:

  • ๐Ÿ”Œ Incorrect drivers (try LibUSB-Win32).
  • ๐Ÿ“ฅ Damaged scatter.txt (download the firmware again).
  • ๐Ÿ”‹ The phone is discharged (charge at least 30%).

Method 4: Firmware via Odin (only for Samsung)

Samsung uses its own tool - OdinIt supports official firmware (.tar.md5) and custom (.zip) files.

Procedure:

  1. Download Odin (version 3.14.4 or later) and firmware (4 files: AP, BL, CP, CSC).
  2. Run Odin on behalf of the administrator.
  3. Hold down on the phone Volume down + Bixby + Power, then Volume up to confirm the mode Download Mode.
  4. Connect your phone to the PC. In Odin a message should appear Added!!.
  5. Upload the firmware files to the appropriate fields (AP in AP, BL in BL etc.).
  6. Press Start and wait for it to finish (the phone will reboot automatically).

For a full reset, use file CSC (not HOME_CSC), but note that this will delete all data, including internal memory.

๐Ÿ’ก

If the firmware is interrupted at the stage NAND Write Start!!, check the cable and USB port. Use the rear USB 2.0 port on your PC - it is more stable than USB 3.0 or hubs.

4. Typical mistakes and how to avoid them

Even if you follow the instructions, you can encounter problems. Here are the most common errors and their solutions:

Error Cause Solution
Invalid IMEI after firmware Damaged partition NV Data (often when flashing firmware via SP Flash Tool) Restore IMEI via Maui META or SN Write Tool (requires backup)
Bootloop after installation Incompatible version boot.img or vendor Flash the original boot or run fastboot erase userdata
Secure Check Fail: boot (Samsung) Wrong version Odin or firmware Use Odin 3.14.4 and firmware with the same region (CSC)
BROM ERROR: S_FT_ENABLE_DRAM_FAIL (MediaTek) Memory problems or incorrect scatter Try another scatter.txt or flash only preloader

Connection errors:

  • ๐Ÿ”Œ Device not found c fastboot:
    • Check the drivers (use Zadig to replace with libusb).
    • Try another cable (original, without adapters).
  • ๐Ÿ”‹ The phone is not detected in SP Flash Tool:
    • Disable driver signing in Windows (bcdedit /set nointegritychecks on).
    • Use the USB 2.0 port.

Loading errors:

  • ๐Ÿ“ฑ The phone vibrates, but does not turn on:
    • Sew separately boot.img through fastboot flash boot boot.img.
    • Check whether the section is damaged dtbo (relevant for Android 10+).
  • ๐Ÿ”„ Stuck on the logo after flashing:
    • Run fastboot -w (clearing data).
    • Check version compatibility vendor and system.
โš ๏ธ Attention: If after The phone requires firmware Google account (FRP lock), but you donโ€™t remember it, you will need to bypass it through FRP Tools or a service center. On some models (Samsung Exynos, Huawei Kirin), bypassing FRP without the original account is impossible.

5. Data recovery after flashing

If the flashing was successful, but you lost important data (photos, messages, contacts), you can try to recover them depending on whether the partitions userdata or internal storage.

Recovery methods:

  • ๐Ÿ“ฑ Via TWRP Recovery:
    • Install TWRP (if not already installed).
    • Connect the phone to the PC and copy the data via MTP.
    • Use utilities like DiskDigger or PhotoRec to scan the internal memory.
  • ๐Ÿ’ป Via ADB (if the phone turns on):
    adb pull /sdcard/ path_to_PC
  • ๐Ÿ” Specialized apps:
    • Dr.Fone (paid, but with a trial period).
    • 7-Data Recovery (works with ext4 partitions).

Important: Do not write new data to the phone after flashing the firmware - this reduces the chances of recovering old files. If you need photos, first copy them to your PC, and only then set up your phone.

What cannot be restored:

  • ๐Ÿ“ฑ Application data (game saves, messenger settings).
  • ๐Ÿ”‘ Passwords and tokens authorization (if there was no synchronization with Google Account).
  • ๐Ÿ“ž Call log (if backup was not enabled in Google Contacts).
Is it possible to restore data after a complete flashing?

Yes, but with reservations. If the firmware was โ€œcleanโ€ (with formatting userdata), the chances are minimal. However, some data (photos, videos) may remain in unused memory sectors. To extract them you will need to:

1. data-i="282">(requires dd (requires root).

2. Scan the dump with apps like Scalpel or Foremost.

This is a complex process, and without experience it is better to contact specialists.

6. Prevention: how to avoid firmware failure in in the future

To avoid encountering the problem again, follow these recommendations:

  • ๐Ÿ”„ Update the firmware only through official sources. Avoid "leaked" versions from forums if you are not sure of their origin.
  • ๐Ÿ“ฑ Do not interrupt the update process. Even if the phone has been around for a long time "thinks" at the stage optimizing apps โ€”wait for completion.
  • ๐Ÿ”‹ Monitor your battery charge. If the phone runs out of power during the firmware, this may damage the NANDmemory.
  • ๐Ÿ›ก๏ธ Make backups. Use:
    • TWRP + Nandroid Backup (full system snapshot).
    • Swift Backup (backup of applications and data).
    • Google Drive (synchronization of contacts, photos, documents).
  • ๐Ÿ”ง Do not experiment with bootloader and recovery unnecessarily. Unlocking the bootloader increases the risk of failures.

What to do if the phone started to slow down after the firmware?

  • ๐Ÿ“‰ Reset the cache: fastboot erase cache or via Recovery (Wipe Cache Partition).
  • ๐Ÿ”„ Reset the settings (fastboot -w or in the phone menu).
  • ๐Ÿ”‹ Check the health of the battery (via AccuBattery or adb shell dumpsys battery).

If you plan to install custom firmware:

  • ๐Ÿ“‹ Check compatibility with your model at XDA Developers or 4PDA.
  • ๐Ÿ”— Make sure that the firmware supports your bootloader (for example, Pixel requires unlocked).
  • ๐Ÿ“ฆ Use only trusted sources (for example, LineageOS Official).
โš ๏ธ Attention: On some phones (Huawei, Oppo, Vivo) unlocking the bootloader is officially prohibited by the manufacturer. An attempt to bypass it may lead to to loss of IMEI or network blocking.

7. When to contact the service center?

Not all problems can be solved by yourself. if:

  • ๐Ÿ”Œ The phone is not detected in any mode (Fastboot, Recovery, EDL).
  • ๐Ÿ”‹ After flashing the phone, the phone does not charge or turns off after a few seconds.
  • ๐Ÿ“ก The network has disappeared (IMEI is not detected, error Invalid IMEI).
  • ๐Ÿ”ฅ Appeared physical signs of damage (burning smell, swollen battery).
  • ๐Ÿ”’ Phone required Mi Account (Xiaomi) or Samsung Account after a reset, and you do not remember the data.

How much does the repair cost? Prices depend on the problem:

Problem Cost (approximately) Timeframe
Firmware via EDL (hardware mode) 1500โ€“3000 โ‚ฝ 1โ€“2 hours
Recovery IMEI 1000โ€“2500 โ‚ฝ 30โ€“60 minutes
Replacement EMMCchip (if the firmware does not help) 3000โ€“8000 โ‚ฝ 1โ€“3 days
Bypassing FRP lock 500โ€“2000 โ‚ฝ 20โ€“40 minutes

Before visiting the service:

  • ๐Ÿ“‹ Check whether they work with your model (some workshops do not undertake Huawei or Meizu due to difficulties with firmware).
  • ๐Ÿ”ง Ask if they provide a guarantee for the work (for example, for IMEI restoration).
  • ๐Ÿ’ฐ Ask for the final price - sometimes after diagnostics the cost increases 2-3 times.
๐Ÿ’ก

If the phone is under warranty, do not try to flash it yourself! The manufacturer may refuse to repair due to traces of interference (for example, unlocked bootloader).

FAQ: Frequently asked questions about Android firmware

โ“ Is it possible to flash a phone without a computer?

Yes, but only if the phone turns on Recovery Mode and you have firmware in format .zip. To do this:

  1. Download the firmware on SD card.
  2. Go to Recovery.
  3. Select Apply update from SD card.

If the phone is not turns on or you have MediaTeka chipset, a computer is required.

โ“ How do I find out what chipset is in my phone?

There are several ways:

  • ๐Ÿ“ฑ through the app CPU-Z or AIDA64 (section SoC).
  • ๐Ÿ” By phone model on the website GSMArena or DeviceSpecs.
  • ๐Ÿ’ป Via ADB:
    adb shell getprop ro.product.cpu.abi

    or

    adb shell cat /proc/cpuinfo

For MediaTek in the name of the chipset there will be MT (for example, MT6765), for Qualcomm โ€” Snapdragon (for example, SDM660).

โ“ What to do if the firmware is interrupted in the middle?

Not panic! Try the following steps:

  1. Disconnect the phone from the PC, remove and insert the battery (if removable).
  2. Try to connect again in the mode Fastboot or EDL.
  3. If the phone does not respond, try flashing only preloader (for MediaTek) or boot.img (for Qualcomm).
  4. If all else fails,