mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-27 09:55:48 +01:00
fix(Sync for Reddit - Fix /s/ links): Fix patch by using correct fingerprints
This commit is contained in:
parent
ac1f6a263d
commit
a0ad07ef31
@ -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",
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user