platform_system_core/fastboot
Mark Wachsler bd446c76f3 Don't use control requests to read device serial numbers.
Instead of sending control requests to all devices to read their serial
numbers, read the cached strings from sysfs. This fixes two problems:
1) The control requests sometimes timed out, causing devices to show up
as "????????????????", and 2) a control request could mess up devices
which were in the middle of being flashed.

Also enumerate by walking sysfs rather than devs so that we can avoid
opening host controller devices, which can be slow. On a system with 10
EHCI controllers, fastboot devices now takes 7 msec instead of 700 msec.

Change-Id: I2ad2d58b48268d7950bd279fd6a6753dc2f79514
2013-09-16 18:08:07 -04:00
..
Android.mk resolved conflicts for merge of 20f5daa8 to master 2012-10-16 18:00:29 -07:00
bootimg.c fastboot: add support for some obscure args. 2013-03-07 17:06:41 -08:00
engine.c fastboot: add errno.h to fix windows build 2013-01-23 19:13:43 -08:00
engineering_key.p12 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fastboot.c fastboot: add support for some obscure args. 2013-03-07 17:06:41 -08:00
fastboot.h Update fastboot to wipe ext4 partitions before flashing 2012-10-02 19:10:51 -07: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 resolved conflicts for merge of 13081c69 to master 2012-05-01 18:34:22 -07:00
usb_linux.c Don't use control requests to read device serial numbers. 2013-09-16 18:08:07 -04:00
usb_osx.c resolved conflicts for merge of 13081c69 to master 2012-05-01 18:34:22 -07:00
usb_windows.c resolved conflicts for merge of 13081c69 to master 2012-05-01 18:34:22 -07:00
usbtest.c Remove trailing whitespaces 2012-02-28 07:21:08 -08: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