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 .zip or .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.
๐Ÿ“Š What device are you planning to flash?
Smartphone
Tablet
Android TV box
Car media center
Other

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:

  1. Select full formatting (not fast!).
  2. Specify the cluster size 4096 bytes (optimal for Android).
  3. 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 (where X is 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

Done: 0 / 5

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.).

  1. Download Platform Tools: official package from Google (adb and fastboot) from the site Android Developers.
  2. Unpack the firmware: it should contain files boot.img, system.img etc.
  3. Connect the device in mode Fastboot:
    • Turn off the smartphone.
    • Hold Volume down + Power (the combination may vary).
    • Connect to PC via USB.
  • Write the firmware to a flash drive: copy all files (.img) to the root of the drive.
  • Install the firmware: on the command line, run:
    fastboot flash boot boot.img
    

    fastboot 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.).

    1. Download SP Flash Tool: latest version from the website SP Flash Tool Official.
    2. Install drivers Mediatek: without them, the PC will not see the device in mode firmware.
    3. Download scatter file: it comes complete with the firmware and has an extension .txt.
    4. Connect the switched off device: without battery (if removable) and hold Volume up/down.
    5. Start firmware: in SP Flash Tool select Download Only and 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.

    1. Download USB Burning Tool: the official tool for chips Amlogic.
    2. Prepare the firmware: it should be in the format .img.
    3. Start recording:
      • Insert the flash drive into the PC.
      • In USB Burning Tool select the firmware file.
      • Click Start and 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 + Power for 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:

    1. Install TWRP: if it is not already there, flash it through fastboot flash recovery twrp.img.
    2. Copy the firmware to the flash drive: place .zipthe file in the root.
    3. Boot into recovery: press Volume up + Power.
    4. Install the firmware:
      • Select Install โ†’ specify the path to the file on the flash drive.
      • Confirm by swiping.
      • Once completed, click Reboot System.

    For Android TV boxes (for example, Xiaomi Mi Box) the method is often used Update via Local File:

    1. Insert the flash drive into the box.
    2. Go to Settings โ†’ About device โ†’ System update โ†’ Local update.
    3. Select the firmware file (.zip) and confirm installation.
    4. โš ๏ธ 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:

      • ๐Ÿงน Reset to factory settings: even if the firmware was installed without errors, do Wipe Data in recovery (or through Settings โ†’ 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 /data to 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.

      For Android TV boxes additionally:

      • ๐Ÿ“บ 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 HDMI or SPDIF (sometimes manual settings are required c engineer mode).
      ๐Ÿ’ก

      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:

      • ๐Ÿ”‹ 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).

      What to do not allowed:

      • โŒ 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 (fastboot or SP Flash Tool).

      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:

      • Use the USB 2.0 port on the PC.
      • Connect via USB-hub (sometimes it helps).
      • Disable other USB devices (mouse, keyboard).
    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:

    1. Download UEFI firmware for Android (for example, Android-x86).
    2. Create a bootable USB flash drive via Rufus in DD.
    3. Boot from a flash drive and select Installation.
    4. Specify the partition for Android (at least 16 GB).

    โš ๏ธ Important: dual booting from Windows is only possible on devices with UEFI and unlocked firmware.

    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:

    1. Download the firmware (.zip) to a flash drive.
    2. Rename the file to update.zip.
    3. Insert the flash drive into the box and boot into recovery (press and hold the button on the case when turning it on).
    4. 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!