Many users are faced with a situation where automatic system updates over the air (OTA) are unavailable, are interrupted halfway, or simply do not arrive on the device. In such cases updating the system via a computer becomes the only reliable way to get the latest version of the operating system. This method requires more preparation than the standard procedure, but gives full control over the process.
Using a PC allows you to bypass mobile network restrictions, restore the device after unsuccessful experiments, or install custom firmware. You will need not only the smartphone itself, but also a high-quality USB cable, as well as a basic understanding of the structure of Android files. ADB interface and Fastboot are the main tools that we will use for communication between the computer and the gadget.
Before you start active actions, it is important to understand the risks. Any intervention in the system partition carries a potential threat of data loss. Interrupting the firmware process at the stage of writing system files can turn the device into a โbrickโ that cannot be turned on without service equipment. Therefore, carefully study the theoretical part before connecting the cable.
โ ๏ธ Attention: Menu interfaces and item names can vary depending on the shell version (MIUI, OneUI, ColorOS) and Android version. If you do not find an exact match, look for semantic analogues in the settings of your device.
Before starting any manipulations, be sure to create a complete backup copy of contacts and photos to a cloud service or external drive.
Preparing the workplace and necessary files
The success of the operation depends 90% on the quality of preparation. You will need a stable computer running Windows, macOS or Linux. Windows most often requires driver installation, while macOS and Linux often work with Android out of the box, but may require configuration of permissions.
The USB cable must be original or certified, capable of transferring data, not just charging the battery. Cheap "charge only" cables will prevent the computer from seeing the device in debug mode. Also make sure that the device's charge is at least 60-70% to avoid sudden shutdown at a critical moment.
You will need specific software components to work. These are not just drivers, but entire sets of tools for developers. Download them only from official sources or trusted repositories to avoid malware.
- ๐ฑ ADB and Fastboot โplatform tools from Google required to send commands.
- ๐พ USB drivers โspecific to each manufacturer (Samsung, Xiaomi, Huawei, etc.).
- ๐ฆ Firmware file โsystem image in .zip, .img or manufacturer-specific format (for example, .tar for Samsung).
- ๐ USB cable โhigh-quality wire with minimal resistance.
Enabling developer mode and USB debugging
Without activating hidden settings, the computer will not be able to issue commands to the smartphone. The standard mode of operation of the phone hides these functions from the eyes of the average user for security reasons. You need to manually unlock access to the engineering menu.
The activation process is usually the same for most devices. Go to Settings, find the section About phone or About device. There you need to find the item Build number (Build Number). Click on it quickly 7 times in a row until a notification appears that you have become a developer.
After this, a new one will appear in the main settings menu section For developers. Inside it you need to find and activate the switch USB debugging. When you connect to a PC for the first time, a request to confirm the RSA key will appear on the phone screen - be sure to click โAllowโ and check the โAlways allow from this computerโ checkbox.
โ ๏ธ Attention: Do not leave debugging mode enabled all the time if you do not use a computer to control the phone. This reduces the level of security of the device when connected to public charging stations.
โ๏ธ Readiness check
Installing drivers and platform tools
The computer must correctly identify the connected device. Driver conflicts often occur in the Windows operating system. For universal work, it is best to use the official package Platform Tools from Google. It can be found on the Android Developers website.
After downloading the archive, unpack it to the root folder of the disk, for example, in C:\platform-tools. Deep nesting of folders can cause errors when entering commands in the console. For users of Samsung devices, it is critical to install the app Odin and Samsung USB Driver drivers, since standard Google tools may not recognize the Download Mode.
You can check the correct installation through the command line. Open a terminal in your tools folder and enter the ping command. If everything is done correctly, you will see the serial number of your device.
adb devices
The list should display a device with status device. If you see unauthorized, look at your phone screen and confirm access. If the device does not appear at all, the problem lies in the drivers or cable.
What to do if the drivers are not installed?
Try manually updating the driver in Windows Device Manager. Select the device with an exclamation mark, click "Update driver" -> "Select from the list of available drivers" -> "MTP USB Device" or "Android ADB Interface".
Updating through the manufacturers' official software
The safest method for the average user is to use proprietary utilities. Major brands create their own shells that automate the firmware process. This eliminates the human factor and errors when entering commands.
Different manufacturers have their own apps. For example, Samsung uses Smart Switch or Odin, Xiaomi โ Mi Flash Tool, Sony โ Xperia Companion, and Huawei uses HiSuite. These apps themselves will download the latest firmware from the servers and install it.
| Manufacturer | app | Connection mode | Saving data |
|---|---|---|---|
| Samsung | Odin / Smart Switch | Download Mode | Depends on the mode |
| Xiaomi | Mi Flash Tool | Fastboot | No (usually) |
| Sony | Xperia Companion | Flash Mode | Possible |
| Google Pixel | Android Flash Tool | Fastboot | No |
The process usually looks like this: you connect the switched off phone in a special mode (by holding down a certain combination of buttons), launch the app on the PC and press the "Start" or "Update" button. The computer itself will determine the model and offer available options.
Manual firmware via ADB and Fastboot
This method is intended for advanced users and owners of Google Pixel or Nexus devices, as well as for those whose phones are not supported by official software. You will need to download a system image (Factory Image) specifically for your model.
Firmware files are usually supplied in an archive containing scripts for Windows (.bat) or Linux/Mac (.sh). After unpacking the archive, you will find files flash-all.bat or similar. Running such a script will automatically put the phone into bootloader mode, clear data and install a new system.
If you want to update without losing data, the command will be different. However, it is worth remembering that when moving between major versions of Android (for example, from 11 to 12), data clearing is often required. The command for updating while saving data looks more complicated and requires flashing the partitions one by one.
fastboot flash boot boot.imgfastboot flash system system.img
fastboot reboot
It is important to monitor the output console. If the process stops at a certain percentage or gives an error FAILED, you cannot immediately pull out the cable. Analyze the error log: perhaps there is not enough space or the file is damaged.
โ ๏ธ Attention: The command
fastboot flashing unlockcompletely erases all data from the device for security purposes. Perform it only if you are ready for a complete reset.
Possible errors and ways to solve them
Even if you strictly follow the instructions, failures may occur. The most common problem is that the device is not detected by the computer in Fastboot mode. This can be solved by installing universal Google USB Drivers through the device manager.
Another common mistake is signature verification failed. This means that you are trying to install unofficial or modified firmware on a locked bootloader. In this case, you need to either unlock the bootloader (which will erase the data) or look for an official signed firmware.
If after the update the phone went into a cyclic reboot (bootloop), you will need to enter Recovery mode. There you need to reset the settings (Wipe data/factory reset). If this does not help, the firmware version may be incompatible with the hardware revision of your device.
- ๐ Connection error: Replace the USB port on the back of the PC or use a different cable.
- ๐ซ Signature error: Check whether the firmware region (CSC) matches the region of your device.
- ๐ Sudden shutdown: make sure that power saving mode is not set in the power supply settings of the USB ports.
What is EDL Mode?
Emergency Download Mode - mode deep firmware for Qualcomm. Entering it often requires disassembling the phone and short-circuiting the contacts on the board. Used only when other methods do not work.
Frequently asked questions (FAQ)
Will my data be erased when updating via a computer?
When using official apps like Samsung Smart Switch or Sony Xperia Companion, the data is usually saved. However, when using Fastboot commands or manual flashing via ADB, data is most often deleted. Always make a backup.
Is it possible to update a phone if it has custom Recovery (TWRP)?
Yes, but standard OTA updates may not work. You will have to download the full firmware image (ZIP) and install it via TWRP, having previously made a backup of the current system (Nandroid backup).
What to do if the computer does not see the phone at all?
Check the cable (it can only be a charger), try a different USB port, install drivers manually through Device Manager and make sure that access to data is allowed on the phone screen connection.
Is it dangerous to interrupt the firmware process?
Extremely dangerous. If you interrupt recording the system partition, the phone will stop booting. It will be possible to restore it only through deep firmware modes (Download Mode, EDL), if they are not blocked by the manufacturer.
Do you need to remove the SIM card and memory card before updating?
It is advisable to remove the memory card so that the system does not try to write temporary firmware files to it, which can cause errors. You can leave the SIM card, but in some rare cases it is also recommended to remove it.