Skip to content

Commit 8170f4c

Browse files
Add new device state "unauthorized"
JB+ devices need the user to authorize the computer trying to connect to the device. This will allow developers using this library to easily get the device state, which is updated with device.update()
1 parent 5a9db2d commit 8170f4c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

AndroidLib/Classes/AndroidController/Device.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ private DeviceState SetState()
7474
return DeviceState.RECOVERY;
7575
case "fastboot":
7676
return DeviceState.FASTBOOT;
77+
case "unauthorized":
78+
return DeviceState.UNAUTHORIZED;
7779
default:
7880
return DeviceState.UNKNOWN;
7981
}

AndroidLib/Classes/AndroidController/Enums.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ public enum DeviceState
5555
/// </summary>
5656
FASTBOOT,
5757

58+
/// <summary>
59+
/// <see cref="Device"/> is not authorized
60+
/// </summary>
61+
UNAUTHORIZED,
62+
5863
/// <summary>
5964
/// <see cref="Device"/> is in an unknown state
6065
/// </summary>

0 commit comments

Comments
 (0)