Skip to content

Commit 72459bb

Browse files
authored
fix(Bacon Reader - Spoof client): Use www instead of ssl API to fix auth related issues (#5402)
1 parent 1e8be90 commit 72459bb

File tree

1 file changed

+7
-0
lines changed
  • patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api

1 file changed

+7
-0
lines changed

patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/SpoofClientPatch.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ import app.revanced.patcher.Fingerprint
44
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
55
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
66
import app.revanced.patches.reddit.customclients.spoofClientPatch
7+
import app.revanced.patches.shared.misc.string.replaceStringPatch
78
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
89

910
val spoofClientPatch = spoofClientPatch(redirectUri = "http://baconreader.com/auth") { clientIdOption ->
11+
dependsOn(
12+
// Redirects from SSL to WWW domain are bugged causing auth problems.
13+
// Manually rewrite the URLs to fix this.
14+
replaceStringPatch("ssl.reddit.com", "www.reddit.com")
15+
)
16+
1017
compatibleWith(
1118
"com.onelouder.baconreader",
1219
"com.onelouder.baconreader.premium",

0 commit comments

Comments
 (0)