diff options
author | trevd <trevd1234@gmail.com> | 2013-04-17 14:34:23 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-05-05 21:29:38 -0700 |
commit | 1a51d7fefe18a7142a5483a9d3345beee230fe16 (patch) | |
tree | 596d6bea5b8e7e704b86b21915732c84c9299e2b | |
parent | b66a4a451694edef19b1c23dedcfc459007336fb (diff) | |
download | system_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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |