aboutsummaryrefslogtreecommitdiffstats
path: root/adb/adb.h
diff options
context:
space:
mode:
authorScott Anderson <saa@android.com>2012-05-25 14:10:02 -0700
committerScott Anderson <saa@android.com>2012-06-05 11:04:55 -0700
commite82c2db05cae70a0490a1f84b7211ef42c329671 (patch)
tree73c3f21c27e31a900c7e7c24722dd03f4698e2fe /adb/adb.h
parent3608d832425ca3a6d00c4040f3bb979c5aa49899 (diff)
downloadsystem_core-e82c2db05cae70a0490a1f84b7211ef42c329671.tar.gz
system_core-e82c2db05cae70a0490a1f84b7211ef42c329671.tar.bz2
system_core-e82c2db05cae70a0490a1f84b7211ef42c329671.zip
adb: Transmit key properties in banner of connect message
protocol.txt says that the connect message should have three fields: <systemtype>:<serialno>:<banner> In reality, what is transmitted is simply: <systemtype>:: The serialno is obtained via other means so doesn't really need to be a part of the connect message. This change puts the ro.product.name, ro.product.model and ro.product.device properties in the <banner> for devices. Each property is terminated by a semicolon (;) with the key and value separated by an equals sign (=). Example message: device::ro.product.name=<prd>;ro.product.model=<mdl>;ro.product.device=<dev>; Making this change will enable the device list to provide more information to the user and to give the potential for being able to select which device to talk to with the -s option. Change-Id: I09200decde4facb8fc9b4056fdae910155f2bcb9 Signed-off-by: Scott Anderson <saa@android.com>
Diffstat (limited to 'adb/adb.h')
-rw-r--r--adb/adb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/adb/adb.h b/adb/adb.h
index b99d7ac8..e095d70a 100644
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -185,6 +185,8 @@ struct atransport
/* used to identify transports for clients */
char *serial;
char *product;
+ char *model;
+ char *device;
char *devpath;
int adb_port; // Use for emulators (local transport)