mirror of
https://github.com/revanced/jadb.git
synced 2025-02-10 17:26:46 +01:00
Adding a few missing device states (taken from 5fdd77b2f1/adb/transport.cpp
)
This commit is contained in:
parent
4546c0583f
commit
7138fccfc6
@ -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