Fastboot

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Fastboot
Original authorGoogle LLC
Repositoryandroid.googlesource.com
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Included withAndroid SDK
    Available inC++
    TypeFirmware communication protocol and implementation thereof

    Fastboot is a communication protocol used primarily with Android devices.[1] It is implemented in a command-line interface tool of the same name and as a mode of the bootloader of Android devices. The tool is included with the Android SDK package and used primarily to modify the flash filesystem via a USB connection from a host computer. It requires that the device be started in Fastboot mode. If the mode is enabled, it will accept a specific set of commands,[2] sent through USB bulk transfers. Fastboot on some devices allows unlocking the bootloader, and subsequently, enables installing custom recovery image and custom ROM on the device. Fastboot does not require USB debugging to be enabled on the device.[3] To use fastboot, a specific combination of keys must be held during boot.[4]

    Not all Android devices have fastboot enabled,[5] and Android device manufacturers are allowed to choose if they want to implement fastboot or some other protocol.[6]

    Keys pressed

    [edit | edit source]

    The keys that have to be pressed for fastboot differ for various vendors.[7]

    • HTC, Google Pixel, Motorola, and Xiaomi: Power and volume down
    • Zebra and symbol devices: Right scan/action button
    • Sony: Power and volume up
    • Google Nexus: Power, volume up and volume down

    On Samsung devices, (excluding the Nexus S and Galaxy Nexus devices), power, volume down and home has to be pressed for entering ODIN mode. This is a proprietary protocol, and tool, as an alternative to fastboot. The tool has a partial alternative.

    Commands

    [edit | edit source]

    Some of the most commonly used fastboot commands include:

    • flash – rewrites a partition with a binary image stored on the host computer.
    • flashing unlock/oem unlock DEVICE_SPECIFIC_UNLOCK_KEY – unlocks an OEM locked bootloader for flashing custom/unsigned ROMs.
    • flashing lock/oem lock DEVICE_SPECIFIC_LOCK_KEY – locks an OEM unlocked bootloader.
    • erase – erases a specific partition.
    • reboot – reboots the device into either the main operating system, the system recovery partition or back into its boot loader.
    • devices – displays a list of all devices (with the serial number) connected to the host computer.
    • format – formats a specific partition; the file system of the partition must be recognized by the device.
    • oem device-info – checks the bootloader state.
    • getvar all – displays all information about device (IMEI, bootloader version, battery state etc.).

    Implementations

    [edit | edit source]

    The fastboot protocol has been implemented in the Android bootloader called ABOOT,[8] the Little Kernel fork of Qualcomm,[9] TianoCore EDK II,[10][11] and Das U-Boot.[12]

    See also

    [edit | edit source]

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    8. ^ Hay, R. (2017). fastboot oem vuln: Android bootloader vulnerabilities in vendor customizations. In 11th USENIX Workshop on Offensive Technologies (WOOT 17).
    9. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    10. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    11. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    12. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]