From 37a8682901696bfd7a299b93e79cd0d37bd63ce6 Mon Sep 17 00:00:00 2001 From: Chirag Gada Date: Thu, 10 Jul 2025 14:49:04 -0400 Subject: [PATCH] fix(Bacon Reader - Spoof client): Use www instead of ssl API to fix auth related issues (#5402) --- .../customclients/baconreader/api/SpoofClientPatch.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/SpoofClientPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/SpoofClientPatch.kt index d9cfa994f..df811d347 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/SpoofClientPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/SpoofClientPatch.kt @@ -4,9 +4,16 @@ import app.revanced.patcher.Fingerprint import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction import app.revanced.patches.reddit.customclients.spoofClientPatch +import app.revanced.patches.shared.misc.string.replaceStringPatch import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction val spoofClientPatch = spoofClientPatch(redirectUri = "http://baconreader.com/auth") { clientIdOption -> + dependsOn( + // Redirects from SSL to WWW domain are bugged causing auth problems. + // Manually rewrite the URLs to fix this. + replaceStringPatch("ssl.reddit.com", "www.reddit.com") + ) + compatibleWith( "com.onelouder.baconreader", "com.onelouder.baconreader.premium",