What does this do?
- downloading the latest revanced-cli, revanced-patches and revanced-integrations.
- downloading the latest supported youtube(yt-music, reddit, twitter, tiktok) version
- creating revanced app according to revanced-documentation
Check out github actions (they are all built using this script. also non-root variant there includes vanced-microg.apk inside it)
- sh(dash or bash)
- curl(curl is required to get latest versions of revanced-*)
- awk
- java(17)
- grep
- (optional)find(we use it to remove old versions of revanced-*, if there is any)
$ mkdir -p revanced
$ cd revanced
$ sh -c "$(curl https://raw.githubusercontent.com/XDream8/revanced-creator/main/patch.sh)"
- or
$ git clone https://github.com/XDream8/revanced-creator
$ cd revanced-creator
$ ./patch.sh
here is how to patch user downloaded reddit apk
(!) if apk_filename is not set, script uses find to select an apk from the directory you are in randomly(if there is only one apk in the directory you are in it is fine)
(!) additional arg is only for reddit, other apps does not need it
(?) output_apk_name is optional
$ export what_to_patch="custom"
$ export apk_filename=reddit.apk
$ export output_apk=revanced-reddit.apk
$ export additional_args="-r"
$ ./patch.sh
we include enable-wide-searchbar
and swipe-controls
patch and exclude hide-shorts-button
here
$ export additional_args="-i enable-wide-searchbar -i swipe-controls -e hide-shorts-button"
$ ./patch.sh
$ export what_to_patch="youtube-music"
$ ./patch.sh
you can set output apk name with this
$ export output_apk="ReReddit.apk"
$ ./patch.sh
Versions Available
YouTube: 17.26.35, 17.27.39, 17.28.34, 17.29.34, 17.32.35
YouTube-Music: 5.14.53, 5.16.51, 5.17.51
Twitter: 9.52.0, 9.53.0
Reddit: 2022.28.0
TikTok: 25.8.2
$ export apk_version=17.27.39
$ ./patch.sh
$ export root=0
$ ./patch.sh
$ export downloader="axel -n 16"
$ ./patch.sh
$ export root=0
$ export downloader="axel -n 16"
$ export additional_args="-i enable-wide-searchbar -i swipe-controls -e hide-shorts-button"
$ export what_to_patch="youtube"
$ export apk_version=17.27.39
$ ./patch.sh
- @halal-beef added CI which was a great help