From c291d06dcb423fabfcd2f1043f41a3516712a74a Mon Sep 17 00:00:00 2001 From: ACh Sulfate Date: Tue, 18 Jul 2023 16:40:05 +0800 Subject: [PATCH] chore: dlopen: try as many as so available --- app/src/main/java/io/github/qauxv/util/Natives.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/main/java/io/github/qauxv/util/Natives.java b/app/src/main/java/io/github/qauxv/util/Natives.java index b673f10f25..3566427a23 100644 --- a/app/src/main/java/io/github/qauxv/util/Natives.java +++ b/app/src/main/java/io/github/qauxv/util/Natives.java @@ -261,13 +261,6 @@ private static void loadNativeLibraryInHost(Context ctx, String modulePath, List return; } catch (UnsatisfiedLinkError e1) { throwIfJniError(e1); - String errMsg = e1.getMessage(); - if (errMsg != null && errMsg.contains(" EM_")) { - // linker or native bridge is complaining about the ELF machine type, try next - } else { - // older linker doesn't support memory map, try extract and dlopen - break; - } } } }