Merge \\\\"Fix the sense of a test in \\\\"adb sideload\\\\".\\\\" am: 62cc17de8c am: e9dfa4f753 am: e691def5df

am: 049da3749a

Change-Id: Ia6663b85a83582fa211ebc49e17e22e82c8580ae
This commit is contained in:
Elliott Hughes 2016-06-14 00:02:30 +00:00 committed by android-build-merger
commit 413e6cb75e

View file

@ -904,7 +904,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");