Flashing a smartphone via a PC is a procedure that requires care and understanding of the processes. Many users resort to it to update an outdated version, restore functionality after a failure, or install custom firmware with advanced functions. However Android, restore functionality after a failure or install custom firmware with advanced functions. However wrong actions can turn the device into a "brick", so it is important to follow proven instructions and use official tools.

Modern manufacturers - Samsung, Xiaomi, Google - offer their own utilities for flashing, but universal methods through ADB, Fastboot or apps like SP Flash Tool remain relevant. In this article we will analyze all the stages: from preparing drivers to solving common errors. Firmware via PC allows you to bypass the limitations of OTA updates and bring devices with a damaged system back to life, but requires unlocking the bootloader on most models.

โ•โ•โ•

1. Preparing the device and PC: what needs to be done before flashing

Before starting flashing, you need to perform several critical steps to minimize risks. First - create a backup copy all data. The firmware erases the device's internal memory, so photos, contacts and applications will be lost. Use Google Account for synchronization or a app like Titanium Backup (requires root access).

The second is to check the battery charge. The level must be at least 60-70%to avoid shutdown during the process. Also make sure that the latest drivers for your device are installed on your PC. For Samsung this Samsung USB Driver, for Xiaomi โ€” Mi PC Suite, and for universal chipsets (for example, Mediatek) โ€” MTK USB Driver.

  • ๐Ÿ”‹ Battery charge: minimum 60%, better 80%+
  • ๐Ÿ’พ Backup: contacts, SMS, media files, application settings
  • ๐Ÿ–ฅ๏ธ Drivers: official for your model or universal (ADB/Fastboot)
  • ๐Ÿ”— Cable: original USB cable (do not use cheap analogues!)

The third step is unlocking the bootloader (bootloader). On most devices, it is blocked by default. For Xiaomi this is done through Mi Unlock Tool, for Google Pixel โ€”by the command fastboot flashing unlockU Samsung unlocking is possible only through the Odin Mode (not to be confused with Download Mode!).

๐Ÿ’ก

If your device is not detected by the PC, try connecting it to another USB port (preferably 2.0) or disabling USB debugging mode and turning it on again.

2. Selecting firmware: official vs custom

Firmware is divided into two type: official (from the manufacturer) and custom (developed by the community). The former guarantee stability and support for all functions, but may contain unnecessary software (bloatware). The latter, such as LineageOS or Pixel Experience, offer "pure" Android, but require manual installation and sometimes lack some features (for example, Samsung DeX or Miui Camera).

Where to download?

When choosing firmware, pay attention to:

  • ๐Ÿ”  Android version (for example, Android 14 vs Android 13)
  • ๐Ÿ“… Build date (current firmware is updated every 1-2 months)
  • ๐Ÿ“Œ Region (for example, Global, EU, China โ€”the preinstalled ones depend on this services)
๐Ÿ“Š Which firmware do you prefer?
Official (from the manufacturer)
Custom (LineageOS, Pixel Experience)
I donโ€™t know what to choose
I tried both, but returned to the official
โš ๏ธ Attention: Installing custom firmware may lead to loss of warranty and unstable operation of modules (NFC, camera, sensors). Before installation, check reviews from users of your model on the forums.

3. Tools for firmware: review of apps

The choice of app depends on the processor of your device and the purpose. Below is a comparison table of popular tools:

app Supported chipsets Firmware type Complexity Notes
Odin Samsung Exynos, Qualcomm (for Samsung) Official, custom (via TWRP) Average Requires files in the format .tar.md5
SP Flash Tool Mediatek (MTK) Official, custom High Supports firmware in parts (scatter-file)
Fastboot Any (via command line) Official, custom High Requires an unlocked bootloader
Mi Flash Tool Xiaomi (Qualcomm) Official Low Automatically selects the firmware version
QFil Qualcomm Official (for recovery) Medium Used for "bricked" devices

For most users Samsung the optimal choice will be Odin, owners Xiaomi โ€” Mi Flash Tool, and for devices on Mediatek โ€” SP Flash Tool. If you plan to install custom firmware, you will also need TWRP Recovery (alternative recovery menu).

Example command for flashing firmware via Fastboot:

fastboot flash boot boot.img

fastboot flash system system.img

fastboot reboot

What is TWRP and why do you need it?

TWRP (Team Win Recovery Project) is a custom recovery menu, which allows you to install firmware, create backups and restore data. It replaces the standard recovery from the manufacturer and requires an unlocked bootloader. Without TWRP, installing most custom firmware is impossible.

4. Step-by-step guide: firmware via Fastboot

Consider the universal method of flashing via Fastboot, which is suitable for most devices on Qualcomm (including Google Pixel, OnePlus, Xiaomi with Snapdragon processors).

Step 1: Installing ADB and Fastboot

  • Download Platform Tools from Google.
  • Extract the archive to the root of the disk C:\platform-tools\.
  • Add the folder path to the Windows environment variables (or use the command line from this folders).

Step 2: Connecting the device

  • Enable Developer mode (click on Build number 7 times in the phone settings).
  • Activate USB debugging in the developer menu.
  • Connect your phone to the PC and confirm permission to debug.

Step 3: Unlocking the bootloader

adb reboot bootloader

fastboot flashing unlock

On the phone screen, confirm unlocking (using the volume + power buttons). This operation will reset all data on the device!

Step 4: Firmware

  • Place the firmware files (boot.img, system.img etc.) in a folder platform-tools.
  • Run the commands one by one (example for Pixel Experience):
fastboot flash boot boot.img

fastboot flash system system.img

fastboot flash vendor vendor.img

fastboot reboot

- ADB/Fastboot installed

- USB debugging allowed

- Bootloader unlocked

- Firmware files in the platform-tools folder

- The battery is 70% charged+-->

โš ๏ธ Attention: If after flashing the device is frozen at the logo, try resetting the cache via recovery (fastboot reboot recovery โ†’ Wipe CacheIf this does not help, re-flash the system with data clearing (fastboot -w).

5. Firmware via Odin (for Samsung)

Odin is an official tool for flashing devices Samsung, but is not publicly distributed by the company. It can be downloaded from trusted resources (for example, OdinDownloadFirmware via Odin is suitable for recovering from a failure or updating to a new one). version One UI.

Instructions:

  1. Download the firmware in format .tar.md5 (for example, with SamFW).
  2. Unpack Odin and run Odin3.exe as administrator.
  3. Turn off the phone and switch it to Download Mode: press Volume down + Power + Bixby (for new models) or Volume down + Power + Home (for old ones).
  4. Connect your phone to the PC. Odin a message should appear Added!!.
  5. Press AP and select the firmware file. The remaining fields (BL, CP, CSC) will be filled in automatically if the firmware is multi-component.
  6. Uncheck Auto Reboot (this will help avoid getting stuck on the logo).
  7. Click Start and wait for completion (green text PASS!).

After flashing the firmware, manually reboot the phone by pressing Volume down + Power for 10 seconds, then release and wait for normal loading. If the device does not turn on, repeat the firmware with complete cleaning (CSC instead HOME_CSC).

๐Ÿ’ก

When flashing via Odin, never interrupt the process or disconnect the cable - this may damage the partition EFS (IMEI, serial number).

6. typical errors when flashing

Even if you strictly follow the instructions, errors may occur. Let's consider the most common ones and how to eliminate them:

Error Cause Solution
FAIL! (Auth) c Odin Incompatible firmware version or locked bootloader Check the device model and firmware version. For new ones Samsung a patch may be required VBMeta.
device not found in ADB Missing drivers or USB debugging is not enabled Install the drivers, reconnect the cable, check the developer settings.
Stuck on the logo after flashing Kernel conflict or uncleaned cache Boot into recovery and run Wipe Cache or Factory Reset.
BROM ERROR: S_FT_ENABLE_DRAM_FAIL in SP Flash Tool Incorrect scatter-file or damaged firmware Download the firmware again and check the model compliance.
fastboot: error: Failed to lock device: unknown error The bootloader is not unlocked or the drivers are not installed Repeat unlock the bootloader or update the drivers via Zadig.

If the device does not respond to buttons and is not detected by the PC, try hard reset:

  • For Samsung: Volume up + Power + Bixby (10 seconds).
  • For Xiaomi: Volume up + Power (before vibration).
  • For Google Pixel: Volume down + Power (go to Fastboot, then select Recovery Mode).
โš ๏ธ Attention: If after the firmware the network is lost (no IMEI), the partition is most likely damaged. EFS. You can restore it only through a backup copy or a service center. Do not use apps like ChimeraTool without understanding the process - this may aggravate the problem.

7. Firmware of devices on Mediatek (SP Flash Tool)

Devices with processors Mediatek (many models Xiaomi Redmi, Realme, Tecno) are flashed via SP Flash Tool. This tool requires a file scatter.txtthat describes the device's memory structure.

Step-by-step guide:

  1. Download the firmware in format .zip and unpack it. The archive should contain a file MTxxxx_Android_scatter.txt (where xxxx is the chipset model).
  2. Run SP Flash Tool and click Choose in the field Scatter-loading File. Select scatter.txt.
  3. In the list below, check all sections (or only those that need to be flashed, for example, system and boot).
  4. Turn off the phone, connect it to the PC (without the battery, if it is removable).
  5. Click Download in SP Flash Tool. The firmware will start automatically.
  6. When finished, turn off the device, insert the battery (if removed) and turn it on.

Features of firmware via SP Flash Tool:

  • ๐Ÿ”ง Supports firmware in parts (you can flash only recovery or boot).
  • ๐Ÿ”„ Allows you to restore a device even with a damaged bootloader.
  • โš ๏ธ If incorrectly scatter-file may damage NAND-memory.

If SP Flash Tool gives an error PMT changed for the ROM, this means that the firmware is not compatible with your model. In this case:

  1. Check the exact model name in Settings โ†’ About phone.
  2. Download the firmware specifically for your revision (for example, Redmi Note 10 Pro may have options sweet and sweetin).

8. After firmware: first steps and optimization

After successful firmware, the device will boot in a โ€œcleanโ€ state. First steps:

  1. System setup: Go through the initial configuration (selecting a language, connecting to Wi-Fi, logging in Google Account).
  2. Checking functions: Make sure the network, camera, sensors are working, NFC (if yes).
  3. Software update: For official firmware, check for OTA updates in Settings โ†’ System โ†’ Software update.
  4. Data recovery: If done backup via Titanium Backup or Swift Backup, restore applications and settings.

For custom firmware it is recommended:

  • ๐Ÿ”’ Install Magisk to obtain root access (if necessary).
  • ๐Ÿ›ก๏ธ Configure Firewall (for example, AFWall+) to block unnecessary connections.
  • โšก Disable unnecessary services via ADB:
    adb shell pm uninstall --user 0 com.android.browser

    (example for removing the standard browser).

If after flashing the device the device begins to discharge faster, check:

  • ๐Ÿ”‹ Background activity of applications in Settings โ†’ Battery.
  • ๐Ÿ“ก Network operating mode (switch from 5G to 4Gif the signal is weak).
  • ๐Ÿ”„ Availability of updates for the kernel or firmware (on Forums XDA patches are often posted).
๐Ÿ’ก

After flashing custom firmware, be sure to check the operation SafetyNet (via the app SafetyNet Test). If the test fails, banking applications and Google Pay may not work.

โ•โ•โ•

FAQ: Frequently asked questions about Android firmware via PC

Is it possible to flash a phone without unlocking the bootloader?

No, to install custom firmware or modified recovery (TWRP) bootloader must be unlocked. The exception is official firmware through service utilities (for example, Odin for Samsung or Mi Flash Tool for Xiaomi), but even in this case, some models require unlocking.

What to do if after the firmware there is no network (IMEI disappears)?

This means that the partition is damaged EFS or NV-data. You can restore it:

  1. Through a backup copy (if you made a backup EFS before the firmware).
  2. Using service apps (for example, Maui META for Mediatek or QCN Rebuilder for Qualcomm).
  3. Contact the service center (if you have no experience with low-level tools).

โš ๏ธ Do not use apps for โ€œIMEI repairโ€ from unverified sources - this may lead to a complete loss of connection.

How to return the official firmware after custom?

To return to stock firmware:

  1. Download the official firmware for your model.
  2. Flash it via Fastboot (for Qualcomm) or Odin/SP Flash Tool (for other chipsets).
  3. If necessary, lock the bootloader with the command fastboot flashing lock (for Google Pixel and some Xiaomi).

Please note that locking the bootloader will also reset all data!

Is it possible to flash a phone with a damaged screen?

Yes, but it is more difficult Options:

  • Use ADB to control via. PC (if debugging was enabled previously).
  • Connect the mouse via OTG adapter (works on some devices).
  • Flash via Fastboot or Odin blind (if the screen responds to touches, but does not display an image).

If the screen is completely inoperative, you may need to disassemble the device to connect to UART (for experienced users).

What firmware supports Google Pay and banking applications?

Banking applications (for example, SberBank Online, Tinkoffand Google Pay require passing SafetyNet. This works on:

  • Official firmware (without modifications).
  • Custom firmware with support MagiskHide (for example, LineageOS + Magisk + module Universal SafetyNet Fix).

Check the status SafetyNet through the app SafetyNet Test. If the test fails, try:

  1. Disable Magisk (in the application settings).
  2. Install module Universal SafetyNet Fix.
  3. Hide root via MagiskHide Props Config.