aboutsummaryrefslogtreecommitdiff
path: root/adb.h
diff options
context:
space:
mode:
authorAlex Buynytskyy <alexbuy@google.com>2018-12-12 10:48:50 -0800
committerAlex Buynytskyy <alexbuy@google.com>2019-01-07 15:45:11 +0000
commitef34f0105c05f4d84480525aef30c29541121027 (patch)
treed6f5b58f7bb905f84f4f50a1fc9a67769c3ea03d /adb.h
parent6dd5f770534d52c3624cd8500d3f51042902598b (diff)
downloadadb-ef34f0105c05f4d84480525aef30c29541121027.tar.gz
Adding Android Binder Bridge (abb) utility launched from adbd.
Once launched, abb will listen for incoming Binder cli requests. Executing in-process provides 6x latency improvement (125ms vs 25ms on PixelXL) for commands like 'package path' Intended usage by Android Studio for fast deployment and patching of APKs. Test: manual BUG: 111621042 Change-Id: Ica84eb2ec9628efa441ecd627b119f3361feaf9f
Diffstat (limited to 'adb.h')
-rw-r--r--adb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/adb.h b/adb.h
index 47ea0e84..d79cd2d4 100644
--- a/adb.h
+++ b/adb.h
@@ -153,6 +153,10 @@ asocket* daemon_service_to_socket(std::string_view name);
#endif
#if !ADB_HOST
+unique_fd execute_binder_command(std::string_view command);
+#endif
+
+#if !ADB_HOST
int init_jdwp(void);
asocket* create_jdwp_service_socket();
asocket* create_jdwp_tracker_service_socket();
@@ -202,6 +206,9 @@ extern const char* adb_device_banner;
#define CHUNK_SIZE (64 * 1024)
+// Argument delimeter for adb abb command.
+#define ABB_ARG_DELIMETER ('\0')
+
#if !ADB_HOST
#define USB_FFS_ADB_PATH "/dev/usb-ffs/adb/"
#define USB_FFS_ADB_EP(x) USB_FFS_ADB_PATH #x