aboutsummaryrefslogtreecommitdiff
path: root/adb.h
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2017-07-18 14:07:57 -0700
committerJerry Zhang <zhangjerry@google.com>2017-08-10 15:12:47 -0700
commita2cb8de5e68067a5e1d002886d5f3b42d91371e1 (patch)
tree407601ce55ea1ce100d9a99133072dba189c99b2 /adb.h
parent3bb1b57f4c4a2e97ce4bf34801a5e1fcd7c5ee1c (diff)
downloadadb-a2cb8de5e68067a5e1d002886d5f3b42d91371e1.tar.gz
adb: Use kernel aio for functionfs.
This method works around the downsides of ENDPOINT_ALLOC, namely that it is not affected by memory fragmentation and it uses an upstream interface. Also add libasyncio to provide the necessary syscalls to both adb and mtp. Add some small optimizations to file_sync. Bug: 37916658 Test: run adb push/pull Change-Id: If3b3be02b5e2d4f9cffec1b8ddc02a5768a51a1f
Diffstat (limited to 'adb.h')
-rw-r--r--adb.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/adb.h b/adb.h
index d6b2b818..1b1065f8 100644
--- a/adb.h
+++ b/adb.h
@@ -31,8 +31,7 @@
#include "usb.h"
constexpr size_t MAX_PAYLOAD_V1 = 4 * 1024;
-constexpr size_t MAX_PAYLOAD_V2 = 256 * 1024;
-constexpr size_t MAX_PAYLOAD = MAX_PAYLOAD_V2;
+constexpr size_t MAX_PAYLOAD = 1024 * 1024;
constexpr size_t LINUX_MAX_SOCKET_SIZE = 4194304;