Scroll to navigation

FASTBOOT(1) User Commands FASTBOOT(1)

NAME

fastboot - Android platform tools

DESCRIPTION

usage: fastboot [OPTION...] COMMAND...

flashing:

Flash all partitions from an update.zip package.
Flash all partitions from $ANDROID_PRODUCT_OUT. On A/B devices, flashed slot is set as active. Secondary images may be flashed to inactive slot.
$ANDROID_PRODUCT_OUT if no filename is given.

basics:

List devices in bootloader (-l: with device paths).
Display given bootloader variable.
Reboot device.

locking/unlocking:

Lock/unlock partitions for flashing
Lock/unlock 'critical' bootloader partitions.
Check whether unlocking is allowed (1) or not(0).

advanced:

Erase a flash partition.
Format a flash partition.
Set the active slot.
Execute OEM-specific command.
Wipe, disable or show status of a GSI installation (fastbootd only).
Wipe the super partition. This will reset it to contain an empty set of default dynamic partitions.
Create a logical partition with the given name and size, in the super partition.
Delete a logical partition with the given name.
Change the size of the named logical partition.
On devices that support snapshot-based updates, cancel an in-progress update. This may make the device unbootable until it is reflashed.
On devices that support snapshot-based updates, finish an in-progress update if it is in the "merging" phase.
Fetch a partition image from the device.

boot image:

Download and boot kernel from RAM.
Create boot image and flash it.
Specify path to DTB for boot image header version 2.
Override kernel command line.
Set kernel base address (default: 0x10000000).
Set kernel offset (default: 0x00008000).
Set ramdisk offset (default: 0x01000000).
Set tags offset (default: 0x00000100).
Set dtb offset (default: 0x01100000).
Set flash page size (default: 2048).
Set boot image header version.
Set boot image OS version (default: 0.0.0).
Set boot image OS security patch level.

Android Things:

Sends given file to stage for the next command.
Writes data staged by the last command to a file.

options:

Wipe userdata.
Specify a USB device.
Specify a network device.
Break into sparse files no larger than SIZE.
Force a flash operation that may be unsafe.
Use SLOT; 'all' for both slots, 'other' for non-current slot (default: current active slot).
Sets the active slot before rebooting.
Don't flash secondary slots in flashall/update.
Don't reboot device after flashing.
Sets disable-verity when flashing vbmeta.
Sets disable-verification when flashing vbmeta.
Disables optimizations on flashing super partition.
Will collects tasks from image list rather than $OUT/fastboot-info.txt.
Enable filesystem features. OPTION supports casefold, projid, compress
Don't buffer input or output.
Verbose output.
Display version.
Show this message.
April 2024 fastboot 35.0.1