diff options
| author | Joshua Duong <joshuaduong@google.com> | 2020-02-25 21:37:14 -0800 |
|---|---|---|
| committer | Nikita Ioffe <ioffe@google.com> | 2020-02-26 16:26:39 +0000 |
| commit | ac29885a0efe98678dd54665ef52079416bc230b (patch) | |
| tree | e018f570289f27b58f835e6b11d54158cc21202d /core/java/android/debug/AdbManagerInternal.java | |
| parent | 6f01c62d29d90c143b93e461f5b61d4f11127e6c (diff) | |
Allow UsbDeviceManager to start adbd again.
There's some weird state where if persist.sys.usb.config=none,adb, then
adbd won't get started. Give back adbd start permissions to
UsbDeviceManager to see if that fixes the issue.
Bug: 150130503
Bug: 150116813
Test: adb shell su 0 setprop persist.sys.usb.config none,adb; adb reboot
adb should be online after.
Change-Id: I36c6ef4b20d58570a2d51ed70088ae5c54d6687d
Exempt-From-Owner-Approval: Fix adbd offline failure
(cherry picked from commit 7a3800993df55f87ce6493bf304730b9ffd91ad5)
Diffstat (limited to 'core/java/android/debug/AdbManagerInternal.java')
| -rw-r--r-- | core/java/android/debug/AdbManagerInternal.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/debug/AdbManagerInternal.java b/core/java/android/debug/AdbManagerInternal.java index 0bd9f19f91fe..d730129507d7 100644 --- a/core/java/android/debug/AdbManagerInternal.java +++ b/core/java/android/debug/AdbManagerInternal.java @@ -53,4 +53,14 @@ public abstract class AdbManagerInternal { * Returns the file that contains all of the ADB keys and their last used time. */ public abstract File getAdbTempKeysFile(); + + /** + * Starts adbd for a transport. + */ + public abstract void startAdbdForTransport(byte transportType); + + /** + * Stops adbd for a transport. + */ + public abstract void stopAdbdForTransport(byte transportType); } |
