diff options
| author | 2022-07-20 19:00:10 +0000 | |
|---|---|---|
| committer | 2022-07-20 19:00:10 +0000 | |
| commit | de1f0e1aeac992f572b6d2fa344b85e6bcd51965 (patch) | |
| tree | 42a11b5358c3e67bc18cbe10b3bc7af34d4f6c57 | |
| parent | ce0c43434bfbe73047c30fcb53ec4c633d9705b1 (diff) | |
| parent | e0420dc808576235e704590fef428aaa2ab9c27f (diff) | |
Merge "Revert "Compress .so files for PackageManager to reclaim the space"" am: 67610047b0 am: 7dafb8c427 am: a8e2d0bf9e am: e0420dc808
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2159418
Change-Id: Ibaf4552ed73852cad0e84d36bde46d41de3e5773
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | core/jni/com_android_internal_content_NativeLibraryHelper.cpp | 11 |
1 files changed, 0 insertions, 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 <inttypes.h> #include <sys/stat.h> #include <sys/types.h> -#include <linux/fs.h> #include <memory> @@ -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); |