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 am: 83bdd541f4

Change-Id: Iea976105e9058318db2abc557b59cbc18bbd4afc
This commit is contained in:
Automerger Merge Worker
2020-03-19 07:24:03 +00:00

View File

@@ -1170,6 +1170,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);