From a0ad07ef3170dbe1d91ebd40f11d97b63d1c63d0 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 12 Nov 2024 00:44:28 +0100 Subject: [PATCH] fix(Sync for Reddit - Fix /s/ links): Fix patch by using correct fingerprints --- .../sync/syncforreddit/fix/slink/FixSLinksPatch.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/slink/FixSLinksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/slink/FixSLinksPatch.kt index a640936a21..06ee67fe4c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/slink/FixSLinksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/slink/FixSLinksPatch.kt @@ -6,8 +6,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.util.smali.ExternalLabel import app.revanced.patches.reddit.customclients.RESOLVE_S_LINK_METHOD import app.revanced.patches.reddit.customclients.SET_ACCESS_TOKEN_METHOD -import app.revanced.patches.reddit.customclients.boostforreddit.fix.slink.getOAuthAccessTokenFingerprint -import app.revanced.patches.reddit.customclients.boostforreddit.fix.slink.handleNavigationFingerprint import app.revanced.patches.reddit.customclients.fixSLinksPatch import app.revanced.patches.reddit.customclients.sync.syncforreddit.extension.sharedExtensionPatch @@ -26,7 +24,7 @@ val fixSLinksPatch = fixSLinksPatch( execute { // region Patch navigation handler. - handleNavigationFingerprint.method.apply { + linkHelperOpenLinkFingerprint.method.apply { val urlRegister = "p3" val tempRegister = "v2" @@ -46,7 +44,7 @@ val fixSLinksPatch = fixSLinksPatch( // region Patch set access token. - getOAuthAccessTokenFingerprint.method.addInstruction( + setAuthorizationHeaderFingerprint.method.addInstruction( 0, "invoke-static { p0 }, $EXTENSION_CLASS_DESCRIPTOR->$SET_ACCESS_TOKEN_METHOD", )