mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-23 10:41:03 +00:00
fix(Bacon Reader - Spoof client): Use www instead of ssl API to fix auth related issues (#5402)
This commit is contained in:
@@ -4,9 +4,16 @@ import app.revanced.patcher.Fingerprint
|
|||||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||||
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
|
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
|
||||||
import app.revanced.patches.reddit.customclients.spoofClientPatch
|
import app.revanced.patches.reddit.customclients.spoofClientPatch
|
||||||
|
import app.revanced.patches.shared.misc.string.replaceStringPatch
|
||||||
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||||
|
|
||||||
val spoofClientPatch = spoofClientPatch(redirectUri = "http://baconreader.com/auth") { clientIdOption ->
|
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(
|
compatibleWith(
|
||||||
"com.onelouder.baconreader",
|
"com.onelouder.baconreader",
|
||||||
"com.onelouder.baconreader.premium",
|
"com.onelouder.baconreader.premium",
|
||||||
|
|||||||
Reference in New Issue
Block a user