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.
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 CommandorDM-Verity Verification Failedin recovery mode. - ๐ฅ๏ธ The computer detects the phone as
Qualcomm HS-USB QDLoader 9008orMediaTek 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 installedboot.img. In this case, you will need a complete flashing with cleaning of the partitionsystem.
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(orHomeon older models). - Xiaomi/Redmi:
Power + Volume up. - Google Pixel:
Power + Volume down, then selectRecovery Mode.
- Samsung:
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.
- Download the firmware in the format
.zip(for example, for Xiaomi these are files with the namemiui_*.zip). - Rename the file to
update.zipand place it toSD cardor to internal memory (if the phone is defined as a storage device). - Go to Recovery (see section 1) and select
Apply update from SD cardorInstall update.zip. - 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:
- Unpack the firmware (usually a file
images.zipor a set of files with the extension.img). - Connect the phone to the PC in mode
Fastboot(pressPower + Volume Down). - Open the command line in the folder with the firmware and run:
fastboot flash boot boot.imgfastboot 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 commandfastboot 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:
- Download SP Flash Tool and firmware in format
scatter.txt.- Run Flash_tool.exe, press
Scatter-loadingand selectscatter.txt.- Tick all partitions (or only damaged ones, if you know which ones).
- Connect turned off the phone to the PC (without pressing buttons!).
- Press
Downloadand wait for completion (a green circle appears).Important: If the process hangs on
DA 100%orBROM 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:
- Download Odin (version 3.14.4 or later) and firmware (4 files:
AP,BL,CP,CSC).- Run Odin on behalf of the administrator.
- Hold down on the phone
Volume down + Bixby + Power, thenVolume upto confirm the modeDownload Mode.- Connect your phone to the PC. In Odin a message should appear
Added!!.- Upload the firmware files to the appropriate fields (
APinAP,BLinBLetc.).- Press
Startand wait for it to finish (the phone will reboot automatically).For a full reset, use file
CSC(notHOME_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 IMEIafter firmwareDamaged partition NV Data(often when flashing firmware via SP Flash Tool)Restore IMEI via Maui METAorSN Write Tool(requires backup)Bootloopafter installationIncompatible version boot.imgorvendorFlash the original bootor runfastboot erase userdataSecure 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 scatterTry another scatter.txtor flash onlypreloaderConnection errors:
- ๐
Device not foundcfastboot:
- Check the drivers (use
Zadigto replace withlibusb).- 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.imgthroughfastboot 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
vendorandsystem.โ ๏ธ Attention: If after The phone requires firmwareGoogle 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
userdataorinternal 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
ext4partitions).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
bootloaderandrecoveryunnecessarily. 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 cacheor via Recovery (Wipe Cache Partition).- ๐ Reset the settings (
fastboot -wor 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 requiresunlocked).- ๐ฆ 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) orSamsung Accountafter 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:
- Download the firmware on
SD card.- Go to Recovery.
- 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.abior
adb shell cat /proc/cpuinfoFor 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:
- Disconnect the phone from the PC, remove and insert the battery (if removable).
- Try to connect again in the mode
FastbootorEDL.- If the phone does not respond, try flashing only
preloader(for MediaTek) orboot.img(for Qualcomm).- If all else fails,