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-26 12:27:17 -0700
commit81e9c42acfaf17b81ec576365c0ba646438c07fc (patch)
tree7ee278154eeb305d522284cc50abeccb70d1374c /adb.h
parent641c7080e7146eb5722efba28e9d652d8aaa5484 (diff)
downloadadb-81e9c42acfaf17b81ec576365c0ba646438c07fc.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 Merged-In: I367d7339fe68006aba09a1e3db6370d472296676 (cherry picked from commit 55d407ec4a0b23f1e20db298b4989068a820087f)
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;