Revert "Handling duplicate System.load calls" (#202)

Reverts LSPosed/LSPatch#200

Let it crash
This commit is contained in:
南宫雪珊 2023-06-05 14:35:14 +08:00 committed by GitHub
parent f23eb7f32c
commit e79bf0e004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -91,13 +91,7 @@ public class LSPAppComponentFactoryStub extends AppComponentFactory {
soPath = cl.getResource("assets/lspatch/so/" + libName + "/liblspatch.so").getPath().substring(5);
}
try {
System.load(soPath);
} catch (UnsatisfiedLinkError error) {
// Catching the error to handle duplicate loading of library
Log.e(TAG, "Failed to load liblspatch.so", error);
}
System.load(soPath);
} catch (Throwable e) {
throw new ExceptionInInitializerError(e);
}