Revert "Handling duplicate System.load calls" (#202)
Reverts LSPosed/LSPatch#200 Let it crash
This commit is contained in:
parent
f23eb7f32c
commit
e79bf0e004
|
|
@ -91,13 +91,7 @@ public class LSPAppComponentFactoryStub extends AppComponentFactory {
|
||||||
soPath = cl.getResource("assets/lspatch/so/" + libName + "/liblspatch.so").getPath().substring(5);
|
soPath = cl.getResource("assets/lspatch/so/" + libName + "/liblspatch.so").getPath().substring(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
System.load(soPath);
|
||||||
System.load(soPath);
|
|
||||||
} catch (UnsatisfiedLinkError error) {
|
|
||||||
// Catching the error to handle duplicate loading of library
|
|
||||||
Log.e(TAG, "Failed to load liblspatch.so", error);
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
throw new ExceptionInInitializerError(e);
|
throw new ExceptionInInitializerError(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue