From a4227aecc9f11f63198f65390ca18a33a6c0ff89 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sun, 6 Oct 2024 22:19:40 +0900 Subject: [PATCH] fix(YouTube Music/Player components): patches do not apply properly in certain versions --- .../components/fingerprints/EngagementPanelHeightFingerprint.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/music/player/components/fingerprints/EngagementPanelHeightFingerprint.kt b/src/main/kotlin/app/revanced/patches/music/player/components/fingerprints/EngagementPanelHeightFingerprint.kt index 85111f7052..6c3e8c3a97 100644 --- a/src/main/kotlin/app/revanced/patches/music/player/components/fingerprints/EngagementPanelHeightFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/music/player/components/fingerprints/EngagementPanelHeightFingerprint.kt @@ -11,7 +11,9 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference internal object EngagementPanelHeightFingerprint : MethodFingerprint( returnType = "L", accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, + // In YouTube Music 7.21.50+, there are two methods with similar structure, so this Opcode pattern must be used. opcodes = listOf( + Opcode.IGET_OBJECT, Opcode.IGET_OBJECT, Opcode.INVOKE_VIRTUAL, Opcode.MOVE_RESULT,