mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
fix bugs
- Correct tiktok version - Remove ability to patch tasker, nova launcher because ReVanced totally remove patches - Correct pacth()
This commit is contained in:
@@ -29,14 +29,6 @@ patch "youtube-music-armeabi-v7a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Facebook:
|
||||
# Arm64-v8a
|
||||
get_patches_key "facebook"
|
||||
get_apk "facebook-arm64-v8a" "facebook" "facebook-2/facebook/facebook" "arm64-v8a" "nodpi" "Android 11+"
|
||||
patch "facebook-arm64-v8a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Split architecture:
|
||||
rm -f revanced-cli* revanced-patches*.jar patches.json
|
||||
dl_gh "revanced-cli" "inotia00" "latest"
|
||||
|
||||
@@ -50,7 +50,7 @@ patch "reddit" "revanced"
|
||||
|
||||
# Patch Tiktok:
|
||||
get_patches_key "tiktok"
|
||||
get_ver "Hide ads" "com.ss.android.ugc.trill"
|
||||
get_ver "Feed filter" "com.ss.android.ugc.trill"
|
||||
get_apk "tiktok" "tik-tok" "tiktok-pte-ltd/tik-tok/tik-tok"
|
||||
patch "tiktok" "revanced"
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ patch "pixiv" "revanced"
|
||||
|
||||
# Patch Lightroom:
|
||||
get_patches_key "lightroom"
|
||||
get_apk "lightroom" "lightroom" "adobe/lightroom/lightroom"
|
||||
get_apk "lightroom" "lightroom" "adobe/lightroom/lightroom" "arm64-v8a"
|
||||
patch "lightroom" "revanced"
|
||||
|
||||
#################################################
|
||||
@@ -36,24 +36,3 @@ get_apk "tumblr" "tumblr" "tumblr-inc/tumblr/tumblr"
|
||||
patch "tumblr" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
rm -f patches*.json revanced-patches*.jar revanced-integrations*.apk revanced-cli*.jar
|
||||
dl_gh "revanced-patches-template" "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"
|
||||
get_apk "tasker" "tasker" "joaomgcd/tasker/tasker"
|
||||
patch "tasker" "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"
|
||||
|
||||
#################################################
|
||||
@@ -126,7 +126,7 @@ get_apk() {
|
||||
patch() {
|
||||
green_log "[+] Patching $1:"
|
||||
if [ -f "$1.apk" ]; then
|
||||
local p b m ks a
|
||||
local p b m ks a pu
|
||||
if [ "$3" = inotia ]; then
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="_ks"
|
||||
echo "Patching with Revanced-cli inotia"
|
||||
@@ -134,13 +134,13 @@ patch() {
|
||||
if [[ $(ls revanced-cli-*.jar) =~ revanced-cli-([0-9]+) ]]; then
|
||||
num=${BASH_REMATCH[1]}
|
||||
if [ $num -ge 4 ]; then
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="ks"
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="ks" pu="--purge=true"
|
||||
echo "Patching with Revanced-cli version 4+"
|
||||
elif [ $num -eq 3 ]; then
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="_ks"
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="_ks" pu="--purge=true"
|
||||
echo "Patching with Revanced-cli version 3"
|
||||
elif [ $num -eq 2 ]; then
|
||||
p="" b="-b" m="-m" a="-a " ks="_ks"
|
||||
p="" b="-b" m="-m" a="-a " ks="_ks" pu="--clean"
|
||||
echo "Patching with Revanced-cli version 2"
|
||||
else
|
||||
red_log "[-] Revanced-cli not supported"
|
||||
@@ -159,7 +159,7 @@ patch() {
|
||||
--options=./src/options/$2.json \
|
||||
--out=./release/$1-$2.apk \
|
||||
--keystore=./src/$ks.keystore \
|
||||
--purge=true \
|
||||
$pu \
|
||||
$a$1.apk
|
||||
unset version
|
||||
unset excludePatches
|
||||
|
||||
Reference in New Issue
Block a user