How to Flash ROM using Fastboot

Prerequisites

Before you begin, make sure you have the following:

  • A computer with Fastboot installed.
  • A compatible ROM file for your device.
  • USB debugging enabled on your Android device.
  • A USB cable to connect your device to the computer.

Step 1: Boot your Device into Fastboot Mode

  1. Power off your Android device.
  2. Press and hold the Volume Down button and the Power button simultaneously.
  3. Keep holding the buttons until you see the Fastboot mode screen.

Step 2: Connect your Device to the Computer

  1. Use a USB cable to connect your Android device to the computer.
  2. On your computer, open a command prompt or terminal window.

Step 3: Verify Device Connection

  1. In the command prompt or terminal window, type the following command and press Enter:
1
fastboot devices
  1. If your device is connected properly, you should see a device ID listed.

Step 4: Flash the ROM

  1. In the command prompt or terminal window, navigate to the directory where the ROM file is located.

  2. Type the following command and press Enter:

    1
    2
    fastboot -w # clean data
    fastboot update <path_to_rom_file> # flash rom

    Replace <path_to_rom_file> with the actual path to the ROM file on your computer.

  3. Wait for the flashing process to complete. This may take a few minutes.

  4. Once the flashing process is finished, type the following command and press Enter:

    1
    fastboot reboot

    This will reboot your device.

Happy flashing!