diff --git a/patches/src/main/kotlin/app/revanced/patches/kakaotalk/chatlog/fingerprints/ChatLogViewHolderFingerprint.kt b/patches/src/main/kotlin/app/revanced/patches/kakaotalk/chatlog/fingerprints/ChatLogViewHolderFingerprint.kt new file mode 100644 index 000000000..5f9f3d3df --- /dev/null +++ b/patches/src/main/kotlin/app/revanced/patches/kakaotalk/chatlog/fingerprints/ChatLogViewHolderFingerprint.kt @@ -0,0 +1,24 @@ +package app.revanced.patches.kakaotalk.chatlog.fingerprints + +import app.revanced.patcher.fingerprint +import com.android.tools.smali.dexlib2.AccessFlags +import com.android.tools.smali.dexlib2.Opcode + +internal val createChatLogViewHolderFromRealFingerprint = fingerprint { + accessFlags(AccessFlags.PUBLIC, AccessFlags.FINAL) + returns("V") + parameters() + opcodes( + Opcode.MOVE_OBJECT_FROM16, + Opcode.IGET_OBJECT, + Opcode.CONST_4, + Opcode.SGET_OBJECT, + Opcode.IGET_OBJECT, + Opcode.IGET_OBJECT, + Opcode.CONST_16, + Opcode.IGET_OBJECT, + Opcode.CONST_4, + Opcode.CONST_4, + ) + custom { method, classDef -> classDef.sourceFile == "ChatLogViewHolder.kt" } +} \ No newline at end of file