Merge pull request #115 from dllewellyn/feature/add_extra_device_statuses

Adding a few missing device states (taken from https://github.com/aos
This commit is contained in:
Samuel Carlsson 2019-01-06 08:42:35 +01:00 committed by GitHub
commit 02fc952764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -13,7 +13,11 @@ public class JadbDevice {
Offline,
Device,
Recovery,
BootLoader
BootLoader,
Unauthorized,
Authorizing,
Sideload,
Connecting
}
//noinspection OctalInteger
@ -41,6 +45,10 @@ public class JadbDevice {
case "offline": return State.Offline;
case "bootloader": return State.BootLoader;
case "recovery": return State.Recovery;
case "unauthorized": return State.Unauthorized;
case "authorizing" : return State.Authorizing;
case "connecting": return State.Connecting;
case "sideload": return State.Sideload;
default: return State.Unknown;
}
}