Skip to content

Commit 8bb17fe

Browse files
committed
feat: Add another method to load new message method
1 parent 8aa6823 commit 8bb17fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,14 @@ public synchronized static Method loadNewMessageMethod(ClassLoader loader) throw
967967
var field = clazzMessage.getDeclaredField("A02");
968968
methodData = clazzData.findMethod(new FindMethod().matcher(new MethodMatcher().addUsingField(DexSignUtil.getFieldDescriptor(field)).returnType(String.class)));
969969
}
970+
if (methodData.isEmpty()) {
971+
var csClazzData = dexkit.findClass(FindClass.create().matcher(ClassMatcher.create().addUsingString("FMessageSystemScheduledCallStart/setData index out of bounds: "))).singleOrNull();
972+
if (csClazzData != null) {
973+
var csClazz = csClazzData.getInstance(loader);
974+
var field = csClazz.getDeclaredField("A02");
975+
methodData = clazzData.findMethod(new FindMethod().matcher(new MethodMatcher().addUsingField(DexSignUtil.getFieldDescriptor(field)).returnType(String.class)));
976+
}
977+
}
970978
if (methodData.isEmpty()) throw new RuntimeException("NewMessage method not found");
971979
return methodData.get(0).getMethodInstance(loader);
972980
});

0 commit comments

Comments
 (0)