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

This commit is contained in:
Josh Gao 2019-03-19 19:44:00 +00:00 committed by Gerrit Code Review
commit affe351420

View file

@ -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 {