Skip to content

Commit a01425c

Browse files
committed
Fix Error in FilterChats
Signed-off-by: Dev4Mod <[email protected]>
1 parent c22911e commit a01425c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit/Unobfuscator.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,8 +1358,10 @@ public synchronized static Method getFilterInitMethod(ClassLoader loader) throws
13581358

13591359
// for 20.xx, it returned with 2 parameter count
13601360
if (method.getParamCount() == 2) {
1361-
method = method.getDeclaredClass().findMethod(FindMethod.create().matcher(new MethodMatcher().addInvoke(DexSignUtil.getMethodDescriptor(method.getMethodInstance(loader))))).singleOrNull();
1362-
if (method == null) throw new RuntimeException("FilterInit method not found 3");
1361+
var callers = method.getCallers();
1362+
method = callers.stream().filter(methodData -> methodData.isMethod() && methodData.getDeclaredClassName().equals(cFrag.getName())).findAny().orElse(null);
1363+
if (method == null)
1364+
throw new RuntimeException("FilterInit method not found 3");
13631365
}
13641366
return method.getMethodInstance(loader);
13651367
});

0 commit comments

Comments
 (0)