summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrevd <trevd1234@gmail.com>2013-04-17 14:34:23 +0100
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-05-05 21:29:38 -0700
commit1a51d7fefe18a7142a5483a9d3345beee230fe16 (patch)
tree596d6bea5b8e7e704b86b21915732c84c9299e2b
parentb66a4a451694edef19b1c23dedcfc459007336fb (diff)
downloadsystem_core-1a51d7fefe18a7142a5483a9d3345beee230fe16.zip
system_core-1a51d7fefe18a7142a5483a9d3345beee230fe16.tar.gz
system_core-1a51d7fefe18a7142a5483a9d3345beee230fe16.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 07bfbe5..3202d45 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -399,6 +399,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: