Restoring a smartphone after a critical failure or installing a custom operating system often requires manual intervention. Standard over-the-air (OTA) updates may not work if the system bootloader partition is damaged or the device is in a bricked state. In such situations, the only correct solution is manual firmware through a personal computer.
This process is a complex technical procedure that erases all data from the internal memory of the device. Before taking active steps, you need to understand the risks: interrupting data recording can lead to complete inoperability of the gadget without the possibility of recovery. However, if you follow the security algorithm and have high-quality image files, you can bring your phone back to life or expand its functionality.
Next we will look at the preparatory stage, choosing the necessary software and the process of recording the system image itself. You will learn how the modes differ Download Mode and Fastboot, as well as how to correctly install drivers for a specific chipset.
Device preparation and backup
The first step is to fully prepare the workplace and the smartphone itself. You will need a stable PC running Windows, as most specialized firmware utilities are optimized for this platform. Using virtual machines or macOS is possible, but often involves problems recognizing ports.
Be sure to back up all important data: contacts, photos and documents. During the manual installation of a new system, the internal memory will be formatted. Save the files to external storage or cloud storage. Also make sure that the battery is charged at least 60-70%to avoid a sudden power outage during the critical recording phase.
To connect, use an original USB cable or a high-quality analogue with good shielding. Cheap cables often only provide charging but do not transmit data, which will result in a connection error with the computer. Check the integrity of the USB ports on both devices.
โ ๏ธ Attention: If the phone does not turn on at all, try connecting it to the charger for 30-60 minutes before starting the procedure. A deep battery discharge may prevent the initialization of firmware modes.
Activate USB debugging mode if the device still shows signs of life. This is done in the menu Settings โ For developers โ USB debugging. If the menu is hidden, tap 7 times on the build number in the About Phone section. This setting is necessary to work with debugging tools ADB.
โ๏ธ Ready for firmware
Search for official firmware and select tool
The quality and compatibility of the system image file is the key to success. Never use firmware from other models, even if they look similar. Differences in hardware, such as camera or display modules, may cause the touch screen to stop working or the camera to display a black screen.
You should look for files on the official websites of manufacturers or on trusted specialized resources, such as 4PDA or XDA Developers. Pay attention to the region of the version (CSC code), since the availability of pre-installed software and support for cellular frequency bands depends on this.
The choice of flashing app depends on the processor of your device:
- ๐ฑ For processors MediaTek use the SP Flash Tool utility.
- ๐ฑ For chips Qualcomm QFIL or QPST is used.
- ๐ฑ Devices Samsung are flashed via Odin.
- ๐ฑ Smartphones Xiaomi require Mi Flash Tool.
Where to download drivers?
Drivers are usually included with the flash tool or can be downloaded separately from the chipset manufacturer's website. For MediaTek, look for "MTK VCOM Drivers", for Qualcomm - "Qualcomm USB Driver".
After downloading the archive with the firmware, unpack it into a folder whose path does not contain Cyrillic characters. Some utilities do not correctly process Russian letters in the file path, which causes an initialization error.
Installing drivers and boot modes
The computer must correctly recognize the phone in a special service mode. This often requires the installation of specific drivers other than the standard MTP file transfer drivers. Without them, the firmware app simply will not see the connected device.
There are several main modes used for recovery:
- ๐ง Fastboot: bootloader mode for devices running pure Android and many custom firmwares.
- ๐ง Download Mode: a specific mode for Samsung devices and some other brands.
- ๐ง EDL (Emergency Download Mode): a deep recovery mode for Qualcomm, often requiring opening the case to close the contacts.
To enter Fastboot mode, you usually need to hold down the volume down button and the power button at the same time when the device is turned off. To enter Download Mode on Samsung, a combination of volume down, volume up, and connecting the cable to the PC is often used.
โ ๏ธ Attention: Interfaces and button combinations may vary depending on the model and version of Android. If standard combinations do not work, check the documentation specifically for your model on the developer forum.
Check driver installation through Windows Device Manager. When you connect the phone in service mode, a new device should appear, for example Android Bootloader Interface or MTK USB Port. If instead an โUnknown deviceโ with a yellow icon is displayed, the drivers are not installed correctly.
If the device manager does not show changes when you connect the phone, try a different USB port, preferably located directly on the motherboard (at the back of the system unit), and not on the front panel or through the hub.
Flashing process via SP Flash Tool (MediaTek)
The SP Flash Tool utility is a standard for working with MediaTek-based devices. It allows you to write partition images directly into memory, bypassing the operating system. This is a powerful tool that requires care when setting it up.
Run the app as an administrator. In the field Scatter-loading File you must specify the path to the file with the extension .txt, which is located in the folder with the unpacked firmware. This file contains the memory map and partition addresses.
In the drop-down list of modes, select Download Onlyif you are just updating the system, or Firmware Upgrade for a complete rewrite. Mode Format All + Download use only in extreme cases, as it can overwrite IMEI and other unique device identifiers, which will lead to loss of connection.
| Operation mode | Description of action | Risk of data loss |
|---|---|---|
| Download Only | Write only to specified partitions | Low (data may be saved) |
| Firmware Upgrade | Full overwrite of system partitions | High (full formatting) |
| Format All + Download | Full formatting of all memory | Critical (possible loss of IMEI) |
After setting, press the button Download and connect the switched off phone to the computer. If the device is not detected automatically, you may need to hold down the volume button (plus or minus) when connecting the cable. The process will go automatically and a progress bar will appear.
It is critical not to select the "Format All" mode without first saving the NVRAM file, otherwise you will lose the ability to make calls due to the loss of IMEI.
Using Fastboot for pure Android
For devices based on Qualcomm processors or pure Android is often used Fastboot command line interface. This method gives maximum control over the process, but requires entering specific commands manually.
Open a command line in the folder where the firmware files and utility are located fastboot.exe. First, check the device connection with the command fastboot devices. If the serial number is displayed in response, the connection is established correctly.
The firmware process consists of sequential recording of partition images. The commands are entered one at a time, waiting for each to complete:
fastboot flash boot boot.imgfastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash userdata userdata.img
After recording all the necessary images, you need to unlock the bootloader (if this has not already been done) or lock it back, depending on your goals. The process ends with a command fastboot rebootthat will reboot the device into a new system.
It is important to follow the strict order of commands specified in the instructions for the specific firmware. Skipping the partition writing step vendor or dtbo may lead to a cyclic reboot (bootloop).
Possible errors and methods for eliminating them
Even with careful preparation, failures may occur. The most common error is PMB_INIT_FAIL or similar initialization messages. This often indicates a driver or cable problem. Try reinstalling the VCOM drivers or switching the USB port.
Error S_BROM_STARTCMD_FAIL in SP Flash Tool may mean that the phone has not entered the correct mode. Try removing the battery (if possible), wait a few seconds and connect the cable while holding the volume button.
โ ๏ธ Attention: If the firmware process is stuck at a certain percentage (for example, 98%) and does not move for more than 10 minutes, do not rush to disconnect the cable. Some stages of signature verification may take a long time.
If an error occurs Status Fail when trying to write a partition userdata, try unchecking the box next to this partition in the list of firmware files. Sometimes damage to this partition blocks the entire process, but the system can be recorded without it by resetting the data after the first boot.
If the phone goes into an endless reboot after flashing the firmware, try entering Recovery mode (usually by holding down the power and volume up buttons) and follow the step Wipe data/factory reset. This will clear the cache of the old system, which may conflict with the new one.
Frequently asked questions (FAQ)
Is it possible to flash a phone if it does not turn on?
Yes, this is possible if the hardware is working. It is necessary to switch the device to Download, Fastboot or EDL mode using a combination of buttons or short circuiting test points on the board, and then submit the system image via a computer.
Will information be erased during manual firmware?
In 99% of cases, yes. Manual firmware involves formatting memory partitions. The exception is the "Download Only" mode in some utilities, but you shouldn't count on the safety of data when restoring a non-working phone.
What is a "brick" and can it be revived?
"Brick" is the state of the phone when it does not respond to presses and does not load the OS. Soft brick can be treated by flashing firmware via Recovery or Fastboot. A hard brick, when even the bootloader does not work, requires firmware through deep service modes (EDL) or resoldering of the memory chip.
Do I need to unlock the bootloader for firmware?
To install custom firmware (LineageOS, Pixel Experience), unlocking the bootloader (Unlock Bootloader) is required. To install official stock firmware, unlocking is usually not required, and sometimes even interferes with the process.
Is it dangerous to flash a phone yourself?
The process carries risks. An error in selecting a file or a power interruption can damage the device. However, if you follow the instructions and use verified files, the risk is minimal, and the benefit in the form of a revived device is great.