Prerequisites
- Download the Fastboot ROM for your device.
- Install Android SDK platform-tools (
fastboot.exemust be in system PATH). - Boot the device into Fastboot Mode (Volume Down + Power or
adb reboot fastboot).
Terminology
Anti-Rollback – Prevents flashing older firmware. Check with:
fastboot getvar antiFastboot ROM – Complete OS image with separate partitions (boot, system, vendor, userdata, etc.).
Flashing Instructions
Extract the Fastboot ROM to a folder on your PC.
Boot the device into Fastboot Mode.
Connect via USB and verify detection:
fastboot devicesYour device ID must appear. If it doesn’t, check out Troubleshooting
Run the provided script or flash manually:
flash_all.bat– resets everythingflash_all_except_storage.bat– resets partitions but preserves user dataflash_all_lock.bat– resets everything + locks bootloader
Example for full reset with unlocked bootloader:
flash_all.batDevice should automatically reboot. If it didn’t run
fastboot rebootor Hold Power button
Troubleshooting
If
fastboot devicesreports waiting for devices:- Check Device Manager for issues.
- Verify drivers are installed
- Change USB cable/port.
If the script runs but does nothing:
- Ensure
fastboot.exeis in PATH. - Verify the device anti version ≤ firmware anti version.
- Ensure
If anti-rollback validation fails, it can be manually bypassed by editing scripts, but this risks bricking the device.