fix: Use correct instruction

This commit is contained in:
oSumAtrIX 2023-10-01 06:15:56 +02:00
parent 9b30c4bc50
commit 246cf2cc92
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ object TimelineFilterPatch : BytecodePatch(
addInstructionsWithLabels( addInstructionsWithLabels(
filterInsertIndex, """ filterInsertIndex, """
const-string v$stringRegister, "$typeName" const-string v$stringRegister, "$typeName"
invoke-interface { v$filterListRegister, v$stringRegister }, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z invoke-virtual { v$filterListRegister, v$stringRegister }, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
""" """
) )
} }

View File

@ -11,6 +11,6 @@ object TimelineFilterIntegrationFingerprint : MethodFingerprint(
strings = listOf("BLOCKED_OBJECT_DUMMY"), strings = listOf("BLOCKED_OBJECT_DUMMY"),
opcodes = listOf( opcodes = listOf(
Opcode.CONST_STRING, // "BLOCKED_OBJECT_DUMMY" Opcode.CONST_STRING, // "BLOCKED_OBJECT_DUMMY"
Opcode.INVOKE_INTERFACE // List.add(^) Opcode.INVOKE_VIRTUAL // HashSet.add(^)
) )
) )