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
- Power off your Android device.
- Press and hold the Volume Down button and the Power button simultaneously.
- Keep holding the buttons until you see the Fastboot mode screen.
Step 2: Connect your Device to the Computer
- Use a USB cable to connect your Android device to the computer.
- On your computer, open a command prompt or terminal window.
Step 3: Verify Device Connection
- In the command prompt or terminal window, type the following command and press Enter:
1 | fastboot devices |
- If your device is connected properly, you should see a device ID listed.
Step 4: Flash the ROM
In the command prompt or terminal window, navigate to the directory where the ROM file is located.
Type the following command and press Enter:
1
2fastboot -w # clean data
fastboot update <path_to_rom_file> # flash romReplace
<path_to_rom_file>
with the actual path to the ROM file on your computer.Wait for the flashing process to complete. This may take a few minutes.
Once the flashing process is finished, type the following command and press Enter:
1
fastboot reboot
This will reboot your device.
Happy flashing!