File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 });
You can’t perform that action at this time.
0 commit comments