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

Commit 0d780391 authored by Josh Gao's avatar Josh Gao
Browse files

Revert "adbd: switch the default USB implementation."

This reverts commit 12f32848.

Reason for revert: possibly causing b/126388431

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

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