[incremental] fix x86 native lib extraction

Test: atest CtsIncrementalInstallHostTestCases
BUG: 168138334
Change-Id: I7b76afbd88cf3f38c1527c9c917ce179e0bde589
This commit is contained in:
Songchun Fan
2020-09-29 11:45:18 -07:00
parent 46c6d7279b
commit 2ff2a488e6

View File

@@ -1468,7 +1468,7 @@ bool IncrementalService::configureNativeBinaries(StorageId storage, std::string_
// Need a shared pointer: will be passing it into all unpacking jobs.
std::shared_ptr<ZipArchive> zipFile(zipFileHandle, [](ZipArchiveHandle h) { CloseArchive(h); });
void* cookie = nullptr;
const auto libFilePrefix = path::join(constants().libDir, abi);
const auto libFilePrefix = path::join(constants().libDir, abi) + "/";
if (StartIteration(zipFile.get(), &cookie, libFilePrefix, constants().libSuffix)) {
LOG(ERROR) << "Failed to start zip iteration for " << apkFullPath;
return false;