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

This commit is contained in:
Automerger Merge Worker
2020-03-19 06:52:37 +00:00
committed by Android (Google) Code Review

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);