Loading core/jni/Android.bp +0 −4 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ soong_config_module_type { config_namespace: "ANDROID", bool_variables: [ "release_binder_death_recipient_weak_from_jni", "release_package_libandroid_runtime_punch_holes", ], properties: [ "cflags", Loading Loading @@ -66,9 +65,6 @@ cc_library_shared_for_libandroid_runtime { release_binder_death_recipient_weak_from_jni: { cflags: ["-DBINDER_DEATH_RECIPIENT_WEAK_FROM_JNI"], }, release_package_libandroid_runtime_punch_holes: { cflags: ["-DENABLE_PUNCH_HOLES"], }, }, cpp_std: "gnu++20", Loading core/jni/com_android_internal_content_NativeLibraryHelper.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -236,7 +236,6 @@ static install_status_t extractNativeLibFromApk(ZipFileRO* zipFile, ZipEntryRO z return INSTALL_FAILED_CONTAINER_ERROR; } #ifdef ENABLE_PUNCH_HOLES // punch extracted elf files as well. This will fail where compression is on (like f2fs) but it // will be useful for ext4 based systems struct statfs64 fsInfo; Loading @@ -253,7 +252,6 @@ static install_status_t extractNativeLibFromApk(ZipFileRO* zipFile, ZipEntryRO z zipFile->getZipFileName()); } } #endif // ENABLE_PUNCH_HOLES ALOGV("Successfully moved %s to %s\n", localTmpFileName, localFileName); Loading Loading @@ -332,7 +330,6 @@ static install_status_t copyFileIfChanged(JNIEnv* env, void* arg, ZipFileRO* zip return INSTALL_FAILED_INVALID_APK; } #ifdef ENABLE_PUNCH_HOLES // if library is uncompressed, punch hole in it in place if (!punchHolesInElf64(zipFile->getZipFileName(), offset)) { ALOGW("Failed to punch uncompressed elf file :%s inside apk : %s at offset: " Loading @@ -345,7 +342,6 @@ static install_status_t copyFileIfChanged(JNIEnv* env, void* arg, ZipFileRO* zip if (!punchHolesInZip(zipFile->getZipFileName(), offset, extraFieldLength)) { ALOGW("Failed to punch apk : %s at extra field", zipFile->getZipFileName()); } #endif // ENABLE_PUNCH_HOLES return INSTALL_SUCCEEDED; } Loading Loading
core/jni/Android.bp +0 −4 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ soong_config_module_type { config_namespace: "ANDROID", bool_variables: [ "release_binder_death_recipient_weak_from_jni", "release_package_libandroid_runtime_punch_holes", ], properties: [ "cflags", Loading Loading @@ -66,9 +65,6 @@ cc_library_shared_for_libandroid_runtime { release_binder_death_recipient_weak_from_jni: { cflags: ["-DBINDER_DEATH_RECIPIENT_WEAK_FROM_JNI"], }, release_package_libandroid_runtime_punch_holes: { cflags: ["-DENABLE_PUNCH_HOLES"], }, }, cpp_std: "gnu++20", Loading
core/jni/com_android_internal_content_NativeLibraryHelper.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -236,7 +236,6 @@ static install_status_t extractNativeLibFromApk(ZipFileRO* zipFile, ZipEntryRO z return INSTALL_FAILED_CONTAINER_ERROR; } #ifdef ENABLE_PUNCH_HOLES // punch extracted elf files as well. This will fail where compression is on (like f2fs) but it // will be useful for ext4 based systems struct statfs64 fsInfo; Loading @@ -253,7 +252,6 @@ static install_status_t extractNativeLibFromApk(ZipFileRO* zipFile, ZipEntryRO z zipFile->getZipFileName()); } } #endif // ENABLE_PUNCH_HOLES ALOGV("Successfully moved %s to %s\n", localTmpFileName, localFileName); Loading Loading @@ -332,7 +330,6 @@ static install_status_t copyFileIfChanged(JNIEnv* env, void* arg, ZipFileRO* zip return INSTALL_FAILED_INVALID_APK; } #ifdef ENABLE_PUNCH_HOLES // if library is uncompressed, punch hole in it in place if (!punchHolesInElf64(zipFile->getZipFileName(), offset)) { ALOGW("Failed to punch uncompressed elf file :%s inside apk : %s at offset: " Loading @@ -345,7 +342,6 @@ static install_status_t copyFileIfChanged(JNIEnv* env, void* arg, ZipFileRO* zip if (!punchHolesInZip(zipFile->getZipFileName(), offset, extraFieldLength)) { ALOGW("Failed to punch apk : %s at extra field", zipFile->getZipFileName()); } #endif // ENABLE_PUNCH_HOLES return INSTALL_SUCCEEDED; } Loading