• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root List of fastboot command.

cicciocant

Newbie
Apr 19, 2013
32
3
There is a list of available fastboot commands ?

Not only this:

Code:
fastboot
usage: fastboot [ <option> ] <command>

commands:
  update <filename>                        reflash device from update.zip
  flashall                                 flash boot + recovery + system
  flash <partition> [ <filename> ]         write a file to a flash partition
  erase <partition>                        erase a flash partition
  format <partition>                       format a flash partition
  getvar <variable>                        display a bootloader variable
  boot <kernel> [ <ramdisk> ]              download and boot kernel
  flash:raw boot <kernel> [ <ramdisk> ]    create bootimage and flash it
  devices                                  list all connected devices
  continue                                 continue with autoboot
  reboot                                   reboot device normally
  reboot-bootloader                        reboot device into bootloader
  help                                     show this help message

options:
  -w                                       erase userdata and cache (and format
                                           if supported by partition type)
  -u                                       do not first erase partition before
                                           formatting
  -s <specific device>                     specify device serial number
                                           or path to device port
  -l                                       with "devices", lists device paths
  -p <product>                             specify product name
  -c <cmdline>                             override kernel commandline
  -i <vendor id>                           specify a custom USB vendor id
  -b <base_addr>                           specify a custom kernel base address
  -n <page size>                           specify the nand page size. default:
2048
  -S <size>[K|M|G]                         automatically sparse files greater th
an
                                           size.  0 to disable

but also other commands like this

Code:
fastboot oem writecid
fastboot oem writeimei
etc...
 
  • Like
Reactions: vsn12
just type fastboot and youll be given a similar useage list for fastboot commands. it will depend on the phone,and bootloader version,but in general youll see something like:
c:\mini-adb_vigor>fastboot
usage: fastboot [ <option> ] <command>

commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader

options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default:
2048

c:\mini-adb_vigor>

if you want to know the oem commands then type: fastboot oem ?
c:\mini-adb_vigor>fastboot oem ?
... INFOcommand list
INFOrefurbish
INFOget_identifier_token
INFOcheckSbl1
INFOcheckHWSecurity
INFOcheckKeycardID
INFOenter
INFOkeytest
INFOheap
INFOboot
INFOreset
INFOpowerdown
INFOrebootRUU
INFOheap_test
INFOerase_phone_storage
INFOerase_userdata
INFOats
INFOrtask
INFOtask
INFOenableqxdm
INFOgencheckpt
INFOreadmeid
INFOreadpid
INFOwritepid
INFOreadcid
INFOwritecid
INFOreadimei
INFOwriteimei
INFOreadsecureflag
INFOwritesecureflag
INFOlock
INFOlist_partition_emmc
INFOload_emmc
INFOcheck_emmc
INFOcheck_emmc_mid
INFOread_mmc
INFOload_modem_emmc
INFOget_wp_info_emmc
INFOsend_wp_info_emmc
INFOget_ext_csd_emmc
INFOget_sector_info_emmc
OKAY [ 0.049s]
finished. total time: 0.050s

c:\mini-adb_vigor>

an eng or "patched" hboot will less restrictions(for example fastboot flash all partitions),and more oem commands.

for comparison,the above oem ? output was from a normal,ship s-on rezound. the following is from an eng(or engineering) hboot:
(bootloader) command list
(bootloader) mb
(bootloader) mh
(bootloader) mw
(bootloader) ew
(bootloader) eh
(bootloader) eb
(bootloader) mmu
(bootloader) ram_test
(bootloader) jump
(bootloader) test
(bootloader) sdtest
(bootloader) eraseconfig
(bootloader) writeconfig
(bootloader) readconfig
(bootloader) writesku
(bootloader) readsku
(bootloader) rflash
(bootloader) tflash
(bootloader) block_test
(bootloader) partition_test
(bootloader) rbchk
(bootloader) erasesd
(bootloader) btrouter
(bootloader) nfcrouter
(bootloader) nfcreader
(bootloader) nfccard
(bootloader) nfcversion
(bootloader) nfcdl
(bootloader) nfctransaction
(bootloader) tick
(bootloader) heaptable
(bootloader) sysinfo
(bootloader) emapi
(bootloader) emapiTest
(bootloader) emapiCountryID
(bootloader) emapiWlanMac
(bootloader) emapiSetDefCal
(bootloader) emapiReadCal
(bootloader) emapiReadbtaddr
(bootloader) lr
(bootloader) imgcrc
(bootloader) resetautoimage
(bootloader) resetpreferdiag
(bootloader) resetRUUflag
(bootloader) writeserialno
(bootloader) readserialno
(bootloader) battcheck
(bootloader) enter
(bootloader) gotofastboot
(bootloader) gotohboot
(bootloader) writemid
(bootloader) usbtestmode
(bootloader) eraseWifiFlash
(bootloader) erase
(bootloader) readmbserialno
(bootloader) listpartition
(bootloader) erasebcid
(bootloader) writebcid
(bootloader) readbcid
(bootloader) fmrouter
(bootloader) fmtx
(bootloader) resetuP
(bootloader) bdaddress
(bootloader) readbdaddr
(bootloader) resetgift
(bootloader) wMfgTp
(bootloader) rMfgTp
(bootloader) emptypagecheck
(bootloader) saveprt2sd
(bootloader) savemem2sd
(bootloader) savefb2sd
(bootloader) emapiInit
(bootloader) emapiChannel
(bootloader) emapiBand
(bootloader) emapiRate
(bootloader) emapiRateset
(bootloader) emapiCountry
(bootloader) emapiTXpwr1
(bootloader) emapiPkteng_start
(bootloader) emapiPkteng_stop
(bootloader) emapiOut
(bootloader) emapiFqacurcy
(bootloader) emapiCrsuprs
(bootloader) emapiUp
(bootloader) emapiDown
(bootloader) emapiMpc
(bootloader) emapiCounters
(bootloader) emapiVersion
(bootloader) emapiEtheraddr
(bootloader) emapinRate
(bootloader) emapiSetIrqPin
(bootloader) usblog
(bootloader) bkflash2emmc
(bootloader) fl
(bootloader) loaddiag
(bootloader) lnb
(bootloader) init_a1026_fw
(bootloader) checkKeyCard
(bootloader) loopback
(bootloader) spitest
(bootloader) i2ctest
(bootloader) pmic8058_led_test
(bootloader) ats
(bootloader) gpiow
(bootloader) gpior
(bootloader) clock
(bootloader) i2cr
(bootloader) i2cw
(bootloader) i2ctest
(bootloader) ulpi
(bootloader) changeCid
(bootloader) powertest
(bootloader) read_l2_acc_fuse
(bootloader) ltetest
(bootloader) sdio_loopback
(bootloader) sdio_setsize
(bootloader) sdio_readblk
(bootloader) sdio_writeblk
(bootloader) sdio_readblk
(bootloader) sdio_dumpreg
(bootloader) get_mdm9k_serial
(bootloader) clear_mdm9k_serial
(bootloader) update_prkey
(bootloader) emmc_boot
(bootloader) 8x60i2cr
(bootloader) 8x60i2crNoAddr
(bootloader) 8x60i2cwNoAddr
(bootloader) 8x60i2cw
(bootloader) poweron
(bootloader) poweroff
(bootloader) setvol
(bootloader) spi
(bootloader) fat
(bootloader) pmgpiow
(bootloader) pmgpior
(bootloader) 8058vregon
(bootloader) 8058vregoff
(bootloader) 8058vregw
(bootloader) 8058vregr
(bootloader) 8901vregon
(bootloader) 8901vregoff
(bootloader) 8901vregw
(bootloader) 8901vregr
(bootloader) mipi_test
(bootloader) chargeron
(bootloader) chargeroff
(bootloader) adc
(bootloader) readsimlocktype
(bootloader) enablesimlock
(bootloader) addsimlockcode
(bootloader) clearsimlockcode
(bootloader) listsimlockcode
(bootloader) clearunlockrecord
(bootloader) lite_heap_test
(bootloader) vibrate_test
(bootloader) getrtc
(bootloader) setrtc
(bootloader) getrtcalarm
(bootloader) setrtcalarm
(bootloader) pgfs
(bootloader) bumpclk
(bootloader) acpuclk_get
(bootloader) acpuclk_set
(bootloader) rpmclk_set
(bootloader) rpmclk_get
(bootloader) oschalt
(bootloader) tz_req
(bootloader) blow_efuse
(bootloader) blow_qfuse_cfg
(bootloader) dump_tzlog
(bootloader) fdisk_emmc
(bootloader) set_partition_emmc
(bootloader) erase_emmc
(bootloader) test_emmc
(bootloader) sector_erase_emmc
(bootloader) fat_format_emmc
(bootloader) init_emmc
(bootloader) reinit_emmc
(bootloader) write_mmc
(bootloader) set_wp_emmc
(bootloader) write_prot_test
(bootloader) clear_wp_emmc
(bootloader) set_enh_area_emmc
(bootloader) refurbish
(bootloader) get_identifier_token
(bootloader) checkSbl1
(bootloader) checkHWSecurity
(bootloader) checkKeycardID
(bootloader) enter
(bootloader) keytest
(bootloader) heap
(bootloader) boot
(bootloader) reset
(bootloader) powerdown
(bootloader) rebootRUU
(bootloader) heap_test
(bootloader) rtask
(bootloader) task
(bootloader) enableqxdm
(bootloader) gencheckpt
(bootloader) readmeid
(bootloader) readpid
(bootloader) writepid
(bootloader) readcid
(bootloader) writecid
(bootloader) readimei
(bootloader) writeimei
(bootloader) readsecureflag
(bootloader) writesecureflag
(bootloader) lock
(bootloader) list_partition_emmc
(bootloader) load_emmc
(bootloader) check_emmc
(bootloader) check_emmc_mid
(bootloader) read_mmc
(bootloader) load_modem_emmc
(bootloader) get_wp_info_emmc
(bootloader) send_wp_info_emmc
(bootloader) get_ext_csd_emmc
(bootloader) get_sector_info_emmc

not sure if the normal commands differe from the one s,the rezound was handy. i also do not believe there is an eng one s hboot available for comparison.

hope that helps :)
 
Upvote 0
eng= engineering

in the bootloader screen,it will say "eng" where it currently says "ship"

eng bootloaders were initially prepaired for testers of pre-release and developmental devices to make specific changes. they were never really intended to be in the public's hands ;) as i mentioned,i dont think ive ever seen one for the one s. im sure one exists,but no one has leaked it,or accidentally found a device with it,if it does.

once,i completely randomly stumbled upon an eng hboot for the htc merge,while helping a user in puerto rico(his friends device had one) :eek:

patched= modified stock

it is simply a stock hboot that is "patched" or modified to provide some(but not all) of the extra fastboot commands,and elimiate the restrictions of the stock version(example,being able to "fastboot flash" ALL partitions)

patched hboots are not signed with an official htc signiture,and therefore,can ONLY be installed on s off phones. sneeking one onto an s on device(or turning a device s on with one present) will result in a potentially unrecoverable hard brick.

an example of a patched hboot is the hboots installed when one runs the "revolutionary" tool on older phones that that particular tool works on.

come to think of it,ive not seen any patched hboots for the one s,either,but then,im not in the xda one s forums daily

further questions? :)
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones