To install a stock ROM using Fastboot, follow these steps:

Disclaimer: Flashing a stock ROM can potentially brick your device if done incorrectly. Proceed with caution and make sure you understand the risks involved. Ensure that you have a backup of your important data before proceeding.

  1. Install ADB and Fastboot tools on your computer:

    For Windows, you can download the platform-tools package from Google's Android Developer website.

    For macOS or Linux, you can install ADB and Fastboot using package managers like Homebrew or apt-get.

  2. Extract the downloaded ROM files to a folder on your computer.
  3. Install the necessary drivers for your device if you are using Windows. You may find the drivers on the device manufacturer's website.
  4. Boot your device into Fastboot mode. This usually involves holding a specific key combination (e.g., Volume Down + Power) while the device is off, or by using the adb reboot bootloader command while the device is connected to your computer and USB debugging is enabled.
  5. Connect your device to your computer using a USB cable.
  6. Open a terminal or command prompt window on your computer, and navigate to the folder where you extracted the ROM files.
  7. Run the following commands one by one in the terminal/command prompt:

       fastboot flash partition gpt_main0.bin
       fastboot flash partition gpt_backup0.bin
       fastboot flash bootloader emmc_appsboot.mbn
       fastboot flash boot boot.img
       fastboot flash recovery recovery.img
       fastboot flash splash splash.img
       fastboot flash rpm rpm.mbn
       fastboot flash tz tz.mbn
       fastboot flash sbl1 sbl1.mbn
       fastboot flash misc misc.bin
       fastboot flash modem NON-HLOS.bin
       fastboot flash config config.img
       fastboot flash aboot emmc_appsboot.mbn
       ```
    
    8. Flash the system image by running the following commands:
    
    fastboot flash system system_1.unsparse
    fastboot flash system system_2.unsparse
    ...
    fastboot flash system system_33.unsparse
    1
    2
    3
    4
    5
    6
    7
    8
    9
       Make sure you run the command for each `.unsparse` file in the list, replacing the number accordingly.
    
    9. Flash the userdata image in the same way:
    
       ````
       fastboot flash userdata userdata_1.unsparse
       fastboot flash userdata userdata_2.unsparse
       ...
       fastboot flash userdata userdata_43.unsparse
    

    Again, make sure you run the command for each .unsparse file.

  8. After flashing all the required files, run these commands to wipe cache and reboot the device:
    fastboot erase cache
    fastboot reboot
    

Your device should now boot with the stock ROM. Keep in mind that the first boot may take longer than usual as the system initializes.

Edit Report
Pub: 15 Jun 2023 12:24 UTC
Views: 23