diff options
author | Tao Bao <tbao@google.com> | 2019-04-07 23:24:03 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2019-04-17 13:47:02 -0700 |
commit | 9d6eca59402f9b25040e6ccd4f0d0e8420a399ba (patch) | |
tree | 04c4d923f6226147ed76a39f269482557dfcfbbf /adb.h | |
parent | beaa884078bcab7316678c3259303199b201addc (diff) | |
download | adb-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |