Go to file
David Pursell 815c7beae7 fastboot: implement UDP networking interface.
This CL creates a UdpSocket class that provides a simple unified
interface to send and receive UDP packets for all platforms. Nothing
uses this interface yet except for tests.

The eventual goal is to implement a UDP protocol for fastboot, but it
makes the code much simpler and more modular if we handle the low-level
networking here independently of our custom fastboot protocol.

Some of the Windows code is similar to adb. I'd like to create a
library to hold the common functionality, but it is going to be a
little delicate to separate out the features unique to adb (e.g. the
custom file descriptor system), and I don't want to risk breaking
something in adb before the holiday break, so I'm hoping to get this in
for now and merge them early next year.

Tests are included in this CL to exercise this functionality using a
loopback connection.

Bug: http://b/26154763.
Tests: `fastboot_test` loopback tests on Linux, Mac, and Windows 7.
Change-Id: I81d1b7ace8d864246b99f6c80b8e29f64b8aa375
2015-12-16 16:16:08 -08:00
adb adb: split up reads longer than 16k. 2015-12-16 11:40:38 -08:00
adf Adf: Remove unused variable 2015-07-27 22:08:16 -07:00
base Rename base/ to android-base/. 2015-12-07 14:31:53 -08:00
cpio fs_config: replace getenv('OUT') by new fs_config parameter 2015-07-09 21:47:07 -07:00
crash_reporter crash_reporter: use libmetricscollectorservice for user crash event reports 2015-12-10 13:34:10 -08:00
debuggerd Merge "Switch from using sockaddr to sockaddr_storage." 2015-12-08 01:41:38 +00:00
fastboot fastboot: implement UDP networking interface. 2015-12-16 16:16:08 -08:00
fingerprintd Fingerprint: Add HAL close() code 2015-07-10 16:26:32 -07:00
fs_mgr Merge "fs_mgr: support upstream dm-verity without error correction" 2015-12-10 20:13:02 +00:00
gatekeeperd Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
healthd Merge "healthd: Support new PD and USB Type C types" 2015-11-13 17:39:54 +00:00
include Merge "cutils: trace: add DATABASE tag" 2015-12-14 21:12:52 +00:00
init Update init documentation to reflect fs_config changes 2015-12-11 13:20:38 -08:00
libbacktrace libbacktrace: check if elf file paths are valid before reading them. 2015-12-08 19:22:29 -08:00
libbinderwrapper libbinderwrapper: Add GetCallingUid() and GetCallingPid(). 2015-10-16 09:04:33 -06:00
libcutils Make host ashmem_create_region more robust. 2015-12-16 08:33:52 -08:00
libdiskconfig am eb075e28: am c8179498: am 2f62edf7: Merge "libdiskconfig: Turn on -Werror" 2014-05-21 21:19:27 +00:00
libion am 8d2cd035: am 2ddb9cb1: am ed43be39: Merge "Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it\'s not needed." 2015-04-02 22:07:16 +00:00
liblog liblog: logprint security ANDROID_LOG_WARN 2015-12-11 12:37:22 -08:00
libmemtrack Remove a hack for getting libpagerank's headers. 2015-09-22 22:35:30 -07:00
libmincrypt Enable clang compilation. 2015-05-14 10:53:48 -07:00
libnativebridge Use __ANDROID__ instead of HAVE_ANDROID_OS. 2015-07-30 09:33:43 -07:00
libnativeloader Temporary disable linker-namespaces 2015-12-11 18:15:41 -08:00
libnetutils am fb1ecbc5: am e6e71608: Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS." 2015-07-30 16:50:15 +00:00
libpackagelistparser packagelistparser: rename to libpackagelistparser 2015-11-05 12:12:38 -08:00
libpixelflinger libpixelflinger: MIPS64 assembler test bug fix 2015-12-15 15:23:01 +01:00
libprocessgroup processgroup: change the polling interval for killProcessGroup() 2015-06-16 13:59:32 -07:00
libsparse Fix parameter to lseek 2015-10-20 14:15:31 -07:00
libsuspend Adds a parameter to the wakeup_callback to report sucessful wakeup or suspend aborts. 2015-06-25 13:15:22 -07:00
libsync Fix isValid() condition for libsync tests 2015-11-05 10:07:53 -08:00
libsysutils Switch from using sockaddr to sockaddr_storage. 2015-12-07 16:07:46 +09:00
libusbhost libusbhost: Fix problem reading USB string descriptors on some quirky devices 2015-06-18 13:38:31 -07:00
libutils libutils: fix cache removal when callback invalidates the key 2015-11-20 14:54:51 +00:00
libziparchive Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
lmkd Switch from using sockaddr to sockaddr_storage. 2015-12-07 16:07:46 +09:00
logcat Merge "logd: liblog: logcat: Add LOG_ID_SECURITY" 2015-12-11 17:33:33 +00:00
logd logd: simpleperf inspired optimizations 2015-12-15 14:24:04 -08:00
logwrapper am eaf04aa0: am 3b94cef1: Merge "Add FORK_EXECVP_OPTION_CAPTURE_OUTPUT to logwrap.h" 2015-08-22 02:40:51 +00:00
metricsd Fix metricsd to conform to the lastest server schema 2015-12-16 12:23:14 -08:00
mkbootimg mkbootimg: misc typo fixes 2015-06-04 09:59:01 -07:00
reboot reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir Merge "rootdir: Execute update_verifier for A/B update." 2015-12-09 19:50:31 +00:00
run-as Fix the run-as environment to better match su. 2015-11-03 14:31:46 -08:00
sdcard Re-derive permissions after package changes. 2015-12-16 13:08:29 -07:00
toolbox Improve top(1) compatibility and interactive usefulness. 2015-11-13 08:30:12 -08:00
trusty/libtrusty Merge "Revert "[core][trusty] add gatekeeper module"" 2015-09-16 22:54:14 +00:00
tzdatacheck Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add a CleanSpec for grep/toolbox. 2015-03-22 18:04:54 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00