Fastboot

From Omni
Jump to: navigation, search

fastboot is a command line program for performing several basic functions on Android devices, most importantly (for Omni users) unlocking bootloaders and installing recovery images. It is part of the Android SDK, and is also available as a standalone program for most systems.

Installation

Linux

The Android SDK, which includes fastboot, can be installed on most systems.

On Debian, Ubuntu, Fedora, and other distributions, the android-tools package is a simpler way to install fastboot (and adb) without the rest of the Android development environment.

Windows

?

OS X

?

Unlock

Follow these steps to unlock the bootloader for devices that allow it.
  1. Connect the device to the computer via USB.
  2. Boot the device into fastboot mode.
    If USB debugging mode is enabled, you can use adb to reboot the device directly to fastboot using the command line on the connected computer:
    adb reboot bootloader
    You can also reboot into bootloader mode by holding certain buttons while rebooting the device. The specific button combo varies by device; power + volume-up + volume-down is a common button combo. After entering bootloader mode, select fastboot (usually by using the volume and/or power buttons).
  3. From the command line on the connected computer, run the command:
    fastboot oem unlock
  4. Confirm on the device that you wish to unlock.
    This typically involves waiving part of the device warranty, and will also clear your data.

After unlocking the bootloader, a device can easily be re-flashed with custom recovery images and/or new ROMs.

Recovery

Follow these steps to flash a custom recovery image on a device with an unlocked bootloader.
  1. Download the most recent TWRP recovery image for the device onto the computer.
  2. Connect the device to the computer via USB.
  3. Boot the device into fastboot mode.
    If USB debugging mode is enabled, you can use adb to reboot the device directly to fastboot using the command line on the connected computer:
    adb reboot bootloader
    You can also reboot into bootloader mode by holding certain buttons while rebooting the device. The specific button combo varies by device; power + volume-up + volume-down is a common button combo. After entering bootloader mode, select fastboot (usually by using the volume and/or power buttons).
  4. From the command line on the connected computer, run the command:
    fastboot flash recovery recovery_file_name.img
    Replace "recovery_file_name.img" with the actually path to the recovery file you downloaded. You may also drag the file name onto the terminal to obtain the full file path.