mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-04 20:42:02 +08:00
No dobby_enable_near_branch_trampoline
which may crash on Android 15
This commit is contained in:
parent
2d8204774b
commit
4ec6de77ad
@ -79,7 +79,6 @@ cmaker {
|
||||
val flags = arrayOf(
|
||||
"-Werror",
|
||||
"-Wno-gnu-string-literal-operator-template",
|
||||
"-Wno-c++2b-extensions",
|
||||
)
|
||||
abiFilters("armeabi-v7a", "arm64-v8a", "x86", "x86_64", "riscv64")
|
||||
cppFlags += flags
|
||||
|
@ -8,9 +8,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.MethodSorters;
|
||||
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@ -124,7 +122,7 @@ public class UnitTest {
|
||||
var proxyInterface = Class.forName("org.lsposed.lsplant.LSPTest$ForProxy");
|
||||
var proxy = Proxy.newProxyInstance(proxyInterface.getClassLoader(), new Class[]{proxyInterface}, (proxy1, method, args) -> {
|
||||
if (method.getName().equals("abstractMethod")) {
|
||||
return (String) args[0] + (boolean) args[1] + (byte) args[2] + (short) args[3] + (int) args[4] + (long) args[5] + (float) args[6] + (double) args[7] + (Integer) args[8] + (Long) args[9];
|
||||
return (String) args[0] + args[1] + args[2] + args[3] + args[4] + args[5] + args[6] + args[7] + args[8] + args[9];
|
||||
}
|
||||
return method.invoke(proxy1, args);
|
||||
});
|
||||
|
@ -58,9 +58,6 @@ JNI_OnLoad(JavaVM* vm, void* reserved) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
lsparself::Elf art("/libart.so");
|
||||
#if !defined(__i386__)
|
||||
dobby_enable_near_branch_trampoline();
|
||||
#endif
|
||||
lsplant::InitInfo initInfo{
|
||||
.inline_hooker = InlineHooker,
|
||||
.inline_unhooker = InlineUnhooker,
|
||||
|
Loading…
x
Reference in New Issue
Block a user