From ad0c6b5d8c24180569e6a38a2fd56a26a40dcf5d Mon Sep 17 00:00:00 2001 From: Alex Buynytskyy Date: Tue, 19 Jul 2022 18:38:09 +0000 Subject: Revert "Compress .so files for PackageManager to reclaim the space" This reverts commit 61a0a35dd5ef7dc73c49dee549296765c8fcb706. Reason for revert: debugging b/237904436 Change-Id: I557e7b69cd5917188c33cbd42293307efa9d6f8f --- core/jni/com_android_internal_content_NativeLibraryHelper.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/jni/com_android_internal_content_NativeLibraryHelper.cpp b/core/jni/com_android_internal_content_NativeLibraryHelper.cpp index ef6fd7dd6829..be82879c8411 100644 --- a/core/jni/com_android_internal_content_NativeLibraryHelper.cpp +++ b/core/jni/com_android_internal_content_NativeLibraryHelper.cpp @@ -36,7 +36,6 @@ #include #include #include -#include #include @@ -254,16 +253,6 @@ copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntr return INSTALL_FAILED_CONTAINER_ERROR; } - // If a filesystem like f2fs supports per-file compression, set the compression bit before data - // writes - unsigned int flags; - if (ioctl(fd, FS_IOC_GETFLAGS, &flags) == -1) { - ALOGE("Failed to call FS_IOC_GETFLAGS on %s: %s\n", localTmpFileName, strerror(errno)); - } else if ((flags & FS_COMPR_FL) == 0) { - flags |= FS_COMPR_FL; - ioctl(fd, FS_IOC_SETFLAGS, &flags); - } - if (!zipFile->uncompressEntry(zipEntry, fd)) { ALOGE("Failed uncompressing %s to %s\n", fileName, localTmpFileName); close(fd); -- cgit v1.2.3-59-g8ed1b