From 3f33e094536bd7ddd19e467c92e3f571c9c32724 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Wed, 12 Jun 2024 16:56:50 +0500 Subject: [PATCH] Add recovery state change description --- adb/device_state.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/adb/device_state.go b/adb/device_state.go index 81f018a..6d319d6 100644 --- a/adb/device_state.go +++ b/adb/device_state.go @@ -1,15 +1,14 @@ package adb -import ( - "github.com/timoxa0/goadb/internal/errors" -) +import "github.com/timoxa0/goadb/internal/errors" // DeviceState represents one of the 3 possible states adb will report devices. // A device can be communicated with when it's in StateOnline. // A USB device will make the following state transitions: // -// Plugged in: StateDisconnected->StateOffline->StateOnline -// Unplugged: StateOnline->StateDisconnected +// Plugged in: StateDisconnected->StateOffline->StateOnline +// Plugged in (Recoveory): StateDisconnected->StateOnline +// Unplugged: StateOnline->StateDisconnected // //go:generate stringer -type=DeviceState type DeviceState int8