Add recovery state change description

This commit is contained in:
timoxa0 2024-06-12 16:56:50 +05:00
parent 157162bea3
commit 3f33e09453

View file

@ -1,15 +1,14 @@
package adb package adb
import ( import "github.com/timoxa0/goadb/internal/errors"
"github.com/timoxa0/goadb/internal/errors"
)
// DeviceState represents one of the 3 possible states adb will report devices. // DeviceState represents one of the 3 possible states adb will report devices.
// A device can be communicated with when it's in StateOnline. // A device can be communicated with when it's in StateOnline.
// A USB device will make the following state transitions: // A USB device will make the following state transitions:
// //
// Plugged in: StateDisconnected->StateOffline->StateOnline // Plugged in: StateDisconnected->StateOffline->StateOnline
// Unplugged: StateOnline->StateDisconnected // Plugged in (Recoveory): StateDisconnected->StateOnline
// Unplugged: StateOnline->StateDisconnected
// //
//go:generate stringer -type=DeviceState //go:generate stringer -type=DeviceState
type DeviceState int8 type DeviceState int8