Skip to content

Instantly share code, notes, and snippets.

@ottosch
Last active May 17, 2025 00:40
Show Gist options
  • Save ottosch/3a718fb3a43c2ab87547a62422039fdd to your computer and use it in GitHub Desktop.
Save ottosch/3a718fb3a43c2ab87547a62422039fdd to your computer and use it in GitHub Desktop.
How to patch Twitter (X) with ReVanced

How to patch Twitter (X) with ReVanced

Benefits:

  • Hide ads;
  • Remove tracking when sharing links;
  • Enable video download;
  • Other benefits;

Download X apk

Using Aurora Store, make sure you have "Delete APK post-install" unchecked under Settings > Installation. Search and find the X app.
Hit install. When it asks if you want to install, cancel. Now tap 3 dots > downloads > long press X > Save app bundle.

Transfer the file to a computer.

Download ReVanced

Download ReVanced Patches and ReVanced CLI.
Alternatively, you can use ReVanced Manager instead of CLI (not covered here).

Download APKEditor

Download it from GitHub.

Merge the apk

Extract the X bundle with unzip com.twitter.android.zip and place APKEditor in the same directory.
Merge all the bundle apks with java -jar APKEditor-xxx.jar m -i ..

This will create a file named ._merged.apk.

Patch

java -jar revanced-cli-xxx-all.jar patch -p patches-xxx.rvp ._merged.apk

Rename ._merged-patched.apk to something like twitter-patched.apk and install it on your phone.

Last tested with:

ReVanced Patches 5.23.0
ReVanced CLI 5.0.1
Twitter 10.86.0 (310860000)
APKEditor 1.4.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment