fastboot (1)
Leading comments
Automatically generated by Pandoc 1.17.2
NAME
fastboot - Android flashing and booting utility
SYNOPSIS
B]fastboot] [-w] [-u] [-s I]device]] [-p I]product]] [-c I]cmdline]] [-i I]vendorId]] [-b I]baseAddr]] [-n I]pageSize]] [-S I]size][K|M|G]] I]command]
DESCRIPTION
B]fastboot] is a command line tool for flashing an Android device, boot an Android device to fastboot mode, etc..
OPTIONS
- -w
-
Erase userdata and cache (and format if supported by partition type).
- -u
-
Do not erase partition before formatting.
- -s I]device]
-
Specify device serial number or path to device port.
- -l
-
With B]devices] command, list device paths."
- -p I]product]
-
Specify product name.
- -c I]cmdline]
-
Override kernel commandline.
- -i I]vendorId]
-
Specify a custom USB vendor ID.
- -b|--base I]baseAddr]
-
Specify a custom kernel base address (default: B]0x10000000]).
- --kernel-offset
-
Specify a custom kernel offset (default: B]0x00008000]).
- --ramdisk-offset
-
Specify a custom ramdisk offset (default: B]0x01000000]).
- --tags-offset I]offset]
-
Specify a custom tags offset (default: B]0x00000100]).
- -n|--page-size I]pageSize]
-
Specify the nand page size (default: B]2048]).
- -S I]size][K|M|G]
-
Automatically sparse files greater than [aq]size[aq].
B]0] to disable.
- --slot I]suffix]
-
Specify slot suffix to be used if the device supports slots.
This will be added to all partition names that use slots.
B]all] can be given to refer to all slots.
B]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.
- -a, --set-active[=]
-
Sets the active slot.
If no suffix is provided, this will default to the value given by
B]--slot].
If slots are not supported, this does nothing.
This will run after all non-reboot commands.
- --wipe-and-use-fbe
-
On devices which support it, erase userdata and cache, and enable
file-based encryption.
- --unbuffered
-
Do not buffer input or output.
- --version
-
Display version.
- -h|--help
-
show this message.
COMMANDS
- fastboot update I]filename]
-
Reflash device from update.zip.
- fastboot flashall
-
Flash boot, system, vendor, and (if found) recovery.
- fastboot flash I]partition] [I]filename]]
-
Write a file to a flash partition.
- fastboot flashing lock
-
Locks the device.
Prevents flashing.
- fastboot flashing unlock
-
Unlocks the device.
Allows flashing any partition except bootloader-related partitions.
- fastboot flashing lock_critical
-
Prevents flashing bootloader-related partitions.
- fastboot flashing unlock_critical
-
Enables flashing bootloader-related partitions.
- fastboot flashing get_unlock_ability
-
Queries bootloader to see if the device is unlocked.
- fastboot erase I]partition]
-
Erase a flash partition.
- fastboot format[:[I]fs type]][:[I]size]]] I]partition]
-
Format a flash partition.
Can override the fs type and/or size the bootloader reports.
- fastboot getvar I]variable]
-
Display a bootloader variable.
- fastboot set_active I]suffix]
-
Sets the active slot.
If slots are not supported, this does nothing.
- fastboot boot I]kernel] [I]ramdisk] [I]second]]]
-
Download and boot kernel.
- fastboot flash:raw boot I]kernel] [I]ramdisk] [I]second]]]
-
Create bootimage and flash it.
- fastboot devices [-l]
-
List all connected devices (with device paths if B]-l] is used).
- fastboot continue
-
Continue with autoboot.
- fastboot reboot [bootloader]
-
Reboot device [into bootloader].
- fastboot reboot-bootloader
-
Reboot device into bootloader.
- fastboot help
-
Show this help message.