Merge \\\"Fix the sense of a test in \\\"adb sideload\\\".\\\" am: 62cc17de8c am: e9dfa4f753
am: e691def5df
Change-Id: I5320866a7eab668ad1f1d5fd38d57b55b19f3c70
diff --git a/adb/commandline.cpp b/adb/commandline.cpp
index 1f7dccb..ec0a467 100644
--- a/adb/commandline.cpp
+++ b/adb/commandline.cpp
@@ -904,7 +904,7 @@
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");