platform_system_core/fastboot
Brian Carlstrom eb31c0bdc0 fastboot should return non-zero exit code on error
When using fastboot in scripts, it currently is necessary to parse the
output for FAILED messages and possible other indications of
error. This happens relatively often, for example when there are radio
update issues. Fortunately, fb_execute_queue already has a notion that
an error has occured which is used to abort the queue execution.

This change makes the status value be returned from fb_execute_queue
to main which can then return it as an exit status. usage cases were
also changed to return 1.

Note the code already returned 1 for error in one other case when
there was a problem with boot, so there is a precedent for return 1 on
error in this program.

Change-Id: Ib0463b08c8f2569495e248dd84e331f7e3691039
2010-04-23 12:45:38 -07:00
..
Android.mk Fix adb, fastboot to compile in Windows SDK under Linux. 2010-04-13 15:28:26 -07:00
bootimg.c fastboot, mkbootimg: support alternate base addresses 2009-04-28 16:05:07 -07:00
engine.c fastboot should return non-zero exit code on error 2010-04-23 12:45:38 -07:00
engineering_key.p12 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fastboot.c fastboot should return non-zero exit code on error 2010-04-23 12:45:38 -07:00
fastboot.h fastboot should return non-zero exit code on error 2010-04-23 12:45:38 -07:00
genkey.sh auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
p12topem.sh auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
protocol.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
signfile.sh auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
usb.h Make fastboot say "no permissions" for non-writable devices. 2009-10-06 18:07:49 -07:00
usb_linux.c Fix flashstation breakage. 2009-10-07 17:24:39 -07:00
usb_osx.c Make fastboot say "no permissions" for non-writable devices. 2009-10-06 18:07:49 -07:00
usb_windows.c Make fastboot say "no permissions" for non-writable devices. 2009-10-06 18:07:49 -07:00
usbtest.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
util_linux.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
util_osx.c get rid of utils/executablepath.h, which now lives in the simulator 2009-08-26 14:46:18 -07:00
util_windows.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00