Skip to content

Commit 9d44242

Browse files
committed
fix: Find another method to detect StatusPlaybackView field
1 parent 0667f7c commit 9d44242

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,11 @@ public synchronized static Field loadStatusPlaybackViewField(ClassLoader loader)
770770
ClassDataList classView = dexkit.findClass(FindClass.create().matcher(
771771
ClassMatcher.create().methodCount(1).addFieldForType(class1)
772772
));
773+
if (classView.isEmpty()) classView = dexkit.findClass(FindClass.create().matcher(
774+
ClassMatcher.create().methodCount(1, 2)
775+
.addMethod(MethodMatcher.create().paramTypes(View.class, boolean.class, boolean.class))
776+
.addFieldForType(class1)
777+
));
773778
if (classView.isEmpty()) throw new Exception("StatusPlaybackView field not found");
774779
Class<?> clsViewStatus = classView.get(0).getInstance(loader);
775780
Class<?> class2 = XposedHelpers.findClass("com.whatsapp.status.playback.fragment.StatusPlaybackBaseFragment", loader);

0 commit comments

Comments
 (0)