From c9fc665ec09441bfc326221766e0b428088c8c50 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 3 Apr 2024 01:43:35 +0000 Subject: Fix a misleading error message. I couldn't understand on https://issuetracker.google.com/273841150 why we saw a file truncation failure error message followed by a claim that ExtractToMemory() had failed, when only ExtractToFile() should be doing anything with files... Change-Id: Ic3b2c8b390a7b9f7a2e5c8b229b55c46acf6638e --- libs/androidfw/ZipFileRO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/androidfw/ZipFileRO.cpp') diff --git a/libs/androidfw/ZipFileRO.cpp b/libs/androidfw/ZipFileRO.cpp index d7b5914130ee..9d4b426a6759 100644 --- a/libs/androidfw/ZipFileRO.cpp +++ b/libs/androidfw/ZipFileRO.cpp @@ -304,7 +304,7 @@ bool ZipFileRO::uncompressEntry(ZipEntryRO entry, int fd) const _ZipEntryRO *zipEntry = reinterpret_cast<_ZipEntryRO*>(entry); const int32_t error = ExtractEntryToFile(mHandle, &(zipEntry->entry), fd); if (error) { - ALOGW("ExtractToMemory failed with %s", ErrorCodeString(error)); + ALOGW("ExtractToFile failed with %s", ErrorCodeString(error)); return false; } -- cgit v1.2.3-59-g8ed1b