platform_system_core/fastboot
David Pursell aad72a533f fastboot: fix TCP protocol version check.
Currently the TCP handshake fails if the device TCP protocol version
doesn't match the host exactly, but the protocol is supposed to allow
for forwards compatibility by accepting any protocol version >= itself.
That way the other side can potentially lower its protocol to match and
keep going.

This CL fixes the protocol version check and adds corresponding unit
tests.

Bug: http://b/27220700
Change-Id: Ib17f0a55eb910105a27609bc94bf76a30442e92e
2016-02-17 10:00:09 -08:00
..
.clang-format fastboot: use cutils socket functions. 2016-01-21 09:53:11 -08:00
Android.mk fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
bootimg_utils.cpp Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
bootimg_utils.h Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
engine.cpp fastboot: show progress when sending sparse images. 2016-01-19 14:50:18 -08:00
fastboot.cpp fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
fastboot.h fastboot: show progress when sending sparse images. 2016-01-19 14:50:18 -08:00
fastboot_protocol.txt fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
fs.cpp Clarify and fix the intent of the partition-type checking code. 2015-11-02 14:05:57 -08:00
fs.h Clarify and fix the intent of the partition-type checking code. 2015-11-02 14:05:57 -08:00
protocol.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
socket.cpp fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket.h fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket_mock.cpp fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket_mock.h fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
socket_test.cpp fastboot: add Socket timeout detection. 2016-02-05 13:22:06 -08:00
tcp.cpp fastboot: fix TCP protocol version check. 2016-02-17 10:00:09 -08:00
tcp.h fastboot: add TCP protocol. 2016-02-03 13:57:45 -08:00
tcp_test.cpp fastboot: fix TCP protocol version check. 2016-02-17 10:00:09 -08:00
transport.h Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
udp.cpp fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
udp.h fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
udp_test.cpp fastboot: add UDP protocol. 2016-02-10 10:21:30 -08:00
usb.h fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_linux.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_osx.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usb_windows.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
usbtest.cpp fastboot: create Transport object (take 2). 2015-11-16 09:31:07 -08:00
util.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util_linux.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util_osx.cpp Move fastboot's Mac OS code to C++. 2015-06-24 11:17:28 -07:00
util_windows.cpp Move fastboot's Windows code to C++. 2015-06-24 10:48:43 -07:00