Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to prevent the automatic reboot that follows

fastboot -w

? This would be quite useful for batch files. Thanks for any hint :-)

share|improve this question
up vote 1 down vote accepted
usage: fastboot [ <option> ] <command>

 update <filename>                        reflash device from
 flashall                                 'flash boot' + 'flash 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

 -w                                       erase userdata and cache
 -s <serial number>                       specify device serial number
 -p <product>                             specify product name
 -c <cmdline>                             override kernel commandline

I think it's safe to assume that the options listed here are the options you have available to you when running the fastboot binary. Since there doesn't seem to be an override as a native function of fastboot, your only solution would be to access the source code of fastboot (if available) and remove or alter the part of the code where the device reboots.

Note that there might be very good reasons as to why the device reboots at that stage, so I'd be careful with messing around with it.

share|improve this answer
actually there are some hidden oem functions on fastboot, so I am not sure if there really is no option for it. for now, selected as correct answer, as it's the only one :P – Oct 10 '12 at 9:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.