Installation or flashing Android via a USB drive is one of the most reliable ways to bring a bricked smartphone back to life, update a TV box or install custom firmware on a tablet. Unlike updating over the air (OTA), this method gives complete control over the process, allows you to select any OS version and bypass manufacturer restrictions. But errors at the stage of preparing a flash drive can lead to fatal consequences: from data loss to complete inoperability of the device.
In this article you will find step-by-step guide for different scenarios: creating an installation flash drive for smartphones on Qualcomm or Mediatek, firmware Android TVboxes, as well as solutions to typical problems such as signature verification errors or disk layout incompatibility. We will analyze both official tools (SP Flash Tool, QFil) and universal utilities (Rufus, BalenaEtcher), and also explain why using USB 2.0 instead of 3.0 can save you from the "eternal bootloop".
1. Preparation: what you will need to create an installation flash drive
Before you start recording the image, make sure that you have everything you need. The absence of at least one component may make the process impossible or lead to errors.
- ๐ฑ Target device: smartphone, tablet or TV box with an unlocked bootloader (bootloader). For most brands (Xiaomi, Samsung, Nokia) an official unlock is required.
- ๐พ USB drive: flash drive with a capacity of 4 GB (for pure Android) to 32 GB (for firmware with GApps). It is recommended to use USB 2.0 โthey are better compatible with outdated bootloaders.
- ๐ฅ๏ธ Computer running Windows 10/11 or Linux (drivers will be required for some tools).MacOS supported limited.
- ๐ Firmware: official image (stock ROM) or custom firmware (LineageOS, Pixel Experience etc.) in format
.zipor.img. - ๐ง Tools: recording app (Rufus, BalenaEtcher) and, if necessary, proprietary utilities (Odine for Samsung, SP Flash Tool for Mediatek).
Pay special attention to the choice of flash drive. Cheap drives without a controller often cause read errors during flashing. Before use, format it in FAT32 (for most devices) or exFAT (if the image weighs more than 4 GB). Do not use flash drives with NTFS - many Android bootloaders do not. do not support.
โ ๏ธ Attention: If you are flashing a device with locked bootloader (locked bootloader), the installation flash drive will not help - you first need to officially unlock it through the manufacturer's service (for example, Mi Unlock for Xiaomian attempt to flash a locked device will lead to). error Secure Boot Error.
2. Selecting firmware: official vs custom
Not only the functionality of the device depends on the type of firmware, but also the method of creating the installation flash drive. Let's look at the key differences:
| Criteria | Official firmware (Stock ROM) | Custom firmware (Custom ROM) |
|---|---|---|
| Source | Manufacturer's website (Samsung, Xiaomi, Realme etc.) | Forum XDA Developers, 4PDA, project sites (LineageOS) |
| File format | .tar, .md5 (for Odine), .zip (for Fastboot) |
.zip (for recovery), .img (for fastboot) |
| Required unlocking bootloader? | No (but may be required to downgrade the version) | Yes, required |
| Support for OTA updates | Yes | More often no (needs to be updated manually) |
| Risk of "scrapping" | Low (if the version is compatible with the model) | Medium (depending on the build quality) |
For beginners, it is recommended to start with official firmware - they are easier to install and have a minimal risk of errors. Custom firmware (Custom ROM) provide access to new functions (for example, Android 14 on older devices), but require experience. Pay attention to the version bootloader: if it is newer than the firmware, the device will not boot.
Where to download the firmware:
- ๐ฑ Official: brand support sites (Samsung โ
sammobile.com, Xiaomi โen.miui.com). - ๐ง Custom: XDA Developers (look for the theme of your model), 4PDA (section "Firmware").
- ๐ ๏ธ For TV boxes: forums Freaktab or websites of chip manufacturers (Amlogic, Rockchip).
Before downloading the firmware, check its hash sum (MD5 or SHA-1) using the utility HashMyFiles. This will protect you from damaged or fake files.
3. Preparing a flash drive: formatting and markup
Incorrect formatting is one of the the main reasons for errors during flashing. Even if the flash drive is new, it must be prepared in advance.
Step 1: Selecting a file system
Most devices on Android require a flash drive in the format FAT32However, this format has a limitation: it does not support files larger than . 4 GB. If your firmware weighs more (for example, with Google Apps), there are two options:
- ๐น Split the firmware into parts (not all devices support).
- ๐น Use
exFAT(supported by modern devices on Android 9+).
Step 2: Formatting
Use the built-in OS tools or utility SD Formatter (for memory cards). Important:
- Select full formatting (not fast!).
- Specify the cluster size
4096 bytes(optimal for Android). - Disable the option
Compression(if any).
For Linux use the command:
sudo mkfs.vfat -F32 -I /dev/sdX
(replace sdX with your disk, for example sdb).
Step 3: Checking for errors
After formatting, check the flash drive for bad sectors:
- ๐ช B Windows:
chkdsk X: /f(whereXis the drive letter). - ๐ง Q Linux:
fsck /dev/sdX1.
โ ๏ธ Attention: If you are using a flash drive with a capacity of more than 32 GB, some older devices (for example Android TV boxes on Rockchip RK3229) may not see it. In this case, try a flash drive of 16 GB or less.
โ๏ธ Preparing a flash drive for firmware
4. Creating an installation flash drive: step-by-step guide
The recording method depends on the type of firmware and the target device. Let's consider the three most common scenarios.
Method 1: Firmware via Fastboot (for devices with an unlocked bootloader)
Suitable for most smartphones on Qualcomm Snapdragon (Xiaomi, OnePlus, Google Pixel etc.).
- Download Platform Tools: official package from Google (
adbandfastboot) from the site Android Developers. - Unpack the firmware: it should contain files
boot.img,system.imgetc. - Connect the device in mode Fastboot:
- Turn off the smartphone.
- Hold
Volume down + Power(the combination may vary). - Connect to PC via USB.
.img) to the root of the drive.fastboot flash boot boot.imgfastboot flash system system.img
fastboot reboot
Method 2: Firmware via SP Flash Tool (for Mediatek)
Used for devices on chips MTK (Realme, Oppo, Tecno etc.).
- Download SP Flash Tool: latest version from the website SP Flash Tool Official.
- Install drivers Mediatek: without them, the PC will not see the device in mode firmware.
- Download scatter file: it comes complete with the firmware and has an extension
.txt. - Connect the switched off device: without battery (if removable) and hold
Volume up/down. - Start firmware: in SP Flash Tool select
Download Onlyand wait for completion (indicator - green circle).
Method 3: Installation flash drive for Android TV and boxes
For flashing TV boxes (Xiaomi Mi Box, Nvidia Shield, devices on Amlogic/Rockchip) method is often used Burn Card Maker or USB Burning Tool.
- Download USB Burning Tool: the official tool for chips Amlogic.
- Prepare the firmware: it should be in the format
.img. - Start recording:
- Insert the flash drive into the PC.
- In USB Burning Tool select the firmware file.
- Click
Startand connect the switched-off box via OTG cable.
For devices with Rockchip (for example, Xiaomi Mi Box S), use Rockchip Batch Tool.
For TV boxes, it is critical to use the original USB-OTG cable. Cheap Chinese cables often do not transmit data, which leads to error No device found.
5. Typical errors and their solutions
Even if you follow the instructions exactly, problems may arise. Let's look at the most common ones and how to eliminate them.
| Error | Cause | Solution |
|---|---|---|
Device not found (in fastboot) |
No drivers or incorrect connection mode | Install drivers Google USB Driver and check the mode (fastboot devices) |
Secure Boot Error |
Locked bootloader or incompatible firmware | Unlock the bootloader officially or use signed firmware |
BROM Error: S_FT_ENABLE_DRAM_FAIL (in SP Flash Tool) |
Incompatible version SP Flash Tool or firmware | Try another version of the utility (for example, v5.2026 instead of v5.2108) |
| The flash drive is not detected device | Wrong file system or bad sectors | Format in FAT32 with a 4096 byte cluster and check chkdsk |
E:Signature verification failed (in recovery) |
The firmware is not signed or damaged | Disable signature verification in TWRP (Install โ Settings โ Disable signature check) |
If the device after flashing does not turn on or stuck on the logo:
- ๐ Check the battery charge (minimum 50%).
- ๐ Try to reflash from another flash drive (sometimes changing the USB port helps).
- ๐ฑ For smartphones: press
Volume up + Powerfor 10-15 seconds to force a reboot.
What to do if the device has turned into a โbrickโ?
If the device does not respond to buttons and is not detected by the PC, try:
1. Connect to charger for 1-2 hours (sometimes it helps when it is low). battery).
2. Use Test Point (for Mediatek) - close the contacts on the board to force the transition to the firmware mode.
3. Contact the service center if the problem is in the hardware (for example, burned out eMMC-chip).
6. Firmware without a computer: is it possible?
Yes, some devices support firmware directly from a flash drive via custom recovery (TWRP, OrangeFox). data-i="272">custom recovery Android TV box.
Instructions for TWRP:
- Install TWRP: if it is not already there, flash it through
fastboot flash recovery twrp.img. - Copy the firmware to the flash drive: place
.zipthe file in the root. - Boot into recovery: press
Volume up + Power. - Install the firmware:
- Select
Installโ specify the path to the file on the flash drive. - Confirm by swiping.
- Once completed, click
Reboot System.
- Select
For Android TV boxes (for example, Xiaomi Mi Box) the method is often used Update via Local File:
- Insert the flash drive into the box.
- Go to
Settings โ About device โ System update โ Local update. - Select the firmware file (
.zip) and confirm installation. - ๐งน Reset to factory settings: even if the firmware was installed without errors, do
Wipe Datain recovery (or throughSettings โ System โ Reset). This will remove the remnants of the old system. - ๐ Re-partitioning the internal memory: If the device is slow, check the layout via
adb shell df -hIf necessary, format/datato ext4. - ๐ฑ Setting rights root (if needed): for custom firmware, install Magisk via TWRP.
- ๐ Checking for updates: After installing the custom firmware, update it via OTA (if supported) or manually.
- ๐บ Adjust the screen resolution via
adb shell wm size 1920x1080(if the image cut off). - ๐ฎ Connect the gamepad via Bluetooth for easy navigation.
- ๐ Check the sound via
HDMIorSPDIF(sometimes manual settings are required cengineer mode). - ๐ Battery charge: minimum 70%. If discharged during flashing, the device may turn into a โbrick.โ
- ๐ Backup: make a backup copy via TWRP (
Backup โ System + Data) or ADB (adb backup -all). - ๐ Checking the firmware: check
MD5the hash of the downloaded file with the original (listed on the developerโs website). - ๐ ๏ธ Test mode: before flashing the main device, try the process on a similar model (if possible).
- โ Interrupt the firmware process (even if it is stuck at 99%).
- โ Use firmware from a different model (even if the chipset is the same).
- โ Flash the device with locked bootloader without official unlocking.
- โ Ignore errors in logs (
fastbootor SP Flash Tool). - Use the USB 2.0 port on the PC.
- Connect via USB-hub (sometimes it helps).
- Disable other USB devices (mouse, keyboard).
โ ๏ธ Attention: Firmware via Local Update works only for official updates. Custom firmware cannot be installed in this way - you will need TWRP or Fastboot.
7. Optimization after firmware
Successful firmware is only half the battle. To make the device work stably, do a few additional things. steps:
For Android TV boxes additionally:
If the mobile network has disappeared after the firmware, check the settings IMEI. To restore, use Maui META (for Mediatek) or QCN Rebuilder (for Qualcomm).
8. Security: how not to lose data and not break the device
Flashing is a risky operation, especially if you are a beginner. Follow these rules to minimize risks:
What to do not allowed:
If something goes wrong, donโt panic. In 90% of cases, the device can be restored through EDL-mode (for Qualcomm) or Test Point (for Mediatek). As a last resort, contact a service center - many workshops restore โbricksโ in 1-2 hours.
The most common reason for โbrickingโ is incompatible firmware Always check the device model and version bootloader before starting. process.
FAQ: Answers to frequently asked questions
Is it possible to use USB 3.0 instead of 2.0 for firmware?
Technically yes, but It is not recommendedMany older devices (especially TV boxes) do not work correctly with USB 3.0. due to the characteristics of the controller. If the flash drive is not detected, try:
How to flash Android on a Windows tablet (dual boot)? summary>
For tablets with Intel or AMD (for example, Surface Duo, Lenovo Yoga) the process is different:
- Download UEFI firmware for Android (for example, Android-x86).
- Create a bootable USB flash drive via Rufus in
DD.
- Boot from a flash drive and select
Installation.
- Specify the partition for Android (at least 16 GB).
โ ๏ธ Important: dual booting from Windows is only possible on devices with UEFI and unlocked firmware.
DD.Installation.Why does the touchscreen not work after updating the firmware?
This is a typical problem when installing incompatible firmware. Solutions:
- Check that the firmware is designed specifically for your model (sometimes revisions differ, for example, Redmi Note 8 Pro and Redmi Note 8 Pro Global).
- Install the original firmware via Fastboot or SP Flash Tool.
- If the touch works partially, calibrate it via
engineer mode(##3646633##).
How to flash an Android TV box without a PC?
For most boxes (for example, Xiaomi Mi Box S, Nvidia Shield), you can update without a computer:
- Download the firmware (
.zip) to a flash drive. - Rename the file to
update.zip. - Insert the flash drive into the box and boot into recovery (press and hold the button on the case when turning it on).
- Select
Apply update from USB.
โ ๏ธ Not all boxes support this method. For Rockchip may. required USB Burning Tool.
Is it possible to roll back the firmware to an older version?
Yes, but with reservations:
- For official firmware usually you can roll back, but sometimes a reset is required bootloader to factory version.
- For custom firmware rollback is possible if the version bootloader is compatible.
- On In some devices (for example, Samsung c Knox), rollback is blocked by hardware.
Before rollback, make a backup of the current firmware via TWRP!