Created
August 14, 2023 16:16
-
-
Save suuhm/c048dd865ff135ddf7e30b0e22c57d9e to your computer and use it in GitHub Desktop.
ReVanced CLI Build Helper Script for Linux Devices incude. adb push
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "ReVanced CLI Helper v0.1a (c) by 2023 suuhm" | |
echo; echo "Usage: $0 YOU_YOUTUBE_APP.apk"; echo; sleep 1 | |
YTAPP=$1 | |
IPTV=1.2.3.4 | |
RDIRr=/opt/revanced | |
mkdir -p $RDIR && cd $RDIR | |
echo -e "\nInstall JDK and ADB\n" | |
wget https://cdn.azul.com/zulu/bin/zulu17.44.17-ca-crac-jdk17.0.8-linux_x64.tar.gz -P $RDIR | |
tar -xvf *.tar && rm -rf *.tar | |
export PATH=zulu17.44.17-ca-crac-jdk17.0.8-linux_x64/bin:$PATH | |
echo; java -version; echo | |
sleep 1; apt clean; apt update | |
apt install adb adbcli | |
echo -e "\nDownload Patches..\n" | |
wget https://github.com/ReVanced/revanced-cli/releases/download/v2.22.0/revanced-cli-2.22.0-all.jar | |
wget https://github.com/ReVanced/revanced-patches/releases/download/v2.187.0/revanced-patches-2.187.0.jar | |
wget https://github.com/ReVanced/revanced-integrations/releases/download/v0.115.1/revanced-integrations-0.115.1.apk | |
mv $YTAPP com.google.android.youtube_18.23.35.apk | |
# You have to set up by yourself the right packs / patches! | |
echo -e "\nGet list of excluded packages and compile..\n" | |
./$RDIR/zulu17.44.17-ca-crac-jdk17.0.8-linux_x64/bin/java -jar revanced-cli-2.22.0-all.jar -b revanced-patches-2.187.0.jar -l --with-packages -a com.google.android.youtube_18.23.35.apk | grep "youtube" | |
# PATCH | |
# ALL PACKAGES / PATCHES: | |
# ./$RDIR/zulujdk/zulu17.44.17-ca-crac-jdk17.0.8-linux_x64/bin/java -jar revanced-cli-2.22.0-all.jar -b revanced-patches-2.187.0.jar -m revanced-integrations-0.115.1.apk -a com.google.android.youtube_18.23.35.apk -c -o ReVanced-yt-18.23.35.apk | |
# EXCLUDE PATCHES: | |
./$RDIR/zulujdk/zulu17.44.17-ca-crac-jdk17.0.8-linux_x64/bin/java -jar revanced-cli-2.22.0-all.jar -b revanced-patches-2.187.0.jar -m revanced-integrations-0.115.1.apk -a com.google.android.youtube_18.23.35.apk -c -o ReVanced-yt-18.23.35.apk \ | |
--exclusive -i client-spoof -i copy-video-url -i custom-branding -i disable-shorts-on-startup -i disable-zoom-haptics -i hdr-auto-brightness -i general-ads -i hide-cast-button -i hide-endscreen-cards -i hide-floating-microphone-button -i hide-get-premium \ | |
-i hide-shorts-button -i vanced-microg-support -i minimized-playback -i navigation-buttons -i old-quality-layout -i open-links-externally -i remember-video-quality -i return-youtube-dislike -i theme -i video-ads | |
echo -e "\nPut apk on device ($TVIP) with adb push...\n" | |
adb connect $TVIP | |
adb devices | |
#adb -s $TVIP shell | |
adb push com.google.android.youtube_18.23.35.apk /storage/self/primary/revancedpatch/ | |
echo -e "\n\aDone, exit script." | |
exit 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment