ReVanced CLI

This guide expands on the official ReVanced CLI installation/Patch process.

Make sure to get APK from APKMirror and always download the nodpi package. And don't get non-stable patches from the Revanced repo.


Windows

Preparation:

Steps:

  1. Create a folder named "Revanced_CLI" on desktop.
  2. Download ReVanced CLI and move it to the "Revanced_CLI" folder.
  3. Download ReVanced Patches and move it to the "Revanced_CLI" folder.
  4. Install Java by running winget install -e --id EclipseAdoptium.Temurin.21.JRE in your terminal (restart it afterward).
  5. Download the app you want to patch and place it in the "Revanced_CLI" folder.
  6. Open a terminal in the "Revanced_CLI" folder (right-click > "Open terminal here").
  7. Patch the app:
    • Default patches: java -jar revanced-cli.jar patch -p revanced-patches.rvp your.apk
      in my case its java -jar revanced-cli-5.0.0-all.jar patch -p patches-5.2.0.rvp YouTube.apk
      Use the exact name of Revanced CLI, Revanced patches, and APK you want to patch.
      This command will patch the app using the default patches for the App
    • Custom patches: Refer to the official documentation.

Linux

Debian & Debian based distro (Using APT)

Follow steps 1, 2, 3, 5, 6, and 7 from Windows. For Java installation:
apt-get install temurin-21-jdk

Arch & Arch based distro (Using Pacman & yay)

Follow steps 1, 2, 3, 5, 6, and 7 from Windows. For Java installation:

  1. First install yay sudo pacman -S yay
  2. Install java using yay yay -S jdk21-temurin

Android

Here's how to set up ReVanced CLI on Android:

  1. Install Termux, get it from the trusted sources: F-Droid or GitHub (links in the guide).
  2. Open Termux and run this command apt update && apt upgrade to ensure you have the latest packages.
  3. Use your preferred file manager to create a folder named "revanced" inside your Downloads folder.
  4. Download ReVanced CLI and ReVanced patches from their respective GitHub repositories.
  5. Move the downloaded CLI and patches to the "revanced" folder you created.
  6. Get the app you want to patch (e.g., YouTube) and place it in the "revanced" folder.
  7. Open Termux and run pkg install openjdk-21 to install Java, a requirement for ReVanced CLI.
  8. In Termux, navigate to the "revanced" folder using cd /storage/emulated/0/downloads/revanced (adjust the path if needed).
  9. Now you can patch! below is default command:
    java -jar revanced-cli.jar patch -p revanced-patches.rvp your.apk
    in my case its java -jar revanced-cli-5.0.0-all.jar patch -p patches-5.2.0.rvp YouTube.apk

Stuck? Join the Revanced Discord for help.

Edit
Pub: 01 Dec 2024 03:43 UTC
Edit: 06 Dec 2024 13:21 UTC
Views: 168