Skip to content

Commit 24cefea

Browse files
committed
Refactor OnInsertReceipt method resolver in Unobfuscator
- Simplify opcode list for identifying the `OnInsertReceipt` method. Signed-off-by: Dev4Mod <[email protected]>
1 parent 8ec914d commit 24cefea

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,25 +1983,12 @@ public static Class<?> loadRefreshStatusClass(ClassLoader classLoader) throws Ex
19831983
continue;
19841984
return methods.get(0).getClassInstance(classLoader);
19851985
}
1986+
19861987
// Let's look for forcibly on WhatsApp Web (very boring this)
19871988
var opcodes = List.of(
1988-
"invoke-static",
1989-
"move-result",
1990-
"if-eqz",
1991-
"iget-object",
1992-
"invoke-static",
1993-
"move-result-object",
1994-
"check-cast",
19951989
"invoke-virtual",
19961990
"move-result",
1997-
"xor-int/lit8",
1998-
"if-eqz",
1999-
"if-eqz",
2000-
"return",
2001-
"const/4",
2002-
"goto",
2003-
"const/4",
2004-
"return"
1991+
"xor-int/lit8"
20051992
);
20061993

20071994
var constant = 0x3684;

0 commit comments

Comments
 (0)