Merge "Merge "[incremental native lib] skip writing to zero byte files" into rvc-dev am: 9cce14eb0e am: 042434f4ee" into rvc-d1-dev-plus-aosp am: 205e0dc3da

Change-Id: Ib12ebe363cf9ab0e25978173153f8ff6cf610494
This commit is contained in:
Automerger Merge Worker
2020-03-19 07:05:37 +00:00

View File

@@ -1169,6 +1169,10 @@ bool IncrementalService::configureNativeBinaries(StorageId storage, std::string_
// If one lib file fails to be created, abort others as well
break;
}
// If it is a zero-byte file, skip data writing
if (uncompressedLen == 0) {
continue;
}
// Write extracted data to new file
std::vector<uint8_t> libData(uncompressedLen);