Skip to content

Commit

Permalink
fix(Twitter): Add support for version 10.64.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
crimera committed Oct 20, 2024
1 parent d000917 commit c81378d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion patches.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import app.revanced.patcher.fingerprint.MethodFingerprint
object SetDownloadDestinationFingerprint: MethodFingerprint(
returnType = "V",
strings = listOf(
"parse(downloadData.url)"
"guessFileName(...)"
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ object DownloadCallFingerprint: MethodFingerprint(
returnType = "V",
strings = listOf(
"downloadData",
"activity.getString(R.str…nload_permission_request)",
"isUseSnackbar"
)
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
package crimera.patches.twitter.premium.unlockdownloads.fingerprints

import app.revanced.patcher.fingerprint.MethodFingerprint
import com.android.tools.smali.dexlib2.Opcode

object DownloadPatchFingerprint : MethodFingerprint(
returnType = "V",
internal object DownloadPatchFingerprint : MethodFingerprint(
opcodes = listOf(
Opcode.IF_EQ,
Opcode.SGET_OBJECT,
Opcode.GOTO_16,
Opcode.NEW_INSTANCE,
),
strings = listOf(
"mediaEntity",
"media_options_sheet",
"resources.getString(R.string.post_video)",
"resources.getString(R.string.post_photo)"
)
)
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package crimera.patches.twitter.premium.unlockdownloads.fingerprints

import app.revanced.patcher.fingerprint.MethodFingerprint
import com.android.tools.smali.dexlib2.Opcode

object FIleDownloaderFingerprint: MethodFingerprint(
internal object FIleDownloaderFingerprint : MethodFingerprint(
returnType = "Z",
strings = listOf(
"mediaEntity",
"variantToDownload.url"
)
"mediaEntity", "url"
),
opcodes = listOf(Opcode.IF_EQZ)
)

0 comments on commit c81378d

Please sign in to comment.