adb: add track-devices-l service.
Add a way to get the full `devices -l` output on a continuous basis.
Test: manual
Change-Id: I2270cc0a0d7e1384ce19631724ddf2462d963ade
diff --git a/services.cpp b/services.cpp
index cc840b8..dbf71d3 100644
--- a/services.cpp
+++ b/services.cpp
@@ -441,7 +441,9 @@
#if ADB_HOST
asocket* host_service_to_socket(const char* name, const char* serial, TransportId transport_id) {
if (!strcmp(name,"track-devices")) {
- return create_device_tracker();
+ return create_device_tracker(false);
+ } else if (!strcmp(name, "track-devices-l")) {
+ return create_device_tracker(true);
} else if (android::base::StartsWith(name, "wait-for-")) {
name += strlen("wait-for-");