All Posts programming fastboot cheat-sheet

fastboot cheat-sheet

· 136 words · 1 minute read

Communicate with connected Android devices when in bootloader mode (the one place ADB doesn’t work).

Unlock the bootloader:

fastboot oem unlock

Relock the bootloader:

fastboot oem lock

Reboot the device from fastboot mode into fastboot mode again:

fastboot reboot bootloader

Flash a given image:

fastboot flash path/to/file.img

Flash a custom recovery image:

fastboot flash recovery path/to/file.img

List connected devices:

fastboot devices

Display all information of a device:

fastboot getvar all

For more information, checkout the official documentation and source code: https://cs.android.com/android/platform/superproject/+/main:system/core/fastboot .

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .