Add function to query ADB state

This is what the USB manager will use to query the current ADB state in
the future.

Bug: 63820489
Test: make
Change-Id: I70484f97e56af4e5104611dc3b43ef83885671d7
This commit is contained in:
Kenny Root
2018-01-19 13:24:01 -05:00
parent 33504d7d4f
commit a269b334d5
2 changed files with 12 additions and 0 deletions

View File

@@ -36,4 +36,9 @@ public abstract class AdbManagerInternal {
* @param transport previously-added ADB transport interface to be removed
*/
public abstract void unregisterTransport(IAdbTransport transport);
/**
* Returns {@code true} if ADB debugging is enabled.
*/
public abstract boolean isAdbEnabled();
}