FASTBOOT(1)

πŸ“¦
version 34.0.5 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– FASTBOOT(1) πŸ’–

okay bestie, sit down, hydrate, and let me tell you about fastboot β€” the Android flashing and booting utility from the fastboot Manuals. it's giving "I can absolutely brick this phone if I'm not careful" energy, so let's go 🌸


✨ 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

literally the whole vibe in one block. keep it in your notes app, queen πŸ‘‘


✨ DESCRIPTION ✨

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

no fr fr, they said it themselves β€” this page might be old, go check the official docs if you need the tea fresh πŸ’…

fastboot is a command line tool for flashing an Android device, boot an Android device to fastboot mode, etc.. that's the whole thing. it's the ✨main character✨ of getting your device to do stuff before Android itself even wakes up.


✨ OPTIONS ✨

so many little flags, each one a tiny key to a tiny door πŸ”‘

  • -w β€” Erase userdata and cache (and format if supported by partition type). yes this deletes your stuff, it is not subtle 😭
  • -u β€” Do not erase partition before formatting. the polite version.
  • -s device β€” Specify device serial number or path to device port. when you've got multiple devices plugged in and you need to point at exactly one.
  • -l β€” With devices command, list device paths.
  • -p product β€” Specify product name.
  • -c cmdline β€” Override kernel commandline.
  • -i vendorId β€” Specify a custom USB vendor ID.
  • -b|--base baseAddr β€” Specify a custom kernel base address (default: 0x10000000).
  • --kernel-offset β€” Specify a custom kernel offset (default: 0x00008000).
  • --ramdisk-offset β€” Specify a custom ramdisk offset (default: 0x01000000).
  • --tags-offset offset β€” Specify a custom tags offset (default: 0x00000100).
  • -n|--page-size pageSize β€” Specify the nand page size (default: 2048).
  • -S size[K|M|G] β€” Automatically sparse files greater than 'size'. 0 to disable. (the K, M, G suffixes are right there if you want them πŸ’«)
  • --slot suffix β€” 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.
  • -a, --set-active[=] β€” 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.
  • --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 ✨

this is the actual menu, bestie. pick your fighter πŸŽ€

  • fastboot update filename β€” Reflash device from update.zip.
  • fastboot flashall β€” Flash boot, system, vendor, and (if found) recovery.
  • fastboot flash partition [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 partition β€” Erase a flash partition.
  • fastboot format[:[fs type][:[size]] partition β€” Format a flash partition. Can override the fs type and/or size the bootloader reports.
  • fastboot getvar variable β€” Display a bootloader variable.
  • fastboot set_active suffix β€” Sets the active slot. If slots are not supported, this does nothing.
  • fastboot boot kernel [ramdisk [second]] β€” Download and boot kernel.
  • fastboot flash:raw boot kernel [ramdisk [second]] β€” Create bootimage and flash it.
  • fastboot devices [-l] β€” List all connected devices (with device paths if -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.

✨ AUTHORS ✨

The Android Open Source Project. πŸ‘‘


and that's the whole page, bestie!! this beauty came out of android-platform-system-core and it's stamped FASTBOOT(1) in the manuals β€” go flash responsibly, and remember: read twice, flash once πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from