aboutsummaryrefslogtreecommitdiff
path: root/adb.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-07 23:24:03 -0700
committerTao Bao <tbao@google.com>2019-04-17 13:47:02 -0700
commit9d6eca59402f9b25040e6ccd4f0d0e8420a399ba (patch)
tree04c4d923f6226147ed76a39f269482557dfcfbbf /adb.h
parentbeaa884078bcab7316678c3259303199b201addc (diff)
downloadadb-9d6eca59402f9b25040e6ccd4f0d0e8420a399ba.tar.gz
adb: Recognize rescue mode.
This CL adds client support to recognize the rescue mode (which will be served by recovery image). It also allows waiting for a device to enter rescue mode. The support for the actual rescue commands will be added in follow-up CLs. Bug: 128415917 Test: `adb devices` recognizes devices under rescue mode. Test: `adb wait-for-rescue` waits for device to be in rescue mode. Change-Id: I367d7339fe68006aba09a1e3db6370d472296676
Diffstat (limited to 'adb.h')
-rw-r--r--adb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/adb.h b/adb.h
index c60dcbc1..3a6f059b 100644
--- a/adb.h
+++ b/adb.h
@@ -107,6 +107,7 @@ enum ConnectionState {
kCsHost,
kCsRecovery,
kCsSideload,
+ kCsRescue,
};
inline bool ConnectionStateIsOnline(ConnectionState state) {
@@ -116,6 +117,7 @@ inline bool ConnectionStateIsOnline(ConnectionState state) {
case kCsHost:
case kCsRecovery:
case kCsSideload:
+ case kCsRescue:
return true;
default:
return false;