Adding a few missing device states (taken from 5fdd77b2f1/adb/transport.cpp)

This commit is contained in:
llewellynd 2019-01-02 11:33:55 +00:00
parent 4546c0583f
commit 7138fccfc6
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;
}
}