Completely reinstalling the operating system on a smartphone is a radical, but often the only way to bring the device back to life after critical failures, deletion of system files or virus infection. Unlike a regular factory reset, which only clears user data, flashing via computer allows you to write a clean system image to the phone's memory, ignoring errors in the recovery partitions. This method requires technical training, but gives maximum control over the recovery process.

The process of installing new firmware varies depending on the manufacturer of your device. For Samsung the Odin utility is used, for Xiaomi -Mi Flash Tool, and for many other brands universal tools like SP Flash Tool or ADB/Fastbootare suitable. Regardless of the selected software, the essence of the operation comes down to transferring a binary system image file from the computer memory to the internal storage of the smartphone, bypassing the standard Android interface.

Before taking active steps, you need to understand the risks. Any intervention in the system partition carries the potential threat of turning the device into a “brick” if the procedure is violated. This is especially critical for devices with encrypted data sections or locked bootloaders. However, with strict adherence to the algorithm and the presence of original files, the chance of successful recovery is more than 95%.

Preparation of equipment and software

The success of the operation depends 80% on the quality of preparation. You will need a personal computer or laptop with an operating system Windows (highest driver compatibility), a working USB cable and a smartphone itself with a charged battery. The cable must be original or a high-quality analogue, capable of transmitting data, and not just providing charging. Cheap “charge-only” cables will make the process impossible.

You need to install specialized ones on your computer USB drivers for your processor or phone brand. For processors MediaTek these are VCOM drivers, for Qualcomm these are QDLoader, and for Samsung these are drivers included in the Samsung USB Driver. Without the correct installation of drivers, the device manager will not see the phone in firmware mode (Download Mode or Fastboot), and the app will simply display a connection error.

It is also critical to find the correct firmware. The file must strictly correspond to your device model, including board revision and region. Using firmware from a different model or even from a different region of the same model may result in the radio module (IMEI) or cameras not working. You should search for files on the official websites of manufacturers or trusted forums, paying attention to the Android version and build date.

☑️ Preparation for firmware

Done: 0 / 5

Unlocking the bootloader and debugging via USB

Most modern smartphones come with a locked bootloader (Bootloader) for security purposes. This prevents the installation of software that is not signed by the manufacturer. To start the flashing procedure via PC, you often need to unlock the bootloader. This procedure usually erases all data from the device, so it is performed at a very early stage, before attempting to write a new system.

To activate developer mode, you need to go to the menu Settings → About phone and quickly press 7 times on the item Build number. After the message “You have become a developer” appears, go to the new section For developers and activate the switch Factory unlocking (OEM Unlocking). Without this item, the unlock command via Fastboot will be rejected by the device.

⚠️ Attention: Unlocking the bootloader on many devices (for example, Huawei or some Samsung models for specific regions) may be irreversible or completely blocked by the manufacturer. In such cases, standard methods of flashing firmware via Fastboot will not work, and special service boxes or paid services will be required.

After enabling debugging, connect the phone to the PC and confirm permission for debugging in the window that appears on the smartphone screen. To enter bootloader mode, you usually use a key combination (for example, Volume Down + Power) when the phone is turned off, or a command through the console. In the command line window it looks like this:

adb reboot bootloader

Entering the mode Fastboot is confirmed by the image of an Android robot or a text menu on the phone screen. It is in this state that the computer directly accesses memory sections to write new images. If the device does not enter this mode, check the serviceability of the volume buttons and the integrity of the USB port.

📊 Which manufacturer do you encounter most often?
Samsung
Xiaomi
Huawei/Honor
Google Pixel
Other brand

Tools for firmware: Odin, SP Flash Tool and Fastboot

The choice of software is dictated by the processor architecture and manufacturer's policy. There is no universal solution “for everyone,” so it is important to understand the differences between the main utilities. Odin is a standard for devices Samsung and works exclusively in Download Mode. It can flash individual partitions (BOOT, SYSTEM, RECOVERY) individually or as one file.

For processor-based devices MediaTek (budget models Xiaomi, Realme, old Lenovo) the main tool is SP Flash Tool. This app even works with completely “dead” phones if the drivers are installed correctly. It allows you to dump memory, format partitions and write a scatter file that contains a map of device memory addresses.

Tool Brand/Processor Operation mode Complexity
Odin3 Samsung Download Mode Low
SP Flash Tool MediaTek Power Off / BROM Medium
Fastboot / ADB Pixel, Xiaomi, OnePlus Fastboot Mode High
Mi Flash Tool Xiaomi Fastboot / EDL Medium

The universal method via Fastboot requires working with the command line. This is the most flexible method that allows you to flash any device with an unlocked bootloader that supports this protocol. Commands are entered manually, which gives complete control but increases the risk of typo errors. An example command for flashing a recovery image looks like this:

fastboot flash recovery recovery.img
What is EDL mode (Emergency Download Mode)?

EDL mode is an emergency boot mode for Qualcomm processors, which allows you to flash the device even with a damaged bootloader. Entering it often requires disassembling the phone and closing special contacts on the board (Test Points), or using an authorized Xiaomi service account.

Step-by-step guide for installing the firmware

Let's look at the process using the example of using a utility that works with system images (using Fastboot or a similar tool as an example). After the drivers are installed, the phone is switched to firmware mode, and the files are unpacked into a separate folder, you can start. Make sure that the path to the folder with the firmware does not contain Cyrillic characters - this is a common cause of errors in old software.

Run the app as an administrator. In the utility interface you must specify the path to the firmware files. In SP Flash Tool you select a scatter file (MTxxxx_Android_scatter.txt), in Odin you load files into the appropriate slots (BL, AP, CP, CSC). In Fastboot mode, commands are executed sequentially. It is important to select the data wipe mode if you want a clean installation.

⚠️ Attention: When choosing the firmware mode, pay close attention to the formatting option. Mode Erase All + Download will completely erase the UserData section. If you select mode Download Only on a device with a different version of Android, the phone may go into a cyclic reboot (bootloop).

Press the “Start” or “Download” button in the app. Immediately after this, connect the switched off phone to the computer (or press the desired key combination if the app is waiting for a connection). The progress bar process should move forward. At this moment strictly prohibited unplug the cable, turn off the computer or press the buttons on the smartphone. Any interruption in the data flow can damage the partition table.

💡

A green bar or the message "Download OK" in the app is the only sure sign of successful completion of the firmware. Do not disconnect the cable until the app itself reports success.

After recording is completed, the indicator will turn green and the phone will automatically reboot. The first startup after reinstalling the system may take from 5 to 15 minutes. This is normal as the system optimizes applications and creates a cache. If the phone is stuck on the logo for more than 20 minutes, the firmware may be incompatible or the cache partition is damaged, which needs to be cleared via Recovery.

Possible errors and methods for eliminating them

Even experienced users encounter errors when flashing. One of the most common problems is a communication error with the device. If the app sees the phone, but the process does not start, try changing the USB port (it is better to use USB 2.0 ports on the back of the system unit), replace the cable, or reinstall the drivers in the device manager manually.

An error STATUS_CHECKSUM_ERROR or something similar indicates that the firmware file is damaged or is not suitable for this device revision. In this case, you need to download the archive with the firmware, checking the checksum (CRC), and make sure that you are using the file for your model, and not for a similar one. Sometimes reconnecting the phone in a different mode helps (for example, holding down another volume button).

If after flashing the phone turns on, but does not see the SIM card or Wi-Fi does not work, this is a sign of damage to the partition EFS or Persistwhere the calibration data of the radio modules is stored. You can restore them only from a backup copy (daim) made before flashing, or by searching and installing a special recovery file for your model through the engineering menu.

💡

Before starting work, make a dump (backup copy) of the EFS and Persist partitions using the fastboot command or the SP Flash Tool functions. This will save your IMEI and the operation of the wireless modules in the event of a failure.

Completing setup and data recovery

After successfully loading into the system, you will be greeted with the initial setup screen. At this stage, it is important not to rush to restore all data at once. First, check the basic functionality: the touch screen, speakers, microphone and cameras work. Make sure that the Android version in the settings matches the one you installed.

To return user data, use a Google backup or a local backup made earlier. However, it is not recommended to restore system settings and applications in bulk, as old configuration files may conflict with the new version of the OS, causing the same problems that caused you to flash the firmware. It's better to install applications again from the store Google Play.

The final step is to check for updates. Go to Settings → System → System update and check for new security patches. Often, stock firmware downloaded from the Internet has a version older than the current one, and they need to be updated “over the air” for banking applications and security services to work correctly.

Can I flash a phone if it doesn’t turn on?

Yes, this is possible if the fault is software. For MediaTek processors, the BROM mode is used, and for Qualcomm, the EDL mode is used (requires disassembly or a special cable). In these modes, the phone responds to PC commands even with a black screen, allowing you to write a new bootloader and system.

Will the firmware erase all my photos and contacts?

In 99% of cases, a complete flashing via a PC involves formatting the data partition. All photos, contacts and applications will be deleted. An exception is the “Save data” mode in some utilities, but it works unstable when changing Android versions.

What should you do if, after flashing the firmware, the phone writes “Device is corrupted”?

This message appears when the bootloader is unlocked, when the system cannot verify the digital signature. This usually doesn't affect performance, but it does interfere with the use of Android Pay. You can remove the inscription by downloading an image vbmeta.img with a flag to disable scanning via Fastboot.

Where can I find drivers for my rare Chinese smartphone?

Universal ADB and VCOM drivers are often suitable for most devices. They can be found as part of the SP Flash Tool utility or downloaded separately LibUSB. If the phone is detected as an “Unknown Device”, try manually specifying the path to the driver folder through Device Manager.

Is it dangerous to flash an international version of firmware on a Chinese phone?

There are risks. Chinese versions may have different memory layouts. Installing Global ROM on Chinese hardware (China ROM) often requires unlocking the bootloader and can lead to loss of NFC functionality or banking applications due to different security certificates.