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?
- ๐ฑ Official firmware:
- Samsung: SamFW or SamMobile
- Xiaomi: Miui Download
- Google Pixel: Google Factory Images
- ๐ ๏ธ Custom firmware:
- LineageOS (support for a wide list of devices)
- Pixel Experience (interface like on Google Pixel)
- XDA Developers (firmware for specific models)
When choosing firmware, pay attention to:
- ๐ Android version (for example,
Android 14vsAndroid 13) - ๐ Build date (current firmware is updated every 1-2 months)
- ๐ Region (for example,
Global,EU,Chinaโthe preinstalled ones depend on this services)
โ ๏ธ 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.imgfastboot 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 onBuild number7 times in the phone settings). - Activate
USB debuggingin 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.imgetc.) in a folderplatform-tools. - Run the commands one by one (example for Pixel Experience):
fastboot flash boot boot.imgfastboot 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:
- Download the firmware in format
.tar.md5(for example, with SamFW). - Unpack Odin and run
Odin3.exeas administrator. - Turn off the phone and switch it to
Download Mode: pressVolume down + Power + Bixby(for new models) orVolume down + Power + Home(for old ones). - Connect your phone to the PC. Odin a message should appear
Added!!. - Press
APand select the firmware file. The remaining fields (BL,CP,CSC) will be filled in automatically if the firmware is multi-component. - Uncheck
Auto Reboot(this will help avoid getting stuck on the logo). - Click
Startand wait for completion (green textPASS!).
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 toFastboot, then selectRecovery 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:
- Download the firmware in format
.zipand unpack it. The archive should contain a fileMTxxxx_Android_scatter.txt(wherexxxxis the chipset model). - Run SP Flash Tool and click
Choosein the fieldScatter-loading File. Selectscatter.txt. - In the list below, check all sections (or only those that need to be flashed, for example,
systemandboot). - Turn off the phone, connect it to the PC (without the battery, if it is removable).
- Click
Downloadin SP Flash Tool. The firmware will start automatically. - 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
recoveryorboot). - ๐ Allows you to restore a device even with a damaged bootloader.
- โ ๏ธ If incorrectly
scatter-filemay damageNAND-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:
- Check the exact model name in
Settings โ About phone. - Download the firmware specifically for your revision (for example, Redmi Note 10 Pro may have options
sweetandsweetin).
8. After firmware: first steps and optimization
After successful firmware, the device will boot in a โcleanโ state. First steps:
- System setup: Go through the initial configuration (selecting a language, connecting to Wi-Fi, logging in Google Account).
- Checking functions: Make sure the network, camera, sensors are working, NFC (if yes).
- Software update: For official firmware, check for OTA updates in
Settings โ System โ Software update. - 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
5Gto4Gif 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:
- Through a backup copy (if you made a backup
EFSbefore the firmware). - Using service apps (for example, Maui META for Mediatek or QCN Rebuilder for Qualcomm).
- 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:
- Download the official firmware for your model.
- Flash it via
Fastboot(for Qualcomm) or Odin/SP Flash Tool (for other chipsets). - 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
ADBto control via. PC (if debugging was enabled previously). - Connect the mouse via OTG adapter (works on some devices).
- Flash via
Fastbootor 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:
- Disable Magisk (in the application settings).
- Install module
Universal SafetyNet Fix. - Hide root via MagiskHide Props Config.