platform_system_core/fastboot
Mark Wachsler 157b00171a Wait for device to disappear after reboot-bootloader.
(Linux only for now) With fastboot reading serial numbers from sysfs, it had
become possible for a fastboot command issued immediately after rebooting
the bootloader to fail, because sysfs still thought the device was online.
To prevent this, after reboot-bootloader we wait for the device to disconnect.

Also made usb_read and usb_write fail immediately if the descriptor has been
closed; this prevents an incorrect error message ("Bad file descriptor")
when errors from fb_getvar are ignored (e.g., by fb_format_supported).

Also removed unused fd param from filter_usb_device, and simplified logic
in usb_write by using do/while instead of a special case for len == 0.

Change-Id: I799b857eab411fd8ad25f5777fc61c685152ea86
2013-10-17 20:06:32 +00:00
..
Android.mk Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
bootimg.c fastboot: add support for some obscure args. 2013-03-07 17:06:41 -08:00
engine.c Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
engineering_key.p12 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fastboot.c Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
fastboot.h Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
fastboot_protocol.txt Add old fastboot_protocol.txt 2012-12-06 09:34:34 -08: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 fastboot: add support for auto-resparsing large files 2012-07-09 22:17:58 -07:00
signfile.sh auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
usb.h Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
usb_linux.c Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
usb_osx.c Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
usb_windows.c Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
usbtest.c Remove trailing whitespaces 2012-02-28 07:21:08 -08:00
util.c Wait for device to disappear after reboot-bootloader. 2013-10-17 20:06:32 +00:00
util_linux.c Remove trailing whitespaces 2012-02-28 07:21:08 -08:00
util_osx.c Remove trailing whitespaces 2012-02-28 07:21:08 -08:00
util_windows.c fastboot: add support for auto-resparsing large files 2012-07-09 22:17:58 -07:00