Forrest logo
back to the fastboot tool

fastboot:tldr:a55ee

fastboot: Flash a custom recovery image.
$ fastboot flash recovery ${file-img}
try on your machine

The command "fastboot flash recovery ${file-img}" is used in Android Fastboot mode to flash a custom recovery image onto a device. Here's how it works:

  1. "fastboot": This is a command-line tool used for communicating with an Android device in Fastboot mode. It allows you to modify the device's flash memory partitions.

  2. "flash": This is a command used to write data to specific partitions on the device.

  3. "recovery": It indicates that the partition being flashed is the recovery partition of the device. The recovery partition contains an alternative bootable operating system that can be used for performing maintenance operations, making system backups, and installing custom software.

  4. "${file-img}": This is a placeholder for the path and filename of the recovery image file that you want to flash. You need to replace "${file-img}" with the actual file path and name, for example, "recovery.img". The recovery image file should be compatible with your specific device model.

By executing this command with the correct recovery image file, you overwrite the existing recovery partition on your device with the new image. This allows you to boot into the custom recovery environment instead of the stock recovery shipped with the device.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fastboot tool