Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02e94a4f authored by Josh Gao's avatar Josh Gao
Browse files

Revert "Revert "adbd: switch the default USB implementation.""

This reverts commit 0d780391.

Reason for revert: cause for original revert probably fixed by https://android-review.googlesource.com/c/platform/system/core/+/914673

Change-Id: I9a7eead54fca3a1a9dfd93f650f01c056d39339e
parent 0d780391
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -628,9 +628,10 @@ static void usb_ffs_open_thread() {
}

void usb_init() {
    if (!android::base::GetBoolProperty("persist.adb.nonblocking_ffs", false)) {
        usb_init_legacy();
    } else {
    bool use_nonblocking = android::base::GetBoolProperty("persist.adb.nonblocking_ffs", true);
    if (use_nonblocking) {
        std::thread(usb_ffs_open_thread).detach();
    } else {
        usb_init_legacy();
    }
}