Services
Check an IMEI now
All 209 services · instant results
Free IMEI check1st check free · no sign-up iCloud checkFind My ON / OFF BlogGuides & free tools IMEI & Serial Checks79 services IMEI Unlock91 services iCloud Bypass & Activation Tools37 services Software & Subscriptions2 services
Account
Create free account
Wallet balance, scan history, Telegram alerts
Sign inWelcome back CartEmpty
Language
EnglishالعربيةPortuguêsEspañol
Currency
NGNUSDUSDT
$1 = ₦1,400.00 · Bybit P2P · 4 min ago
Company
Contact usReply within a business day About usWho runs iSerial RefundsDelivery & refund policy PrivacyWhat we store & why +1 (904) 637-5289
support@iserial.us
TermsAgreementEmail support© 2026 iSerial
Tools & commands

Fastboot Commands Explained: getvar, oem device-info and More

Fastboot commands explained: fastboot devices, getvar all, getvar unlocked, oem device-info and flashing get_unlock_ability — what each output means and which are safe.

iSerial Team
Updated · 5 min read
Fastboot Commands Explained: getvar, oem device-info and More
In this article
  1. Setup: platform-tools, drivers and fastboot mode
  2. Confirm the connection
  3. getvar: reading the bootloader’s variables
  4. oem device-info and get_unlock_ability
  5. Reboot commands
  6. Commands you should NOT run on someone else’s phone
  7. A safe fastboot inspection, start to finish

ADB talks to Android while it’s running. Fastboot talks to the phone one level lower — to the bootloader itself, before Android starts. That makes it the most honest source of truth about a phone’s hardware identity and lock state, and also the most dangerous tool in the platform-tools folder if you type the wrong thing.

This guide splits fastboot commands into two groups: read-only commands that are safe to run on any phone you’re inspecting, and write commands that wipe or flash and belong only on your own device. For each read-only command, you’ll see what the output means and what to watch for.

Setup: platform-tools, drivers and fastboot mode

Install fastboot

Fastboot ships in Google’s official SDK Platform-Tools alongside ADB. Unzip it and open a terminal in that folder. In Windows PowerShell, prefix commands with .\ (for example .\fastboot devices). On Windows you may also need the Google USB Driver or your phone maker’s driver before fastboot sees the device.

Enter fastboot mode

  • From Android: enable USB debugging and run adb reboot bootloader.
  • With buttons: power off, then hold Power + Volume Down on Pixel, Motorola, OnePlus and Xiaomi (variations exist by model).
  • Samsung: Galaxy phones don’t use fastboot. They have Download mode, which talks to Samsung’s own tools, so the commands below won’t work there.

You’ll know you’re in the bootloader when the screen shows a text menu or an Android robot with options like Start, Restart bootloader and Recovery mode.

Confirm the connection

Fastboot — Windows / macOS / Linux
fastboot devices
fastboot devices -l

You should see a serial number followed by fastboot. If nothing appears:

  • Try a different USB cable and port — charge-only cables are the number-one cause.
  • On Windows, open Device Manager. An “Android” device with a warning icon needs a driver.
  • On Linux, run with appropriate udev rules or sudo if your distribution requires it.
  • Make sure you’re actually in fastboot mode, not recovery.

getvar: reading the bootloader’s variables

getvar asks the bootloader for a named value. It’s read-only and the best place to start.

Fastboot — Windows / macOS / Linux
fastboot getvar all
fastboot getvar product
fastboot getvar serialno
fastboot getvar unlocked
fastboot getvar secure
fastboot getvar version-bootloader
fastboot getvar version-baseband
fastboot getvar current-slot
  • getvar all dumps every variable the bootloader exposes. The list varies enormously by manufacturer — a Pixel prints dozens, others only a handful.
  • product is the device codename (for example a Pixel codename, or a Xiaomi codename). Search it on the manufacturer’s site to confirm the exact model and that it matches the listing.
  • serialno should match the serial in Settings › About phone. A mismatch suggests a replaced board.
  • unlocked returns yes or no — the bootloader lock state.
  • secure reports whether secure boot is enforced.
  • version-bootloader / version-baseband show firmware versions. Very old versions on a recent phone mean it hasn’t been updated in a long time.
  • current-slot shows a or b on phones with A/B seamless updates. Either is normal.

oem device-info and get_unlock_ability

Fastboot — Windows / macOS / Linux
fastboot oem device-info
fastboot flashing get_unlock_ability

oem device-info (some devices)

oem commands are manufacturer extensions, so support varies. On many Qualcomm-based phones — including numerous OnePlus and older Xiaomi models — oem device-info prints lines such as:

  • Device tampered: whether the bootloader detected modification.
  • Device unlocked: true or false.
  • Device critical unlocked: whether critical partitions (like the bootloader itself) can be flashed.
  • Charger screen enabled: a harmless setting.

On a Pixel, the command typically returns an unknown-command error. That’s expected — use getvar unlocked there.

flashing get_unlock_ability

Returns 1 if the OEM unlocking switch in Developer options is on (the bootloader may be unlocked) and 0 if it isn’t. On carrier-locked phones it’s often stuck at 0 because the switch is greyed out — see OEM unlocking greyed out. For a buyer, a phone sold as “unlocked” that returns 0 here and no for unlocked is carrier-free at most, never bootloader-free.

Don’t guess — check it.Enter the IMEI or serial and get official records in seconds. Your first All-in-one check is free.
Free IMEI check

Reboot commands

Fastboot — Windows / macOS / Linux
fastboot reboot
fastboot reboot bootloader
fastboot reboot fastboot
fastboot reboot recovery

fastboot reboot returns to Android — always finish an inspection with it. The others restart into the bootloader, fastbootd or recovery. reboot recovery needs a reasonably recent platform-tools release.

Commands you should NOT run on someone else’s phone

CommandWhat it does
fastboot flashing unlock / fastboot oem unlockUnlocks the bootloader and factory resets the phone.
fastboot flashing lockRelocks and wipes. On modified software it can make the phone unbootable.
fastboot flash <partition> <file>Writes an image to a partition. A wrong file can brick the phone.
fastboot erase / fastboot -wErases partitions or user data.
fastboot boot <image>Boots an unsigned image temporarily (unlocked devices only).

A safe fastboot inspection, start to finish

  1. adb reboot bootloader (or the button combo).
  2. fastboot devices — confirm one device.
  3. fastboot getvar product and serialno — confirm identity.
  4. fastboot getvar unlocked and flashing get_unlock_ability — confirm lock state.
  5. fastboot oem device-info on supported brands — check “tampered”.
  6. fastboot reboot.

Fastboot proves the hardware identity and lock state, but it can’t read the IMEI or carrier records. Dial *#06# once Android is back up. Practice in the terminal below — type help for the list, dial to see every way to read an IMEI, and imei followed by the number to validate it:

iserial — interactive terminaltry it
iSerial terminal v1.0 — type help and press Enter.
iserial:~$

Then check the record for the brand: Google Pixel Info, OnePlus Info, Motorola Info or the Xiaomi check, plus a manufacturer and model check and a GSMA blacklist check. For the Android-side commands, read our ADB commands guide, and for what lock states mean, bootloader unlocking explained. The IMEI check guide covers the record side.

Run the check now
Sign in to pay from your wallet — no checkout
Dial *#06# or open Settings → General → About.

Verdict: five read-only fastboot commands tell you a phone’s codename, serial, firmware age and true lock state in under a minute. Keep it to devices, getvar, oem device-info, get_unlock_ability and reboot, and fastboot is completely safe.

Frequently asked questions

What does fastboot getvar all do?

It lists every variable the bootloader exposes, such as product codename, serial number, lock state and firmware versions. It’s read-only and changes nothing.

Why is fastboot devices showing nothing?

Usually a charge-only cable, a missing Windows driver, or the phone isn’t actually in fastboot mode. Try another cable and port and check Device Manager.

What does fastboot flashing get_unlock_ability return?

1 means OEM unlocking is enabled so the bootloader can be unlocked; 0 means it isn’t allowed, often because the phone is carrier-locked.

Does fastboot work on Samsung phones?

No. Samsung Galaxy phones use Download mode instead of fastboot, so fastboot commands don’t apply.

Can fastboot show the IMEI?

Generally no on modern phones. Boot into Android and dial *#06# or check Settings › About phone.

Is it safe to run fastboot commands?

Read-only commands like devices, getvar, oem device-info and reboot are safe. Flash, erase, unlock and lock commands can wipe data or brick the phone.

Was this helpful? Share it with someone buying a phone. WhatsApp Post Share
Get the iSerial newsletterPhone-buying guides, scam alerts and offers. No spam — unsubscribe anytime.