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:
committed by
Android (Google) Code Review
commit
205e0dc3da
@@ -1169,6 +1169,10 @@ bool IncrementalService::configureNativeBinaries(StorageId storage, std::string_
|
|||||||
// If one lib file fails to be created, abort others as well
|
// If one lib file fails to be created, abort others as well
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// If it is a zero-byte file, skip data writing
|
||||||
|
if (uncompressedLen == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Write extracted data to new file
|
// Write extracted data to new file
|
||||||
std::vector<uint8_t> libData(uncompressedLen);
|
std::vector<uint8_t> libData(uncompressedLen);
|
||||||
|
|||||||
Reference in New Issue
Block a user