Skip to content

Using the ReVanced CLI and installing ReVanced

Robert edited this page Jul 22, 2022 · 20 revisions

Using the CLI

  1. Make sure your phone is connected
adb shell exit
  1. If you plan to use the root variant, check if you have root access
adb shell su -c exit
  1. Copy the ADB device name
adb devices
  1. Run the CLI

For a full list of commands

java -jar revanced-cli.jar --help

Non-root

Patch stock.apk and install it to <device-id>

java -jar revanced-cli.jar -a stock.apk -o revanced.apk -b revanced-patches.jar -m integrations.apk -d <device-id> -c

Root

In the case of YouTube the root variant requires you to exclude the microg-support patch.
Patch stock.apk, exclude the microg-support patch and mount the apk on <device-id>

java -jar revanced-cli.jar -a stock.apk -o revanced.apk -b revanced-patches.jar -e microg-support -m integrations.apk -d <device-id> --mount -c

If you specified an ADB device the application should now open on your device and the CLI will show logs until the app is closed.

If you encounter any issues please look at the common issues before asking questions.

Clone this wiki locally