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