From 356fd364adb98548ca4c285896e98559fdf549f9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 13 Jun 2016 15:01:13 -0700 Subject: [PATCH] Fix the sense of a test in "adb sideload". Change-Id: I516a2ad2d74d9322ff9eb2e4cd3c3829e5cbda99 --- adb/commandline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/commandline.cpp b/adb/commandline.cpp index 82fa19a17..b815fef50 100644 --- a/adb/commandline.cpp +++ b/adb/commandline.cpp @@ -889,7 +889,7 @@ static int adb_sideload_host(const char* fn) { android::base::StringPrintf("sideload-host:%d:%d", sz, SIDELOAD_HOST_BLOCK_SIZE); std::string error; unique_fd fd(adb_connect(service, &error)); - if (fd >= 0) { + if (fd < 0) { // Try falling back to the older sideload method. Maybe this // is an older device that doesn't support sideload-host. printf("\n");