Morphe compatible patches for third party Reddit apps.
Patcheddit is a Morphe compatible patch bundle that supports patching the OAuth login information for 3rd party reddit apps.
In addition, patches for some apps contain additional features that were not present in ReVanced.
- Reddit API fixes are available for BaconReader, Boost, Joey, Relay (including Pro), RIF (free and paid), and Sync (free version only).
- Client ID, redirect URI and user agent are all patchable.
- By default,
Spoof clientuses RedReader 1.27's client ID, redirect URI and user agent. Leave the OAuth client ID option empty to use its default. - Custom patch options override these defaults. In Boost 1.14.0 and up, saved values in the native API settings override the patch-provided defaults.
- By default,
- Log exceptions saves fatal crashes for every supported client, including Sync for Lemmy, using morphe-patches-library's shared crash logger. BaconReader and Boost hook their native error-reporting handlers; other clients capture exceptions reported through Android error/warning logging, stack traces, and Crashlytics when present, without removing the original logging.
- Fatal reports are saved in Documents/Morphe, falling back to the app-specific external Documents folder if public storage is unavailable. Non-fatal reports use private
no_backup/morphe-exceptionsstorage, rotating at 4 MiB per file with one previous file retained and excluded from Android app backups. - Common credential-bearing lines are redacted from non-fatal logs; fatal reports are not filtered. Other personal or request data can remain, so review exported copies before sharing.
- Fatal reports are saved in Documents/Morphe, falling back to the app-specific external Documents folder if public storage is unavailable. Non-fatal reports use private
- Every supported client exposes a Morphe settings menu. Included feature patches register their own controls; deselected patches do not leave behind inactive options.
- Feature switches default to the patch's existing runtime behavior.
Spoof clientexposes client ID, redirect URI and user-agent overrides. Empty overrides use the values configured when patching. Boost shares these controls with its native API settings. Existing Joey and Infinity overrides are migrated without replacing newer values.- Infinity's patched callback URI is read-only because it is declared in the APK manifest. The original callback remains available when spoofing is disabled. Manifest/layout-only changes, including Android debugging, are also shown as read-only; repatch the app to change them.
- Changing OAuth credentials requires restarting and signing in again. Disabling API/login fixes can restore the original client's broken behavior.
- Boost patches target the official Boost 1.14.4 APK.
- Boost patches are selected by default except Fix loading more comments and Fix profile About scrolling, which are retained but disabled because Boost fixed them natively. Individual patches can be deselected before patching; features with settings can also be disabled in the app. Patch-selection defaults do not change saved settings or runtime preference defaults.
- Boost 1.14.3 also handles the image-post submission kind, search callback lifecycle checks and media-viewer insets natively, so those overrides are no longer injected. The remaining navigation patches still support Patcheddit's custom navigation hosts and layout behavior.
- Boost handles cached Redgifs playback without a separate fix.
- Log exceptions records errors reported through Boost's existing exception handler. Settings > Morphe > Exception log lists non-fatal reports, with Fatal crash logs alongside it in Diagnostics.
- Fatal reports can be previewed in the app and exported in full using Save a copy. Reports in public or app-specific Documents folders are listed when accessible.
- If app initialization or private storage is unavailable, logging failures are reported to Logcat without showing a toast.
- Import and export OAuth tokens adds an editable JSON field and a Save button under Settings > Morphe > OAuth tokens. It displays the selected account's tokens for copying. Replace or edit the JSON to sign in or add an account without the browser login flow. There are no file import/export controls.
- Save checks the access-token owner with Reddit, validates the refresh token using Boost's configured OAuth client, and obtains fresh tokens before adding or updating the verified account. An expired access token can be restored with a valid refresh token. Boost then restarts with that account selected.
- Tokens are bound to their OAuth client. Configure the same client ID in Boost's native API settings before importing; the patch does not change API settings automatically.
- The JSON contains unencrypted account credentials. Copy it only into trusted apps and clear clipboard copies after use. The screen uses Android's secure-window flag to block screenshots and screen recording. The editor disables autofill, content capture and Android view-state saving, and asks keyboards not to learn its contents.
- The JSON requires string fields
access_tokenandrefresh_token. The selected account's JSON also includesversion: 1,usernameandclient_id; these metadata fields are optional when replacing tokens.
- Image-upload features are separate patches:
- Use Reddit for image uploads selects Reddit hosting for image posts and galleries, without changing editor attachments. This is still needed to override Boost's remote-configurable hosting provider; Boost now chooses the image submission kind itself.
- Configure editor image hosting adds an editor-hosting setting for Imgur Free or ImgBB. It does not change post or gallery hosting.
- Preview images in the editor adds previews of supported image URLs without changing upload providers.
- The content of deleted Reddit posts and comments can be loaded from Project Arctic Shift.
- This only works for text and images, and not all content can be restored. Videos are unlikely to be available.
- Posts/comments that were deleted are marked as follows:
- ποΈ if removed by the author
- π§Ή if removed by a subreddit mod
- π if removed by reddit admins
- π€ if removed by anti-spam
- Β©οΈ if removed due to a takedown notice
- πΏ if removed by Anti-Evil Operations
- π« if the subreddit is banned
- Banned subreddits can be browsed with this functionality; however, rules/wiki pages are unavailable and the only sort option is by new.
- In order to view a deleted post, you need to already have a direct link to the post. Subreddit feeds will not show deleted posts (unless the subreddit was banned); this is because of the lack of sorting options and the high likelihood of seeing a ton of spam posts.
- Currently, this functionality is not working on user profiles. Removed posts you encounter on user pages need to be opened and refreshed for their content to load.
- This feature makes extra network requests, so posts will load a little slower. In particular, retrieving images from the Wayback Machine is heavily ratelimited.
- Caching is implemented to try and limit the impact of this.
- Imgur images and albums are automatically loaded from the Wayback Machine if a 404 is detected.
- The context menu for posts now contains additional options for opening a site in the Wayback Machine or archive.is. This is useful for if the undeleting functionality has issues or you want to bypass a content paywall.
- Restores Imgur album and gallery loading in the built-in viewer, album thumbnails, and links that include a title.
- Restores native Redgifs playback and returns safely when a video is unavailable.
- Enables pro features without ads.
- Supports Infinity+, Infinity++, and the Patreon variant.
Spoof clientapplies the configured OAuth values to login callbacks and API requests, including obfuscated code, and updates the browser-login callback intent filter.
- Install Morphe Manager and switch it to advanced/expert mode.
- Click this link to add this patch source to Morphe Manager.
- In Morphe Manager, find the app you want to patch.
- The supported apps are Boost, RIF, Sync (free version only), Relay, BaconReader, Joey, Infinity+, Infinity++, and Infinity (Patreon).
- Get the APK for your preferred, supported 3rd party reddit app. If you don't have it, you can download it from in the app. APKM bundles (aka split APKs) will also work.
- You should get the last available version for your reddit app, unless you are patching Relay. Relay v10.2.40 should be used instead of the latest.
- Select desired patches, then patch.
Spoof clientincludes RedReader 1.27 defaults, so you do not need to supply a client ID. SeeWhat if I don't have a client ID?below.- If you use a custom OAuth client ID, make sure its redirect URI matches the one in
Spoof clientoptions and on https://www.reddit.com/prefs/apps/.
- Once patching is complete, install the app and set it up as usual.
For assistance with patching, please post a thread in /r/Patcheddit or /r/MorpheApp. Only use the GitHub issue tracker for legitimate bug reports or feature requests.
Use the RedReader 1.27 defaults included in Spoof client:
- Leave
OAuth client IDempty. - Keep
Redirect URIset toredreader://rr_oauth_redir. - Keep
User agentset toorg.quantumbadger.redreader/1.27.
For another client's credentials, enter its client ID and matching redirect URI and user agent instead.
I am unable to select the username/password fields on the login page - my keyboard pops up and then disappears quickly
- Switch your phone to landscape mode. There is a cookie banner that needs to be dismissed, but it is bugged and only shows up on landscape mode.
I either get {} or Error: Invalid request to Oauth API
- Your redirect URI is probably wrong. It has to match exactly between the patching settings and your reddit installed app. If you're reusing an installed app you made before, then update the URI at https://www.reddit.com/prefs/apps/. Make sure you don't add
/at the end.
I cannot login, reddit is telling me that my username/password are invalid even though they are correct
- Reddit doesn't like the network you're logging in from (corporate/work network, country with banned IP ranges due to abuse, etc). Try using a VPN or switching to cellular data.
- Alternatively, this problem may go away if you restart your phone, clear cookies for Chrome, clear app data for Android System WebView, or update Android System WebView to the latest version.
- See https://github.com/cygnusx-1-org/continuum/blob/master/SETUP.md#common-errors
I cannot hit Accept on the Authorize screen
- Change your reddit site language to English. There are reports that this screen does not work properly otherwise.
I still get 403 Blocked
- If you filled your user agent in with garbage, it will eventually be blocked by reddit. Also, reddit blocks any mention of rubenmayayo in the user agent.
- Your user agent can also be blocked due to other terms: a user reported that he was getting 403 after patching, and it turned out to be because his username included
isfun(which triggers a block from reddit's side due to them blocking the app Reddit is Fun).
I get 401 when I open the app
- You probably created a web app instead of an installed app. Delete the app, create an installed app and then repatch with the new client ID.
- Don't use autofill when logging into Reddit. Manually type in or copy+paste your password.
I'm getting 400 Bad Request while logged in
- Either try logging out and logging back in, or uninstall the app (back up your settings first) then reinstall it.
I get a null: null error when I open the app
- Your client ID is incorrect, check that you copied it correctly.
To develop and release Patcheddit, some things need to be considered:
- Development starts in feature branches. Once a feature branch is ready, it is squashed and merged into the
devbranch - The
devbranch is merged into themainbranch once it is ready for release - Semantic versioning is used to version Patcheddit. Patcheddit has a public API for other patches to use
- Semantic commit messages are used for commits
- Commits on the
devbranch andmainbranch are automatically released via the release.yml workflow, which is also responsible for generating the changelog and updating the version of Patcheddit. It is triggered by pushing to thedevormainbranch. The workflow uses thepublishtask to publish the release of Patcheddit - The
buildAndroidtask is used to build Patcheddit so that it can be used on Android. Thepublishtask depends on thebuildAndroidtask, so it will be run automatically when publishing a release.
Builds use the published morphe-patches-library version pinned in gradle/libs.versions.toml. To explicitly use a matching local ../morphe-patches-library checkout as a composite build, pass -PuseLocalMorphePatchesLibrary=true to Gradle.
Boost settings XML and layouts are stored under patches/src/main/resources/boost/, in xml/ and layout/. Each feature includes its files through the internal AddResources patch. It registers individual target paths with the resource context so on-demand decoding tracks new values and view IDs. Settings entries are imported only when their feature patch is selected. Shared XML templates define menu categories, switches and read-only entries; registration fills their patch metadata without generating widget/layout XML.
Use morpheBytecodePatch to register a feature automatically in the correct client's menu, including its extension, settings entry and independent settings-context bootstrap:
val examplePatch = morpheBytecodePatch(
name = "Example feature",
description = "Adds an optional feature.",
extensionPatch = ExtensionPatches.Boost,
category = PatchCategory.MEDIA,
) { setting ->
compatibleWith(*AppCompatibility.Boost)
execute {
setting.guardHook("Lapp/morphe/extension/boost/feature/Feature;", "apply")
}
}optionsResource accepts a bundled PreferenceCategory; set resourceDirectory = "boost" for Boost XML. Existing preference keys and runtime defaults can be retained with preferenceKey and defaultEnabled, independently of patch-selection default. addMorpheSettings is available to patches using the original builders.
Client discovery follows composite extension dependencies, including Boost's HTTP interceptor patch. App-agnostic uses of the existing public factories retain their always-on behavior; an unregistered extension produces a patcher warning instead of requiring a client-specific menu.
Gate void/boolean extension hooks with guardHook; identity transforms can use identity = true to return the original input when disabled. Use patchMethod for reversible method-local bytecode changes and replaceString for constructor strings. For hooks sharing a native method, use wrapHook(setting = setting) so disabling one feature does not skip another feature's hooks. morpheResourcePatch defaults to a read-only menu entry for APK-only changes; menu-only features can use readOnly = false and a dependent options entry.
Infinity's JNI client-ID getter is kept intact. Managed call sites use a gated bridge so disabling spoofing still calls the original native method without changing its JNI symbol.
The extension uses Jackson for all JSON processing, bundled and shadowed under app.morphe.extension.boost.libraries, with its APIs preserved during shrinking. It does not depend on Boost's R8-reduced JSON libraries or bundle Gson. Native JRAW JSON objects remain behind the NativeJsonModel / NativeJsonNode adapters; they are not cast to the private Jackson tree types. Boost's own JSON libraries and callers, and the patcher's build-time Gson dependency, are left unchanged.
Boost's compile-only Kotlin API is in extensions/boost/stub/src/main/kotlin. Feature code uses stable class and member names; patches use the matching typed BoostApi catalog rather than loading Android stub classes on the patcher JVM:
val fingerprint = BoostApi.DrawerActivity.setupBottomNavigation.fingerprint()patches/src/main/resources/boost/bindings.json contains the version-specific native targets. Its keys are stable adapter descriptors; its values are complete native class, method and field descriptors, including declaring owners. For an obfuscation-only update, change the target values and declared version, update AppCompatibility, and refresh the partial library boost/mapping.txt when needed. Do not rename the adapter API or feature code to match obfuscated symbols.
staticMethods and staticFields describe the adapter API's dispatch. injectedMethods identifies bridges cloned from native factories. All targets, prototypes, dispatch kinds and instance receivers are checked against the input APK. Missing or conflicting bindings stop patching. Native signature or behavior changes can still require adapter or patch changes.
Only the extension payload is rebound; the app is not deobfuscated, and placeholder stubs are never packaged. Native callbacks are renamed through the same bindings. Reflective field access uses BoostFieldNames, whose non-constant values are resolved during binding, so callers do not embed obfuscated names or precompute hashes for renamed strings.
Extension preparation does not prune classes by reachability. It retains all payload classes except duplicate copies supplied by Boost itself. The final verifier also checks native app references to extension classes so a missing helper stops patching instead of causing a runtime class-loading failure.
Run the release-fixture checks with BOOST_APK=/path/to/boost-for-reddit-1.14.4.apk ./gradlew :patches:test --tests '*BoostReleaseTest'. They verify the APK checksum, every partial-library mapping declaration, and all adapter targets, prototypes, dispatch kinds and receivers. Without BOOST_APK, the APK-dependent test is skipped; version consistency and redundant-patch defaults are still checked. Apply the built bundle with Morphe CLI's --bytecode-mode=FULL --validate to check every selected patch against the APK.
Thank you for considering contributing to Patcheddit.
You can find the contribution guidelines here.
To build Patcheddit, you can follow the Morphe documentation.
Patcheddit is licensed under the GNU General Public License v3.0, with additional conditions under Section 7:
-
Attribution (7b): Any use of this code, including derivatives, must display a visible notice:
This app uses code from Patcheddit. To learn more, visit https://reddit.com/r/patcheddit
-
Name Restriction (7c): The name "Patcheddit" may not be used for derivative works.
Derivatives must adopt a distinct identity unrelated to "Patcheddit".
The Morphe project (https://github.com/MorpheApp) may use code from this project without displaying the attribution notice.
The Boost for Reddit project (https://github.com/rubenmayayo/boost-for-reddit) is authorized to use any Patcheddit-originated source code under Apache 2.0 license terms.
See the LICENSE file for the full GPLv3 terms and the NOTICE file for full conditions of GPLv3 Section 7