DexKit icon indicating copy to clipboard operation
DexKit copied to clipboard

opNames匹配不到

Open Girpex opened this issue 11 months ago • 1 comments

opNames(Arrays.asList("new-instance", "invoke-direct", "invoke-virtual", "invoke-virtual", "move-result-object", "if-eqz", "return-object", "new-instance", "invoke-direct", "throw"))

Girpex avatar Mar 24 '24 08:03 Girpex

反编译的smali跟dex一个都没提供,这是让我算命吗

teble avatar Mar 24 '24 09:03 teble

The opnames are not working, I have done several tests but it always returns that no method was found

Dev4Mod avatar Apr 16 '24 13:04 Dev4Mod

The opnames are not working, I have done several tests but it always returns that no method was found

Can you provide a reproducible example? dex/apk and query examples

teble avatar Apr 16 '24 14:04 teble

APK: https://www.apkmirror.com/apk/whatsapp-inc/whatsapp/whatsapp-2-24-7-79-release/ hooked class: X.1ii hooked method: A0b(I)V disassembly:

0000: iget v0, v1, LX/1ii;->A17:I
0002: or-int/2addr v2, v0
0003: iput v2, v1, LX/1ii;->A17:I
0005: return-void

code used:

var result = dexkitInstance.findMethod(new FindMethod().matcher(new MethodMatcher().opCodes(
            new OpCodesMatcher().opNames(List.of("iget","or-int/2addr","iput","return-void"))
        )));
XposedBridge.log("Found: " + result.size()); // always return 0

Dev4Mod avatar Apr 16 '24 15:04 Dev4Mod

2.0.1 Fixed

teble avatar Apr 16 '24 16:04 teble