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

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

Merge "adbd: support ro.adb.nonblocking_ffs."

am: affe3514

Change-Id: Ib8bd70545cbb5acbf4ed9d1f3272b9e0fa8a421b
parents 07ab1750 affe3514
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -640,7 +640,10 @@ static void usb_ffs_open_thread() {
}

void usb_init() {
    bool use_nonblocking = android::base::GetBoolProperty("persist.adb.nonblocking_ffs", true);
    bool use_nonblocking = android::base::GetBoolProperty(
            "persist.adb.nonblocking_ffs",
            android::base::GetBoolProperty("ro.adb.nonblocking_ffs", true));

    if (use_nonblocking) {
        std::thread(usb_ffs_open_thread).detach();
    } else {