Note: These commands often differ by manufacturer (e.g., Xiaomi requires a specific Mi Unlock tool, while Google/Nokia/Motorola use standard commands).
| Command | Function | |---------|----------| | fastboot devices | List attached devices in fastboot mode. | | fastboot getvar all | Display all bootloader variables (product, serial, secure boot, etc.). | | fastboot getvar <var> | Retrieve a specific variable (e.g., fastboot getvar version-bootloader ). | | fastboot oem <command> | OEM‑specific commands (e.g., fastboot oem unlock ). |
To view details about your device capabilities and anti-rollback status:
Changes lost after reboot – ideal for validation.
| Command | Purpose | |---------|---------| | fastboot oem unlock / oem lock | Unlock/lock bootloader (clears data). | | fastboot set_active <slot> | Set the active boot slot (A/B devices: _a or _b ). | | fastboot oem device-info | Show lock state and tamper flags. | | fastboot continue | Continue normal boot after pausing in bootloader. | | fastboot format <partition> | Format partition with a filesystem (e.g., ext4 ). |