Learn how to use the ReVanced CLI.
-
Make sure your device is connected
adb shell exit
If you plan to use the root variant, check if you have root access
adb shell su -c exit
-
Copy the ADB device name
adb devices
-
java -jar revanced-cli.jar -h
-
java -jar revanced-cli.jar \ -b revanced-patches.jar \ -l
-
java -jar revanced-cli.jar \ -a input.apk \ -o patched-output.apk \ -b revanced-patches.jar
-
adb install input.apk # make sure the same version is installed java -jar revanced-cli.jar \ -a input.apk \ -d device-name \ -o patched-output.apk \ -b revanced-patches.jar \ -e vanced-microg-support \ --mount
Note:
If you want to exclude patches, you can use the option
-e
. In the case of YouTube, you can exclude thevanced-microg-support
patch from ReVanced Patches with the option-e vanced-microg-support
when mounting for example.Some patches from ReVanced Patches also might require ReVanced Integrations. Supply them with the option
-m
. > The integrations will be merged, if necessary automatically, if supplied.If you supplied a device with the option
-d
, the patched application will be automatically installed on the device.