mirror of
https://github.com/revanced/jadb.git
synced 2024-06-10 07:07:49 +02:00
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:
commit
02fc952764
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user