Scroll to navigation

FASTBOOT(1) fastboot Manuals FASTBOOT(1)

NAME

fastboot - Android flashing and booting utility

SYNOPSIS

fastboot [-w] [-u] [-s device] [-p product] [-c cmdline] [-i vendorId] [-b baseAddr] [-n pageSize] [-S size[K|M|G]] command

DESCRIPTION

WARNING: This manual might be outdated, please refer to the official documentation.

fastboot is a command line tool for flashing an Android device, boot an Android device to fastboot mode, etc..

OPTIONS

Erase userdata and cache (and format if supported by partition type).
Do not erase partition before formatting.
Specify device serial number or path to device port.
With devices command, list device paths.
Specify product name.
Override kernel commandline.
Specify a custom USB vendor ID.
Specify a custom kernel base address (default: 0x10000000).
Specify a custom kernel offset (default: 0x00008000).
Specify a custom ramdisk offset (default: 0x01000000).
Specify a custom tags offset (default: 0x00000100).
Specify the nand page size (default: 2048).
Automatically sparse files greater than 'size'. 0 to disable.
Specify slot suffix to be used if the device supports slots. This will be added to all partition names that use slots. all can be given to refer to all slots. other can be given to refer to a non-current slot. If this flag is not used, slotted partitions will default to the current active slot.
Sets the active slot. If no suffix is provided, this will default to the value given by --slot. If slots are not supported, this does nothing. This will run after all non-reboot commands.
On devices which support it, erase userdata and cache, and enable file-based encryption.
Do not buffer input or output.
Display version.
show this message.

COMMANDS

Reflash device from update.zip.
Flash boot, system, vendor, and (if found) recovery.
Write a file to a flash partition.
Locks the device. Prevents flashing.
Unlocks the device. Allows flashing any partition except bootloader-related partitions.
Prevents flashing bootloader-related partitions.
Enables flashing bootloader-related partitions.
Queries bootloader to see if the device is unlocked.
Erase a flash partition.
Format a flash partition. Can override the fs type and/or size the bootloader reports.
Display a bootloader variable.
Sets the active slot. If slots are not supported, this does nothing.
Download and boot kernel.
Create bootimage and flash it.
List all connected devices (with device paths if -l is used).
Continue with autoboot.
Reboot device [into bootloader].
Reboot device into bootloader.
Show this help message.

AUTHORS

The Android Open Source Project.

android-platform-system-core