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

Commit d4c49c4b authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "adbd: switch the default USB implementation." am: 57826002

am: 269ef5d0

Change-Id: I479f1de000ad2c9732550e0dc78a23ece811ff16
parents b891c462 269ef5d0
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();
    }
}