Remove setTrust race workaround

This commit is contained in:
LoveSy 2023-07-01 23:49:10 +08:00
parent 617c6ab317
commit 7a45723eda
2 changed files with 2 additions and 9 deletions

View File

@ -21,14 +21,7 @@ public class OpenDexFileHooker extends XC_MethodHook {
}
while (classLoader != null) {
if (classLoader == XposedHelpers.class.getClassLoader()) {
// it may fail because of race, try more
for (int i = 0; i < 3; i++) {
try {
HookBridge.setTrusted(param.getResult());
break;
} catch (SecurityException ignored) {
}
}
HookBridge.setTrusted(param.getResult());
return;
} else {
classLoader = classLoader.getParent();

2
external/lsplant vendored

@ -1 +1 @@
Subproject commit 03517ca86d6517c0e468055240e3c2e115f76180
Subproject commit 9c33903c87a240ae38dbf7fdf49c0748addd073d