Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

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
add comment

1 Answer

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

commands:
 update <filename>                        reflash device from update.zip
 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

options:
 -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
add comment

Your Answer

 
discard

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.