mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 16:17:40 +00:00
added Tasker, Novalauncher
Because the patching time of revanced.sh is too long, I split it into 3 .sh files and ran them with 3 more runners to speed up the patching time.
This commit is contained in:
@@ -12,7 +12,6 @@ checker "YT-Advanced/ReX-patches" "ReX"
|
||||
# Download requirements
|
||||
dl_gh "ReX-patches ReX-integrations" "YT-Advanced" "latest"
|
||||
dl_gh "revanced-cli" "revanced" "latest"
|
||||
dl_htmlq
|
||||
|
||||
#################################################
|
||||
|
||||
|
||||
46
src/build/Revanced-1.sh
Normal file
46
src/build/Revanced-1.sh
Normal file
@@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
# Revanced build
|
||||
source ./src/build/utils.sh
|
||||
|
||||
#################################################
|
||||
|
||||
# Checking new patch
|
||||
checker "revanced/revanced-patches" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch YouTube:
|
||||
get_patches_key "youtube-revanced"
|
||||
get_ver "Video ads" "com.google.android.youtube"
|
||||
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
|
||||
patch "youtube" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch YouTube Music:
|
||||
# Arm64-v8a
|
||||
get_patches_key "youtube-music-revanced"
|
||||
get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
|
||||
patch "youtube-music-arm64-v8a" "revanced"
|
||||
# Armeabi-v7a
|
||||
get_patches_key "youtube-music-revanced"
|
||||
get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
|
||||
patch "youtube-music-armeabi-v7a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Split architecture:
|
||||
rm -f revanced-cli* revanced-patches*.jar patches.json
|
||||
dl_gh "revanced-cli" "j-hc" "latest"
|
||||
dl_gh "revanced-patches" "revanced" "latest"
|
||||
# Split architecture Youtube:
|
||||
for i in {0..3}; do
|
||||
split_arch "youtube-revanced" "youtube-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
|
||||
done
|
||||
|
||||
#################################################
|
||||
62
src/build/Revanced-2.sh
Normal file
62
src/build/Revanced-2.sh
Normal file
@@ -0,0 +1,62 @@
|
||||
#!/bin/bash
|
||||
# Revanced build
|
||||
source ./src/build/utils.sh
|
||||
|
||||
#################################################
|
||||
|
||||
# Checking new patch
|
||||
checker "revanced/revanced-patches" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Instagram:
|
||||
# Arm64-v8a
|
||||
get_patches_key "instagram"
|
||||
get_ver "Hide timeline ads" "com.instagram.android"
|
||||
get_apk "instagram-arm64-v8a" "instagram-instagram" "instagram/instagram-instagram/instagram-instagram" "arm64-v8a"
|
||||
patch "instagram-arm64-v8a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Messenger:
|
||||
# Arm64-v8a
|
||||
get_patches_key "messenger"
|
||||
get_apk "messenger-arm64-v8a" "messenger" "facebook-2/messenger/messenger" "arm64-v8a"
|
||||
patch "messenger-arm64-v8a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Twitter:
|
||||
get_patches_key "twitter"
|
||||
get_apk "twitter" "twitter" "x-corp/twitter/twitter"
|
||||
patch "twitter" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Twitch:
|
||||
get_patches_key "twitch"
|
||||
get_ver "Block video ads" "tv.twitch.android.app"
|
||||
get_apk "twitch" "twitch" "twitch-interactive-inc/twitch/twitch"
|
||||
patch "twitch" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Reddit:
|
||||
get_patches_key "reddit"
|
||||
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
|
||||
patch "reddit" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Tiktok:
|
||||
get_patches_key "tiktok"
|
||||
version="30.5.2"
|
||||
get_apk "tiktok" "tik-tok-including-musical-ly" "tiktok-pte-ltd/tik-tok-including-musical-ly/tik-tok-including-musical-ly"
|
||||
patch "tiktok" "revanced"
|
||||
|
||||
#################################################
|
||||
59
src/build/Revanced-3.sh
Normal file
59
src/build/Revanced-3.sh
Normal file
@@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
# Revanced build
|
||||
source ./src/build/utils.sh
|
||||
|
||||
#################################################
|
||||
|
||||
# Checking new patch
|
||||
checker "revanced/revanced-patches" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Pixiv:
|
||||
get_patches_key "pixiv"
|
||||
get_apk "pixiv" "pixiv" "pixiv-inc/pixiv/pixiv"
|
||||
patch "pixiv" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Lightroom:
|
||||
get_patches_key "lightroom"
|
||||
get_apk "lightroom" "lightroom" "adobe/lightroom/lightroom"
|
||||
patch "lightroom" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Windy:
|
||||
get_patches_key "windy"
|
||||
get_apk "windy" "windy-wind-weather-forecast" "windy-weather-world-inc/windy-wind-weather-forecast/windy-wind-weather-forecast"
|
||||
patch "windy" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
rm -f patches*.json revanced-patches*.jar revanced-integrations*.apk revanced-cli*.jar
|
||||
dl_gh "revanced-patches" "revanced" "tags/v2.187.0"
|
||||
dl_gh "revanced-integrations" "revanced" "tags/v0.115.1"
|
||||
dl_gh "revanced-cli" "revanced" "tags/v2.22.0"
|
||||
|
||||
#################################################
|
||||
|
||||
#Patch Tasker:
|
||||
get_patches_key "tasker"
|
||||
#version="6.2.12-rc"
|
||||
get_apk "tasker" "tasker" "joaomgcd/tasker/tasker"
|
||||
_patch "tasker" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
#Patch Nova Launcher:
|
||||
get_patches_key "nova-launcher"
|
||||
#version="8.0.6"
|
||||
get_apk "nova-launcher" "nova-launcher" "teslacoil-software/nova-launcher/nova-launcher"
|
||||
_patch "nova-launcher" "revanced"
|
||||
|
||||
#################################################
|
||||
@@ -12,7 +12,6 @@ checker "kitadai31/revanced-patches-android6-7" "revanced-extended-android-6-7"
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches-android6-7 revanced-integrations" "kitadai31" "latest"
|
||||
dl_gh "revanced-cli" "revanced" "latest"
|
||||
dl_htmlq
|
||||
|
||||
#################################################
|
||||
|
||||
@@ -33,4 +32,4 @@ for i in {0..3}; do
|
||||
split_arch "youtube-revanced-extended-android-6-7" "youtube-${archs[i]}-revanced-extended-android-6-7" "$(gen_rip_libs ${libs[i]})"
|
||||
done
|
||||
|
||||
#################################################
|
||||
#################################################
|
||||
@@ -11,7 +11,6 @@ checker "inotia00/revanced-patches" "revanced-extended"
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches revanced-cli revanced-integrations" "inotia00" "latest"
|
||||
dl_htmlq
|
||||
|
||||
#################################################
|
||||
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Revanced build
|
||||
source ./src/build/utils.sh
|
||||
|
||||
#################################################
|
||||
|
||||
# Checking new patch
|
||||
checker "revanced/revanced-patches" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest"
|
||||
dl_htmlq
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch YouTube:
|
||||
get_patches_key "youtube-revanced"
|
||||
get_ver "Video ads" "com.google.android.youtube"
|
||||
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
|
||||
patch "youtube" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch YouTube Music:
|
||||
# Arm64-v8a
|
||||
get_patches_key "youtube-music-revanced"
|
||||
get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
|
||||
patch "youtube-music-arm64-v8a" "revanced"
|
||||
# Armeabi-v7a
|
||||
get_patches_key "youtube-music-revanced"
|
||||
get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
|
||||
patch "youtube-music-armeabi-v7a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Instagram:
|
||||
# Arm64-v8a
|
||||
get_patches_key "instagram"
|
||||
get_ver "Hide timeline ads" "com.instagram.android"
|
||||
get_apk "instagram-arm64-v8a" "instagram-instagram" "instagram/instagram-instagram/instagram-instagram" "arm64-v8a"
|
||||
patch "instagram-arm64-v8a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Messenger:
|
||||
# Arm64-v8a
|
||||
get_patches_key "messenger"
|
||||
get_apk "messenger-arm64-v8a" "messenger" "facebook-2/messenger/messenger" "arm64-v8a"
|
||||
patch "messenger-arm64-v8a" "revanced"
|
||||
# Armeabi-v7a
|
||||
get_patches_key "messenger"
|
||||
get_apk "messenger-armeabi-v7a" "messenger" "facebook-2/messenger/messenger" "armeabi-v7a"
|
||||
patch "messenger-armeabi-v7a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Twitter:
|
||||
get_patches_key "twitter"
|
||||
get_apk "twitter" "twitter" "x-corp/twitter/twitter"
|
||||
patch "twitter" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Twitch:
|
||||
get_patches_key "twitch"
|
||||
get_ver "Block video ads" "tv.twitch.android.app"
|
||||
get_apk "twitch" "twitch" "twitch-interactive-inc/twitch/twitch"
|
||||
patch "twitch" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Reddit:
|
||||
get_patches_key "reddit"
|
||||
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
|
||||
patch "reddit" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Tiktok:
|
||||
get_patches_key "tiktok"
|
||||
version="30.5.2"
|
||||
get_apk "tiktok" "tik-tok-including-musical-ly" "tiktok-pte-ltd/tik-tok-including-musical-ly/tik-tok-including-musical-ly"
|
||||
patch "tiktok" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Pixiv:
|
||||
get_patches_key "pixiv"
|
||||
#get_ver "Hide ads" "jp.pxv.android"
|
||||
get_apk "pixiv" "pixiv" "pixiv-inc/pixiv/pixiv"
|
||||
patch "pixiv" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Lightroom:
|
||||
get_patches_key "lightroom"
|
||||
get_apk "lightroom" "lightroom" "adobe/lightroom/lightroom"
|
||||
patch "lightroom" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Nova Launcher:
|
||||
#get_patches_key "nova-launcher"
|
||||
#get_apk "nova-launcher" "nova-launcher" "teslacoil-software/nova-launcher/nova-launcher"
|
||||
#patch "nova-launcher" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Windy:
|
||||
get_patches_key "windy"
|
||||
get_apk "windy" "windy-wind-weather-forecast" "windy-weather-world-inc/windy-wind-weather-forecast/windy-wind-weather-forecast"
|
||||
patch "windy" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Split architecture:
|
||||
rm -f revanced-cli* revanced-patches*.jar patches.json
|
||||
dl_gh "revanced-cli" "j-hc" "latest"
|
||||
dl_gh "revanced-patches" "revanced" "latest"
|
||||
# Split architecture Youtube:
|
||||
for i in {0..3}; do
|
||||
split_arch "youtube-revanced" "youtube-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
|
||||
done
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Instagram:
|
||||
# Armeabi-v7a
|
||||
rm -f patches*.json revanced-patches*.jar revanced-integrations*.apk revanced-cli*.jar
|
||||
dl_gh "revanced-patches" "revanced" "tags/v2.175.0"
|
||||
dl_gh "revanced-integrations" "revanced" "tags/v0.109.0"
|
||||
dl_gh "revanced-cli" "revanced" "tags/v2.21.2"
|
||||
get_patches_key "instagram"
|
||||
version="271.1.0.21.84"
|
||||
get_apk "instagram-armeabi-v7a" "instagram-instagram" "instagram/instagram-instagram/instagram-instagram" "armeabi-v7a"
|
||||
_patch "instagram-armeabi-v7a" "revanced"
|
||||
|
||||
#################################################
|
||||
@@ -88,22 +88,23 @@ _req() {
|
||||
wget -nv -O "$dlp" --header="$3" "$1" || return 1
|
||||
fi
|
||||
}
|
||||
req() { _req "$1" "$2" "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0"; }
|
||||
req() {
|
||||
user_agents=("User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0" "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/114.0" "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/112.0" "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/116.0" "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0")
|
||||
random_user_agent=$(shuf -n 1 -e "${user_agents[@]}")
|
||||
_req "$1" "$2" "$random_user_agent"
|
||||
}
|
||||
|
||||
|
||||
dl_apk() {
|
||||
local url=$1 regexp=$2 output=$3 resp
|
||||
local url=$1 regexp=$2 output=$3
|
||||
url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n "s/href=\"/@/g; s;.*${regexp}.*;\1;p")"
|
||||
sleep 5
|
||||
echo "$url"
|
||||
url=$(req "$url" - | $HTMLQ --base https://www.apkmirror.com --attribute href "a.accent_bg.btn")
|
||||
sleep 10
|
||||
resp=$(req "$url" - | $HTMLQ --base https://www.apkmirror.com --attribute href "span > a[rel = nofollow]")
|
||||
if [[ -z $resp ]]; then
|
||||
url=$(req "$url" - | $HTMLQ --base https://www.apkmirror.com --attribute href "a.accent_bg.btn")
|
||||
sleep 10
|
||||
url=$(req "$url" - | $HTMLQ --base https://www.apkmirror.com --attribute href "span > a[rel = nofollow]")
|
||||
else
|
||||
url=$(req "$url" - | $HTMLQ --base https://www.apkmirror.com --attribute href "span > a[rel = nofollow]")
|
||||
fi
|
||||
url="https://www.apkmirror.com$(req "$url" - | grep "downloadButton" | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')"
|
||||
sleep 5
|
||||
url="https://www.apkmirror.com$(req "$url" - | grep "please click" | sed -n 's#.*href="\(.*key=[^"]*\)">.*#\1#;s#amp;##p')&forcebaseapk=true"
|
||||
sleep 5
|
||||
echo "$url"
|
||||
req "$url" "$output"
|
||||
}
|
||||
|
||||
@@ -123,7 +124,7 @@ get_apk() {
|
||||
if [[ -z $version ]]; then
|
||||
local list_ver
|
||||
list_ver=$(req "https://www.apkmirror.com/uploads/?appcategory=$2" -)
|
||||
version=$(sed -n 's;.*Version:</span><span class="infoSlide-value">\(.*\) </span>.*;\1;p' <<<"$list_ver" | grep -v 'beta\|alpha' | head -n 1)
|
||||
version=$(sed -n 's;.*Version:</span><span class="infoSlide-value">\(.*\) </span>.*;\1;p' <<<"$list_ver" | grep -v 'beta\|alpha' | head -n 1)
|
||||
fi
|
||||
local base_apk="$1.apk"
|
||||
local dl_url=$(dl_apk "https://www.apkmirror.com/apk/$3-${version//./-}-release/" \
|
||||
|
||||
Reference in New Issue
Block a user