diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/ChangeOAuthClientIdPatchAnnotation.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/ChangeOAuthClientIdPatchAnnotation.kt index 270fc3405..44e49c9d2 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/ChangeOAuthClientIdPatchAnnotation.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/ChangeOAuthClientIdPatchAnnotation.kt @@ -7,5 +7,4 @@ import app.revanced.patcher.patch.annotations.Patch @Target(AnnotationTarget.CLASS) @Patch @Name("change-oauth-client-id") -@Description("Changes the OAuth client ID.") annotation class ChangeOAuthClientIdPatchAnnotation \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/patch/ChangeOAuthClientIdPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/patch/ChangeOAuthClientIdPatch.kt index e7e653327..8d52d2743 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/patch/ChangeOAuthClientIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api/patch/ChangeOAuthClientIdPatch.kt @@ -1,6 +1,7 @@ package app.revanced.patches.reddit.customclients.baconreader.api.patch import app.revanced.patcher.annotation.Compatibility +import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Package import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -16,6 +17,9 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @ChangeOAuthClientIdPatchAnnotation +@Description("Changes the OAuth client ID. " + + "The OAuth application type has to be \"Installed app\" " + + "and the redirect URI has to be set to \"http://baconreader.com/auth\".") @Compatibility([Package("com.onelouder.baconreader")]) class ChangeOAuthClientIdPatch : AbstractChangeOAuthClientIdPatch( "http://baconreader.com/auth", Options, listOf(GetAuthorizationUrlFingerprint, RequestTokenFingerprint) diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/patch/ChangeOAuthClientIdPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/patch/ChangeOAuthClientIdPatch.kt index f088f2e36..4f9a5e9b8 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/patch/ChangeOAuthClientIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/api/patch/ChangeOAuthClientIdPatch.kt @@ -1,6 +1,7 @@ package app.revanced.patches.reddit.customclients.boostforreddit.api.patch import app.revanced.patcher.annotation.Compatibility +import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Package import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -12,6 +13,9 @@ import app.revanced.patches.reddit.customclients.ChangeOAuthClientIdPatchAnnotat import app.revanced.patches.reddit.customclients.boostforreddit.api.fingerprints.GetClientIdFingerprint @ChangeOAuthClientIdPatchAnnotation +@Description("Changes the OAuth client ID. " + + "The OAuth application type has to be \"Installed app\" " + + "and the redirect URI has to be set to \"http://rubenmayayo.com\".") @Compatibility([Package("com.rubenmayayo.reddit")]) class ChangeOAuthClientIdPatch : AbstractChangeOAuthClientIdPatch( "http://rubenmayayo.com", Options, listOf(GetClientIdFingerprint) diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/api/patch/ChangeOAuthClientIdPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/api/patch/ChangeOAuthClientIdPatch.kt index 36d136b9b..ae7608c85 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/api/patch/ChangeOAuthClientIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/api/patch/ChangeOAuthClientIdPatch.kt @@ -1,6 +1,7 @@ package app.revanced.patches.reddit.customclients.infinityforreddit.api.patch import app.revanced.patcher.annotation.Compatibility +import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Package import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -15,6 +16,9 @@ import app.revanced.patches.reddit.customclients.infinityforreddit.api.fingerpri import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @ChangeOAuthClientIdPatchAnnotation +@Description("Changes the OAuth client ID. " + + "The OAuth application type has to be \"Installed app\" " + + "and the redirect URI has to be set to \"infinity://localhost\".") @Compatibility([Package("ml.docilealligator.infinityforreddit")]) class ChangeOAuthClientIdPatch : AbstractChangeOAuthClientIdPatch( "infinity://localhost", diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/redditisfun/api/patch/ChangeOAuthClientIdPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/redditisfun/api/patch/ChangeOAuthClientIdPatch.kt index fcff00230..db00bedb7 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/redditisfun/api/patch/ChangeOAuthClientIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/redditisfun/api/patch/ChangeOAuthClientIdPatch.kt @@ -1,6 +1,7 @@ package app.revanced.patches.reddit.customclients.redditisfun.api.patch import app.revanced.patcher.annotation.Compatibility +import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Package import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -16,6 +17,9 @@ import app.revanced.patches.reddit.customclients.redditisfun.api.fingerprints.Bu import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @ChangeOAuthClientIdPatchAnnotation +@Description("Changes the OAuth client ID. " + + "The OAuth application type has to be \"Installed app\" " + + "and the redirect URI has to be set to \"redditisfun://auth\".") @Compatibility([Package("com.andrewshu.android.reddit"), Package("com.andrewshu.android.redditdonation")]) class ChangeOAuthClientIdPatch : AbstractChangeOAuthClientIdPatch( "redditisfun://auth", diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/relayforreddit/api/patch/ChangeOAuthClientIdPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/relayforreddit/api/patch/ChangeOAuthClientIdPatch.kt index 2bdeed0b9..55f6073ac 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/relayforreddit/api/patch/ChangeOAuthClientIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/relayforreddit/api/patch/ChangeOAuthClientIdPatch.kt @@ -1,6 +1,7 @@ package app.revanced.patches.reddit.customclients.relayforreddit.api.patch import app.revanced.patcher.annotation.Compatibility +import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Package import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -12,11 +13,14 @@ import app.revanced.patches.reddit.customclients.AbstractChangeOAuthClientIdPatc import app.revanced.patches.reddit.customclients.ChangeOAuthClientIdPatchAnnotation import app.revanced.patches.reddit.customclients.relayforreddit.api.fingerprints.GetLoggedInBearerTokenFingerprint import app.revanced.patches.reddit.customclients.relayforreddit.api.fingerprints.GetLoggedOutBearerTokenFingerprint -import app.revanced.patches.reddit.customclients.relayforreddit.api.fingerprints.LoginActivityClientIdFingerprint import app.revanced.patches.reddit.customclients.relayforreddit.api.fingerprints.GetRefreshTokenFingerprint +import app.revanced.patches.reddit.customclients.relayforreddit.api.fingerprints.LoginActivityClientIdFingerprint import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @ChangeOAuthClientIdPatchAnnotation +@Description("Changes the OAuth client ID. " + + "The OAuth application type has to be \"Installed app\" " + + "and the redirect URI has to be set to \"dbrady://relay\".") @Compatibility([Package("free.reddit.news"), Package("reddit.news")]) class ChangeOAuthClientIdPatch : AbstractChangeOAuthClientIdPatch( "dbrady://relay", diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt index 08a3b7da6..6ac2a9641 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt @@ -2,6 +2,7 @@ package app.revanced.patches.reddit.customclients.syncforreddit.api.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Compatibility +import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Package import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -21,6 +22,9 @@ import org.jf.dexlib2.iface.reference.StringReference import java.util.* @ChangeOAuthClientIdPatchAnnotation +@Description("Changes the OAuth client ID. " + + "The OAuth application type has to be \"Installed app\" " + + "and the redirect URI has to be set to \"http://redditsync/auth\".") @Compatibility( [ Package("com.laurencedawson.reddit_sync"),