From 39ef7f16bcf9cbdb66b615dba01c07e804364e8d Mon Sep 17 00:00:00 2001 From: naijun0403 Date: Wed, 28 May 2025 02:29:58 +0900 Subject: [PATCH] feat(kakaotalk): add fingerprint for creating ChatLogViewHolder from real data This is the 6th commit to make deleted, hidden messages visible. --- .../ChatLogViewHolderFingerprint.kt | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/src/main/kotlin/app/revanced/patches/kakaotalk/chatlog/fingerprints/ChatLogViewHolderFingerprint.kt 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