Take the 2-minute tour ×

Is it possible to prevent the automatic reboot that follows

fastboot -w image.zip

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

share|improve this question

1 Answer 1

up vote 1 down vote accepted
usage: fastboot [ <option> ] <command>

 update <filename>                        reflash device from update.zip
 flashall                                 'flash boot' + 'flash system'
 erase <partition>                        erase a flash partition
 getvar <variable>                        display a bootloader variable
 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 –  stefan.at.wpf Oct 10 '12 at 9:05

Your Answer


