Bootloader Fastboot Bootloader | Cheatsheet A bootloader is a vendor-proprietary image responsible for bringing up the kernel on a device. The bootloader guards the device state and is responsible for initializing the Trusted Execution Environment (TEE)
and binding its root of trust. The bootloader also verifies the integrity of the boot and recovery partitions before moving execution to the kernel.
OEM Print lock state Check secure image for bootloader Unlock bootloader fastboot oem unlock <key>
Check state for FB fastboot oem lock-state info
Dump status for bootloader fastboot oem get-bootinfo
Get root status fastboot oem check-rootinfo
Relock bootloader Erase Factory Reset Protection Unlock Factory Reset Protection Run emmc diagnostic Dump eMMC info Print key version fastboot oem get_key_version
Dump battery status (millivolts) fastboot oem battery_present_check
Print hwnff version fastboot oem get_hwnff_ver
Print IMEI and serial number Print firmware model fastboot oem get-build-number
Print firmware build fastboot oem get-product-model
Print devices connected in fastboot Get Variable Product Print device info Print kernel Print bootloader version fastboot getvar version-bootloader
Print product Print device board Print secure mode Print hwrev Print radio info Print storage type fastboot getvar storage-type
Print eMMC info Print UFS info Print RAM info Print CPU info Print device serial number Print CID Print channel ID fastboot getvar channelid
Dump token Dump device secure state fastboot getvar securestate
Dump device verity state fastboot getvar verity-state
Dump warranty void info fastboot getvar iswarrantyvoid
Dump max download size fastboot getvar max-download-size
Dump reboot reason Dump IMEI/IMEI2 fastboot getvar imei
fastboot getvar imei2
Dump MEID info Dump factory date device was born Print SKU version Print carrier SKU fastboot getvar carrier_sku
Dump battery serial Dump battery voltage fastboot getvar battery-voltage
Dump ICCID Dump MD5 value Dump max sparse size fastboot getvar max-sparse-size
Dump alarm status fastboot getvar poweroffalarm
Dump ro.carrier fastboot getvar ro.carrier
Dump ro.build.fingerprint settings fastboot getvar ro.build.fingerprint
Dump baseband of device fastboot getvar version.baseband
Dump kernel version fastboot getvar kernel.version
Dump git info Dump current slot in use fastboot getvar current-slot
Dump FRP status fastboot getvar frp-state
Dump sim slot fastboot getvar slot-count
Dump booted slot fastboot getvar slot-successful
Dump unbootable slot fastboot getvar slot-unbootable
Dump how many times we gonna boot on active slot before changing fastboot getvar slot-retry-count
Dump logical block size fastboot getvar logical-block-size
Dump erase block size fastboot getvar erase-block-size
Dump status for userspace fastboot getvar is-userspace
Dump pcb number fastboot getvar pcb-part-no
Dump primary/secondary display fastboot getvar primary-display
fastboot getvar secondary-display
Dump status for fdr fastboot getvar fdr-allowed