The situation when a smartphone stops loading or works with critical errors often requires radical measures. One of the most reliable ways to restore the functionality of a device is to manually install the operating system via external storage. This method is indispensable when a standard over-the-air update is impossible due to damage to system files or lack of access to the Internet. Android firmware via a memory card allows you to bring the gadget back to life even in difficult cases when other methods are powerless.
However, this process requires careful preparation and an understanding of the risks. Incorrect actions can lead to complete inoperability of the device, the so-called โbrickโ. In this article we will analyze in detail the algorithm of actions, the necessary tools and pitfalls that you may encounter. You will learn how to prepare microSD a drive, where to find safe firmware files and how to correctly enter recovery mode.
It is worth noting that this method is universal for most devices based on Android, but has its own nuances for different manufacturers. Whether it Samsung, Xiaomi or Google Pixel, the principle of working with external media in Recovery remains similar. The main thing is to strictly follow the instructions and make sure that the selected system image is compatible with your phone model.
Preparing equipment and selecting firmware
The first step is to find the correct firmware file. An error at this stage can be fatal, since installing an image from a different model or revision of the device is guaranteed to disable it. You need to find a file with the extension .zip, which is intended specifically for your smartphone. The source should be official developer forums or trusted resources like 4PDA or XDA Developers.
It is extremely important to check the integrity of the downloaded archive. Often, firmware files are accompanied by checksums MD5 or SHA-1. Comparing the hash sums of the downloaded file with the data specified on the developerโs website will protect you from installing a damaged image. If the amounts do not match, the download was unsuccessful and you cannot use such a file.
โ ๏ธ Attention: Never use firmware from other models, even if they look similar. Differences in drivers and memory layout can lead to irreversible damage to the hardware.
In addition to the system file, you will need a working memory card format microSD. It is desirable that its volume be at least 4-8 GB, and the recording speed corresponds to class 10 or higher. Slow cards may cause errors when unpacking the archive during the installation process. Before you start, format the drive into a file system FAT32, since the standard recovery menu often does not support modern formats like exFAT or NTFS.
Use a high-quality card reader to copy files to the card. Cheap adapters may corrupt data when writing, which will result in a file signature verification error during installation.
Tools for modified recovery
Standard recovery menu (Stock Recovery), installed on most smartphones, has limited functionality. It often does not allow you to install firmware files that are not signed by the manufacturer. Successful manual installation of the system usually requires a custom recovery, such as TWRP (Team Win Recovery Project) or CWM.
Installing a custom recovery is a separate process that usually requires unlocking the bootloader (Bootloader). Without an unlocked bootloader, you will not be able to write a new recovery image to the corresponding partition of the device's memory. On smartphones Xiaomi this requires an official utility and waiting for several days, and on Samsung mode Download Mode and app Odin.
| Type Recovery | Features | Installation complexity | Security |
|---|---|---|---|
| Stock Recovery | Reset settings, OTA update | None (factory) | High |
| TWRP | Installing ZIP, backups, cleaning partitions | Average | Average |
| CWM | Basic installation, wipes | High (outdated) | Average |
If your device already has it installed TWRP, the process is greatly simplified. Otherwise, you will have to first find instructions for installing recovery specifically for your model. Sometimes manufacturers release official tools for flashing firmware via PC, which can also record the desired recovery image.
The process of copying files to the drive
After preparing all the components, you need to transfer the firmware file to the memory card. Connect microSD to the computer via a card reader. Copy the archive with the firmware to the root directory of the card or to a specially created folder, for example ROMs. Do not place the file deep in the folder structure to make it easier to find through the recovery interface.
Make sure that the copying process is completed correctly. Remove the memory card using Safe Eject in your computer's operating system. This will prevent damage to the drive's file system. Insert the card back into the switched off smartphone before starting the boot procedure into recovery mode.
Some users prefer to use the internal memory if the phone turns on and is detected by the computer. However, if there is a major system failure, access to internal storage from recovery mode may be difficult due to data encryption. A memory card is a more secure option in this regard, since it is not encrypted with the system.
โ ๏ธ Attention: Make sure the phone is completely turned off before removing or inserting the memory card. Hot swapping can damage the slot contacts or the drive itself.
Boot into Recovery mode and navigation
To start the firmware process, you need to put the smartphone in a special mode. The key combination for this varies from manufacturer to manufacturer. The most common use is to hold down the power button and the volume down (Volume Down) or volume up (Volume Up) button. Devices Samsung often require simultaneous pressing of three buttons: power, volume up and the Home button (if there is one).
As soon as you see the manufacturer's logo or the recovery menu, release the buttons. The menu TWRP is controlled via a touch screen, which is much more convenient. In stock recovery, navigation is done using the volume buttons (up and down), and the selection is confirmed with the power button. You need to find the item responsible for installing updates.
In TWRP this section is called Install. In the stock menu it may be called Apply update from SD card or Apply update from ADB. Select the desired item to proceed to file selection. Navigating the file system in recovery is simple: look for the name of your archive with the firmware.
What to do if the menu does not appear?
If the phone just turns on as usual, try changing the button combination. Sometimes it helps to connect the device with a cable to a switched off computer before pressing the buttons. Also make sure that the battery is charged at least 50%.
Clearing data before installing the system
Before directly installing new firmware, it is strongly recommended to clear old data. This prevents file conflicts between the old and new system, which often cause cyclic reboots or application errors. In the environment TWRP this process is called Wipe.
You will need to clean up the Dalvik / ART Cache, Cache, Data and Systempartitions. Please note that wiping the partition Data will delete all your personal files, photos and contacts from the phoneโs internal memory. Therefore, it is important to have a backup copy of important data before starting the procedure.
- ๐งน Go to section
Wipein the recovery menu. - ๐ Press
Advanced Wipeto manually select partitions. - โ
Check the boxes
Dalvik,Cache,DataandSystem. - ๐ Swipe the slider to confirm cleaning.
Some firmware require format Data to another file system, for example, with EXT4 to F2FS to increase work speed. This is done in the section Format Datawhere you need to enter the word yes to confirm. Be extremely careful: this operation irreversibly deletes all data, including internal memory.
โ ๏ธ Attention: The Data format operation also deletes files on the internal SD card (emulator). Make sure that all important documents are saved on external storage or in the cloud.
โ๏ธ Preparing for cleaning
Direct installation of firmware (Flash)
After successfully cleaning the partitions, you can proceed to the main part of the procedure. Return to the main menu and select Install (in TWRP) or Apply update from SD card. Find the previously copied archive with the firmware and select it. The system will ask you to confirm the action by swiping or pressing a button.
The process of unpacking and writing files to the phone memory will begin. The screen will display a progress bar and a log of performed operations. Watch the process carefully. If you see red lines with an error message (for example Error 7 or Status 7), this means that the firmware is incompatible or the file is damaged. There is no need to interrupt the process at this moment, it will stop itself.
Installation time depends on the size of the firmware and the speed of the memory card. This usually takes from 3 to 10 minutes. Do not touch the device or try to turn it off during this time. Once completed, you will see a message Successful or similar notification of success.
Completing installation and first launch
After installation is complete, you will have two options. The first is to immediately reboot the system by pressing the Reboot Systembutton. The second is to install additional components, such as if you flashed a clean one or one. In this case, without rebooting, install the archive with Google Apps (GApps), if you flashed a clean one LineageOS or AOSP. In this case, without rebooting, install the archive with GApps in the same way as the main firmware.
Also at this stage it is recommended to install a patch to obtain root access (for example, Magisk), if this is included in your plans. The installation is carried out in the same way: through the menu Install select the ZIP archive with the patch. Only after installing all the necessary components should you reboot.
The first startup after the firmware will be lengthy. You will see a loading animation that may freeze on the logo for a few minutes. This is normal as the system tunes the runtime environment and optimizes applications. Wait until the welcome screen appears.
Successful loading of the desktop means that the firmware was successfully installed. Now you can set up accounts and restore data from a backup.
Possible errors and methods for solving them
Even if you follow all the instructions, unforeseen situations may arise. One of the most common problems is an error in mounting partitions. This may occur due to a file system failure. The solution is to reformat the partition Data and clean Cache.
Another common problem is Bootloop (cyclic reboot). If the phone constantly reboots and does not reach the desktop, try going into recovery and doing Wipe Data/Factory Reset. If this does not help, perhaps the firmware version is not suitable for your device revision, and you will have to look for another image.
If the phone does not respond to buttons at all and does not turn on (black screen), the bootloader may be damaged. Here, only flashing through a computer using modes Fastboot or Download Mode and official utilities from the manufacturer will help. A memory card in this state will no longer help.
Is it possible to flash a phone without unlocking the bootloader?
No, to install custom firmware via a memory card, unlocking the bootloader is required. The stock bootloader checks the digital signature of the system and will not allow you to install an unofficial image. However, you can try installing the official firmware via stock recovery if the file is signed by the manufacturer.
What to do if TWRP does not see the memory card?
Make sure the card is formatted in FAT32. Try inserting the card before turning on the phone. Also check if memory card encryption is enabled in the Android settings (if the phone somehow boots), since the recovery will not be able to read the encrypted media without entering a password.
Will the IMEI be erased after the firmware?
If the firmware is installed correctly via Recovery, the EFS partition (where the IMEI is stored) is not affected. However, if you accidentally format this partition or flash an incompatible modem, the IMEI may go off. Always make a backup of the EFS partition before any manipulations.
How to return stock firmware?
To return to the factory state, it is better to use official utilities on the PC (Odin for Samsung, Mi Flash for Xiaomi, SP Flash Tool for MediaTek). Flashing a stock image via a memory card is only possible if you have access to the official Recovery and a signed ZIP update file.