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

Commit c2970282 authored by Josh Gao's avatar Josh Gao Committed by Gerrit Code Review
Browse files

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

parents 216d158d 0d780391
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();
    }
}