You are on page 1of 3

bcdedit /set TESTSIGNING OFF

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot oem device-info

adb devices
adb shell
su
setprop sys.usb.config diag,adb

adb devices
adb shell
su
setprop sys.usb.config mtp,adb

List of FASTBOOT commands,

1. The update command

how to use: fastboot update xyz.zip

This command updates the device by reflashing the device from zip file.

2. The flashall command

how to use: fastboot flashall xyz.zip

This command flashes the whole phone (recovery+ system +boot)

3. The flash partition command

how to use: fastboot flash recovery recovery.img

This command is a powerful command, you can flash a single partition, if your user
data is corrupted you can flash user data only. This command installs the file in
partition specified.

Major Partition is

userdata
system
boot
cache
4. The erase command

how to use: fastboot erase partition (major partition name are listed above)

This command can erase the particular partition.

If you want to erase userdata then the command would be

fastboot erase userdata


5. The format command

how to use: fastboot format partition (major partition name are listed above)

This command formats the particular partition.

ex: fastboot format boot

6. The getvar command

how to use: fastboot getvar all

This command displays all bootloader variable.

7. The boot command

how to use: fastboot boot partition (major partition name are listed above)

This a powerful command. You can boot into the different files without actually
flashing the phone. This command is used to test the custom-developed kernel
codes.

8. The devices command

how to use: fastboot devices

Lists all the phones in bootloader mode connected to pc.

9. The unlock OEM command

how to use: fastboot unlock OEM

This command might require more or less command to work. It depends on the company.
For HTC phones you need more commands. like fastboot OEM get_identifier_token and
flashing the code back to the phone.

This command unlocks the OEM, which lets you install the custom ROMS.

There are more steps to unlock OEM, different brand phones have different steps to
unlock OEM. Please refer to company guide to unlock OEM.

10. The reboot/reboot-bootloader command

how to use: fastboot reboot

how to use: fastboot reboot-bootloader

This command reboots your device.

Bulk lists of other commands

fastboot oem writecid


fastboot oem writeimei
fastboot oem get_identifier_token
fastboot flash unlocktoken unlock_code.bin (for htc devices, learn more at
htcdev.com)
fastboot oem unlock-go
fastboot oem unlock
fastboot oem lock
fastboot oem device-info preflash
fastboot oem enable-charger-screen
fastboot oem disable-charger-screen
fastboot oem off-mode-charge
fastboot oem select-display-panel
fastboot oem bootlog
fastboot oem getvar
fastboot oem mmcinfo
fastboot oem info
fastboot oem securewipe

adb shell cat /proc/cpuinfo

adb -s 123abc12 shell getprop


adb devices -l

You might also like