aboutsummaryrefslogtreecommitdiff
path: root/SERVICES.TXT
diff options
context:
space:
mode:
Diffstat (limited to 'SERVICES.TXT')
-rw-r--r--SERVICES.TXT47
1 files changed, 44 insertions, 3 deletions
diff --git a/SERVICES.TXT b/SERVICES.TXT
index e0c95c42..c8d06a32 100644
--- a/SERVICES.TXT
+++ b/SERVICES.TXT
@@ -79,9 +79,6 @@ host:<request>
interpreted as 'any single device or emulator connected to/running on
the host'.
-<host-prefix>:get-product
- XXX
-
<host-prefix>:get-serialno
Returns the serial number of the corresponding device/emulator.
Note that emulator serial numbers are of the form "emulator-5554"
@@ -164,6 +161,22 @@ shell:
this to implement "adb shell", but will also cook the input before
sending it to the device (see interactive_shell() in commandline.c)
+shell,v2: (API>=24)
+ Variant of shell service which uses "shell protocol" in order to
+ differentiate stdin, stderr, and also retrieve exit code.
+
+exec:
+ Variant of shell which uses a raw PTY in order to not mangle output.
+
+abb: (API>=30)
+ Direct connection to Binder on device. This service does not use space
+ for parameter separator but "\u0000". Example:
+ abb:package0install-create
+
+abb_exec: (API>=30)
+ Variant of abb. Use a raw PTY in order to not mangle output. Example:
+ abb_exec:package0install-write
+
remount:
Ask adbd to remount the device's filesystem in read-write mode,
instead of read-only. This is usually necessary before performing
@@ -172,6 +185,12 @@ remount:
This request may not succeed on certain builds which do not allow
that.
+dev:<path>
+ Opens a device file and connects the client directly to it for
+ read/write purposes. Useful for debugging, but may require special
+ privileges and thus may not run on all devices. <path> is a full
+ path from the root of the filesystem.
+
tcp:<port>
Tries to connect to tcp port <port> on localhost.
@@ -227,6 +246,28 @@ track-jdwp
Note that there is no single-shot service to retrieve the list only once.
+track-app:
+ Improved version of "track-jdwp" service which also mentions whether the
+ app is profileable and its architecture. Each time the list changes,
+ a new messeage is sent (this service never stops).
+
+ Each message features a hex4 length prefix followed by a
+ human-readable protocol buffer. e.g.:
+
+ process {
+ pid: 18595
+ debuggable: true
+ architecture: "arm64"
+ }
+ process {
+ pid: 18407
+ debuggable: true
+ profileable: true
+ architecture: "arm64"
+ }
+
+ Note: Generate a parser from [app_processes.proto].
+
sync:
This starts the file synchronization service, used to implement "adb push"
and "adb pull". Since this service is pretty complex, it will be detailed