mirror of
https://github.com/revanced/jadb.git
synced 2025-02-05 15:07:33 +01: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…
x
Reference in New Issue
Block a user