A phone is called bricked when it no longer boots into Android or even into recovery. Most bricking events are soft bricks – the bootloader is still functional but the system image is corrupted, often after a failed OTA update, a bad custom ROM flash, or a mis‑typed fastboot command.
Because the bootloader remains operational, you can still communicate with the device via fastboot (when the phone is in bootloader mode) or via adb (when a recovery or a partially‑working system is reachable). These low‑level tools let you replace the damaged system partitions with a clean factory image, effectively un‑bricking the device.
If your phone cannot power on at all (hard brick), these steps won’t work; you’ll need a hardware‑level solution such as a JTAG or a professional repair service.
https://developer.android.com/studio/releases/platform-tools. Choose the zip for your OS.C:\adb on Windows or ~/adb on macOS/Linux.PATH so you can run adb and fastboot from any terminal.
Path, add the full path.export PATH=$PATH:~/adb to your ~/.bash_profile or ~/.zshrc.adb version
fastboot version
You should see version numbers without errors.Volume Down + Power (or Volume Up + Power on some OEMs) until the Fastboot screen appears. The screen usually shows the device model and “Fastboot”.fastboot devices
You should see a line like 0123456789ABCDEF fastboot. If nothing appears, continue to the troubleshooting box below.Device not detected? Install the OEM USB drivers (Google USB Driver for Pixel, Samsung USB Driver for Galaxy, etc.) and restart the PC. On Linux, you may need to add a udev rule: sudo nano /etc/udev/rules.d/51-android.rules and add SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" (replace 18d1 with your vendor ID).
Many stock images require an unlocked bootloader to flash. Unlocking will perform a factory reset, wiping all user data. Proceed only if you accept data loss.
fastboot oem device-info
Look for Device unlocked: true. If it says false, you need to unlock.Build number seven times, then Settings → System → Developer options → enable OEM unlocking.YOUR_DEVICE with the actual model if required):
fastboot flashing unlock
Confirm the prompt on the phone using the volume keys.
Some OEMs (e.g., Samsung) do not use Fastboot for flashing; they rely on Odin/Download mode. This tutorial covers Fastboot‑compatible devices such as Google Pixel, OnePlus, Xiaomi (with unlocked bootloader), and many AOSP‑based phones.
Using the wrong image will either fail to flash or brick the device further. Follow these guidelines:
Pixel 4a (sunfish) or OnePlus 8 Pro (IN2023)). You can find it on the bootloader screen or in the original box.https://developers.google.com/android/imageshttps://www.oneplus.com/support/softwareupgradehttps://c.mi.com/oc/flash/detail?guide=1*.tgz for Google, *.zip for others) and extract it to a folder, e.g., ~/factory_image.The exact command set varies by OEM, but the general pattern is the same: flash each partition, then reboot.
cd ~/factory_image
flash-all.sh (Linux/macOS) or flash-all.bat (Windows) is provided. Run it:
./flash-all.sh
The script automatically flashes bootloader, radio, boot, system, etc., and then reboots.
xxx.img with actual file names):
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash userdata userdata.img # optional – may be omitted for a clean install
fastboot erase cache
fastboot reboot
Each fastboot flash command writes a partition. The reboot-bootloader steps ensure the new bootloader is active before flashing the next partition.
OKAY or FAIL. If you see FAIL, note the error message – common causes are mismatched image files or a locked partition.fastboot reboot, the phone should display the normal boot animation.system.img for your exact build.When the bootloader is locked and unlocking is impossible (e.g., carrier‑locked devices), you can sometimes flash a signed OTA package from the stock recovery.
Volume Up + Power), then choose “Apply update from ADB”.adb sideload name_of_ota.zip
This method works only if the recovery accepts signed OTA packages and the device’s bootloader is not enforcing a custom‑ROM lock.
system) until the bootloader is unlocked. Double‑check the unlock status (Step 4).fastboot flash --disable-verity --disable-verification flags.boot and system partitions again, then reboot.userdata and cache partitions explicitly:
fastboot erase userdata
fastboot erase cache
| Manufacturer | Fastboot support | Special steps |
|---|---|---|
| Google (Pixel) | Full Fastboot | Use provided flash-all.sh; no extra drivers needed. |
| OnePlus | Full Fastboot | Unlock with fastboot oem unlock (may require a OnePlus account). |
| Samsung | Uses Download mode (Odin) | Fastboot not applicable; switch to Odin for flashing. |
| Xiaomi | Fastboot with Mi Unlock | Enable OEM Unlock in developer options and request Mi Unlock permission. |
After a successful recovery, consider creating a fresh backup (e.g., using adb backup or a custom recovery) so future mishaps are easier to resolve.
If you encounter any of the following, it’s safer to stop and consult a repair shop:
FAIL and the error mentions hardware errors (e.g., “write error” on userdata).fastboot, indicating possible hardware failure.Professional technicians can perform JTAG or use specialized flashing boxes that bypass the bootloader entirely.
Recovering a soft‑bricked Android phone is a systematic process: verify Fastboot connectivity, unlock the bootloader (accepting data loss), obtain the exact factory image, flash each partition, and finally reboot. By following the detailed steps and the troubleshooting matrix above, most common bricking scenarios can be resolved without needing a factory service.
Keep this guide bookmarked for future emergencies – the same workflow applies to new devices as long as they expose a Fastboot interface.









