summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrevd <trevd1234@gmail.com>2013-04-17 14:34:23 +0100
committertrevd <trevd1234@gmail.com>2013-04-17 14:34:23 +0100
commita5ad539cff9dba92650425b8bec79c071ef5993b (patch)
tree174c3f5f85843468822b336220001b54c56b20f7
parent578b74734c1cfc773f3213a23a7195aa4b5b97aa (diff)
downloadsystem_core-a5ad539cff9dba92650425b8bec79c071ef5993b.zip
system_core-a5ad539cff9dba92650425b8bec79c071ef5993b.tar.gz
system_core-a5ad539cff9dba92650425b8bec79c071ef5993b.tar.bz2
adb : add missing connection states
Both CS_RECOVERY and CS_SIDELOAD where not being checked by connection_state_name which resulted in adb get-state returning unknown when a device is in those modes. Change-Id: I00716024d6a0bdb68d6e2380c8cd7b5d056bd15f Signed-off-by: trevd <trevd1234@gmail.com>
-rw-r--r--adb/adb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/adb/adb.c b/adb/adb.c
index 71b7a8b..cd7f16c 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -401,6 +401,10 @@ static char *connection_state_name(atransport *t)
return "bootloader";
case CS_DEVICE:
return "device";
+ case CS_RECOVERY:
+ return "recovery";
+ case CS_SIDELOAD:
+ return "sideload";
case CS_OFFLINE:
return "offline";
default: