[incremental native lib] skip writing to zero byte files
Test: adb install --incremental /google/data/rw/teams/tradefed/testdata/thirdparty_apps_stable/MX_Player_1.9.17.apk BUG: 150795871 Change-Id: Idca09929f41424edb527b9b89dea1974c1f8ea46
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user