Here's the complete guide to flash a stock ROM using fastboot, including all the commands you need to execute. Please note that this process may void your device's warranty and carries a risk of data loss or bricking your device if not done correctly. Proceed at your own risk.

Prerequisites:

  1. Install ADB and Fastboot tools on your computer. Download them from here.
  2. Install USB drivers for your device on your computer. Get them from the device manufacturer's website.
  3. Backup your important data as this process can wipe your device's internal storage.
  4. Download and extract the stock ROM files (the list you provided) to a folder on your computer.

Instructions:

  1. Power off your device: Turn off your device completely.
  2. Enter Fastboot mode: Boot your device into Fastboot mode using the appropriate key combination (usually Power + Volume Down). Check your device's user manual or search online for your specific model.
  3. Connect your device to the computer: Use a USB cable to connect your device to the computer.
  4. Open a command prompt or terminal window: Navigate to the folder where you extracted the stock ROM files and the ADB/Fastboot tools.
  5. Unlock the bootloader (if necessary): Some devices require unlocking the bootloader before flashing a new ROM. This step will wipe all data on your device, so ensure you have a backup. Run the following command:
    1
    2
    3
    4
    5
    6
       fastboot oem unlock
       ```
    
       Follow the on-screen instructions on your device to confirm the bootloader unlock process.
    
    6. **Flash the necessary files:** Based on the file list you provided, execute the following commands in the command prompt or terminal window. Replace `<file_name>` with the actual file names from your stock ROM folder.
    
    fastboot flash partition gpt_main0.bin
    fastboot flash partition gpt_backup0.bin
    fastboot flash sbl1 sbl1.mbn
    fastboot flash rpm rpm.mbn
    fastboot flash tz tz.mbn
    fastboot flash emmc_appsboot emmc_appsboot.mbn
    fastboot flash misc misc.bin
    fastboot flash modem NON-HLOS.bin
    fastboot flash splash splash.img
    fastboot flash recovery recovery.img
    fastboot flash boot boot.img
    fastboot flash system system_1.unsparse
    fastboot flash system system_2.unsparse
    fastboot flash system system_3.unsparse
    fastboot flash system system_4.unsparse
    fastboot flash system system_5.unsparse
    fastboot flash system system_6.unsparse
    fastboot flash system system_7.unsparse
    fastboot flash system system_8.unsparse
    fastboot flash system system_9.unsparse
    fastboot flash system system_10.unsparse
    fastboot flash system system_11.unsparse
    fastboot flash system system_12.unsparse
    fastboot flash system system_13.unsparse
    fastboot flash system system_14.unsparse
    fastboot flash system system_15.unsparse
    fastboot flash system system_16.unsparse
    fastboot flash system system_17.unsparse
    fastboot flash system system_18.unsparse
    fastboot flash system system_19.unsparse
    fastboot flash system system_20.unsparse
    fastboot flash system system_21.unsparse
    fastboot flash system system_22.unsparse
    fastboot flash system system_23.unsparse
    fastboot flash system system_24.unsparse
    fastboot flash system system_25.unsparse
    fastboot flash system system_26.unsparse
    fastboot flash system system_27.unsparse
    fastboot flash system system_28.unsparse
    fastboot flash system system_29.unsparse
    fastboot flash system system_30.unsparse
    fastboot flash system system_31.unsparse
    fastboot flash system system_32.unsparse
    fastboot flash system system_33.unsparse
    fastboot flash userdata userdata_1.unsparse
    fastboot flash userdata userdata_2.unsparse
    fastboot flash userdata userdata_3.unsparse
    fastboot flash userdata userdata_4.unsparse
    fastboot flash userdata userdata_5.unsparse
    fastboot flash userdata userdata_6.unsparse
    fastboot flash userdata userdata_7.unsparse
    fastboot flash userdata userdata_8.unsparse
    fastboot flash userdata userdata_9.unsparse
    fastboot flash userdata userdata_10.unsparse
    fastboot flash userdata userdata_11.unsparse
    fastboot flash userdata userdata_12.unsparse
    fastboot flash userdata userdata_13.unsparse
    fastboot flash userdata userdata_14.unsparse
    fastboot flash userdata userdata_15.unsparse
    fastboot flash userdata userdata_16.unsparse
    fastboot flash userdata userdata_17.unsparse
    fastboot flash userdata userdata_18.unsparse
    fastboot flash userdata userdata_19.unsparse
    fastboot flash userdata userdata_20.unsparse
    fastboot flash userdata userdata_21.unsparse
    fastboot flash userdata userdata_22.unsparse
    fastboot flash userdata userdata_23.unsparse
    fastboot flash userdata userdata_24.unsparse
    fastboot flash userdata userdata_25.unsparse
    fastboot flash userdata userdata_26.unsparse
    fastboot flash userdata userdata_27.unsparse
    fastboot flash userdata userdata_28.unsparse
    fastboot flash userdata userdata_29.unsparse
    fastboot flash userdata userdata_30.unsparse
    fastboot flash userdata userdata_31.unsparse
    fastboot flash userdata userdata_32.unsparse
    fastboot flash userdata userdata_33.unsparse
    fastboot flash userdata userdata_34.unsparse
    fastboot flash userdata userdata_35.unsparse
    fastboot flash userdata userdata_36.unsparse
    fastboot flash userdata userdata_37.unsparse
    fastboot flash userdata userdata_38.unsparse
    fastboot flash userdata userdata_39.unsparse
    fastboot flash userdata userdata_40.unsparse
    fastboot flash userdata userdata_41.unsparse
    fastboot flash userdata userdata_42.unsparse
    fastboot flash userdata userdata_43.unsparse
    fastboot flash cache cache_1.unsparse
    fastboot flash cache cache_2.unsparse
    fastboot flash cache cache_3.unsparse
    fastboot flash config config.img
    Make sure to flash all the `system_*.unsparse`, `userdata_*.unsparse`, and `cache_*.unsparse` files in sequence:
    
  6. Reboot your device: After flashing all the files, run the following command to reboot your device:

    ` fastboot reboot

    Your device should now boot into the newly flashed stock ROM. The first boot may take some time as the device initializes the new system.

Edit Report
Pub: 15 Jun 2023 19:17 UTC
Views: 173