diff --git a/fastboot/device/flashing.cpp b/fastboot/device/flashing.cpp index e3efbcba2eaf20c7b81dc51c361816ee7bd92f72..a383c54b2cbf2705516face062fe54b2884ddc51 100644 --- a/fastboot/device/flashing.cpp +++ b/fastboot/device/flashing.cpp @@ -72,7 +72,7 @@ int WriteCallback(void* priv, const void* data, size_t len) { } int FlashSparseData(int fd, std::vector<char>& downloaded_data) { - struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), true, false); + struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), true, true); if (!file) { return -ENOENT; } diff --git a/fastboot/fuzzy_fastboot/main.cpp b/fastboot/fuzzy_fastboot/main.cpp index dd64082f7a9496758410830ce0bc3e4098f7742e..8fb5a6a11b3c41b7d972728f6253fd434e62af54 100644 --- a/fastboot/fuzzy_fastboot/main.cpp +++ b/fastboot/fuzzy_fastboot/main.cpp @@ -570,7 +570,6 @@ TEST_F(Conformance, SparseCRCCheck) { buf.back() = buf.back() ^ 0x01; ASSERT_EQ(DownloadCommand(buf.size()), SUCCESS) << "Device rejected download command"; ASSERT_EQ(SendBuffer(buf), SUCCESS) << "Downloading payload failed"; - printf("%02x\n", (unsigned char)buf.back()); // It can either reject this download or reject it during flash if (HandleResponse() != DEVICE_FAIL) { EXPECT_EQ(fb->Flash("userdata"), DEVICE_FAIL)