From 5189122006b0f72d5bfb50422021c3b0f3a9ae4a Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 17 Oct 2024 19:18:48 +0400 Subject: [PATCH] fix(Twitter - Unlock downloads): Make it work with latest versions (#3782) --- .../downloads/fingerprints/BuildMediaOptionsSheetFingerprint.kt | 2 +- .../ShowDownloadVideoUpsellBottomSheetFingerprint.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/BuildMediaOptionsSheetFingerprint.kt b/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/BuildMediaOptionsSheetFingerprint.kt index 83d173259..1e96c2bda 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/BuildMediaOptionsSheetFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/BuildMediaOptionsSheetFingerprint.kt @@ -10,5 +10,5 @@ internal object BuildMediaOptionsSheetFingerprint : MethodFingerprint( Opcode.GOTO_16, Opcode.NEW_INSTANCE, ), - strings = listOf("resources.getString(R.string.post_video)"), + strings = listOf("mediaEntity", "media_options_sheet"), ) diff --git a/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/ShowDownloadVideoUpsellBottomSheetFingerprint.kt b/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/ShowDownloadVideoUpsellBottomSheetFingerprint.kt index 1257d0f58..257e043d1 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/ShowDownloadVideoUpsellBottomSheetFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/fingerprints/ShowDownloadVideoUpsellBottomSheetFingerprint.kt @@ -5,6 +5,6 @@ import com.android.tools.smali.dexlib2.Opcode internal object ShowDownloadVideoUpsellBottomSheetFingerprint : MethodFingerprint( returnType = "Z", - strings = listOf("variantToDownload.url"), + strings = listOf("mediaEntity", "url"), opcodes = listOf(Opcode.IF_EQZ) )