This commit is contained in:
Fioren
2023-05-26 00:42:18 +07:00
parent 22aae5acdf
commit 912d9cd1a5
6 changed files with 176 additions and 169 deletions

View File

@@ -1,8 +1,8 @@
name: Patch
on:
# push:
schedule:
- cron: "0 9 * * *"
# schedule:
# - cron: "0 9 * * *"
workflow_dispatch:
jobs:
patch1:

View File

@@ -30,9 +30,9 @@ All the code is open-source, clearly, and the APK files used for patching are do
Download
</h1>
## [![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=for-the-badge&logo=YouTube&logoColor=white)](https://play.google.com/store/apps/details?id=com.google.android.youtube)
[![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=for-the-badge&logo=YouTube&logoColor=white)](https://play.google.com/store/apps/details?id=com.google.android.youtube)
## Revanced:
### Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced.apk)
@@ -44,7 +44,7 @@ Download
[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced.apk)
## Revanced Extended: [Support dropped on 14/05/2023](https://t.me/revanced_extended/225)
### Revanced Extended: [Support dropped on 14/05/2023](https://t.me/revanced_extended/225)
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended.apk)
@@ -56,7 +56,7 @@ Download
[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced-extended.apk)
## Revanced Extended For Android 6 & 7:
### Revanced Extended For Android 6 & 7:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended-android-6-7.apk)
@@ -70,19 +70,15 @@ Download
---
## [![YouTube Music](https://img.shields.io/badge/YouTube_Music-FF0000?style=for-the-badge&logo=youtube-music&logoColor=white)](https://play.google.com/store/apps/details?id=com.google.android.apps.youtube.music)
[![YouTube Music](https://img.shields.io/badge/YouTube_Music-FF0000?style=for-the-badge&logo=youtube-music&logoColor=white)](https://play.google.com/store/apps/details?id=com.google.android.apps.youtube.music)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-revanced.apk)
### Revanced:
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-arm64-v8a-revanced.apk)
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-armeabi-v7a-revanced.apk)
## Revanced Extended: [Support dropped on 14/05/2023](https://t.me/revanced_extended/225)
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-revanced-extended.apk)
### Revanced Extended: [Support dropped on 14/05/2023](https://t.me/revanced_extended/225)
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-arm64-v8a-revanced-extended.apk)
@@ -105,18 +101,12 @@ Download
[![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=for-the-badge&logo=Twitter&logoColor=white)](https://play.google.com/store/apps/details?id=com.twitter.android)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/twitter-revanced.apk)
---
[![Instagram](https://img.shields.io/badge/Instagram-%23E4405F.svg?style=for-the-badge&logo=Instagram&logoColor=white)](https://play.google.com/store/apps/details?id=com.instagram.android)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/instagram-revanced.apk)
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/instagram-arm64-v8a-revanced.apk)
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/instagram-armeabi-v7a-revanced.apk)
@@ -125,10 +115,6 @@ Download
[![Messenger](https://img.shields.io/badge/Messenger-00B2FF?style=for-the-badge&logo=messenger&logoColor=white)](https://play.google.com/store/apps/details?id=com.facebook.orca)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/messenger-revanced.apk)
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/messenger-arm64-v8a-revanced.apk)
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/messenger-armeabi-v7a-revanced.apk)
@@ -137,28 +123,26 @@ Download
[![TikTok](https://img.shields.io/badge/TikTok-%23000000.svg?style=for-the-badge&logo=TikTok&logoColor=white)](https://play.google.com/store/apps/details?id=com.ss.android.ugc.trill)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/tiktok-revanced.apk)
---
[![Twitch](https://img.shields.io/badge/Twitch-%239146FF.svg?style=for-the-badge&logo=Twitch&logoColor=white)](https://play.google.com/store/apps/details?id=tv.twitch.android.app)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/twitch-revanced.apk)
---
[![Reddit](https://img.shields.io/badge/Reddit-%23FF4500.svg?style=for-the-badge&logo=Reddit&logoColor=white)](https://play.google.com/store/apps/details?id=com.reddit.frontpage)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/reddit-revanced.apk)
---
### [Windy:](https://play.google.com/store/apps/details?id=co.windyapp.android)
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/windy-revanced.apk)
# ⚠️ License:
[@luxysiv](https://github.com/luxysiv/yt-revanced-nonroot) - [GPL-3.0](https://github.com/luxysiv/revanced-nonroot/blob/main/LICENSE)
@@ -185,6 +169,4 @@ Download
[Revanced Extended for Android 6 & 7 Integrations](https://github.com/kitadai31/revanced-integrations) - [GPL-3.0](https://github.com/kitadai31/revanced-integrations/blob/revanced-extended/LICENSE)
[APKEditor](https://github.com/REAndroid/APKEditor) - [Apache-2.0](https://github.com/REAndroid/APKEditor/blob/master/LICENSE)
[Revanced CLI - j-hc](https://github.com/j-hc/revanced-cli) - [GPL-3.0](https://github.com/j-hc/revanced-cli/blob/main/LICENSE)

View File

@@ -16,9 +16,13 @@ exit 0
else
rm -f *.txt
#################################################
dl_gh "revanced-patches-android6-7 revanced-integrations" "kitadai31" "latest"
dl_gh "revanced-cli" "inotia00" "latest"
#################################################
# Patch YouTube Extended:
get_patches_key "youtube-revanced-extended-6-7"
version="17.34.36"
@@ -26,6 +30,8 @@ version="17.34.36"
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "youtube-revanced-extended-android-6-7"
#################################################
# Split architecture:
rm -f revanced-cli*
dl_gh "revanced-cli" "j-hc" "latest"
@@ -34,5 +40,7 @@ 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
#################################################
ls revanced-patches*.jar >> revanced-extended-android-6-7-version.txt
fi

View File

@@ -16,17 +16,25 @@ exit 0
else
rm -f *.txt
#################################################
dl_gh "revanced-patches revanced-cli revanced-integrations" "inotia00" "latest"
#################################################
# Patch YouTube Music Extended:
# Arm64-v8a
get_patches_key "youtube-music-revanced-extended"
version="6.01.55"
get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-arm64-v8a" "youtube-music/youtube-music-arm64-v8a-revanced-extended"
patch "youtube-music-arm64-v8a" "youtube-music-arm64-v8a-revanced-extended"
# Armeabi-v7a
get_patches_key "youtube-music-revanced-extended"
version="6.01.55"
get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
patch "youtube-music-armeabi-v7a" "youtube-music/youtube-music-armeabi-v7a-revanced-extended"
patch "youtube-music-armeabi-v7a" "youtube-music-armeabi-v7a-revanced-extended"
#################################################
# Patch YouTube Extended:
get_patches_key "youtube-revanced-extended"
@@ -35,7 +43,9 @@ version="18.17.43"
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "youtube-revanced-extended"
# Split architecture Youtube:
#################################################
# Split architecture:
rm -f revanced-cli*
dl_gh "revanced-cli" "j-hc" "latest"
# Split architecture Youtube:
@@ -43,10 +53,7 @@ for i in {0..3}; do
split_arch "youtube-revanced-extended" "youtube-${archs[i]}-revanced-extended" "$(gen_rip_libs ${libs[i]})"
done
# Merge architecture:
dl_gh "APKEditor" "REAndroid" "latest"
# Merge architecture YouTube Music:
merge_arch "youtube-music" "revanced-extended"
#################################################
ls revanced-patches*.jar >> revanced-extended-version.txt
fi

View File

@@ -16,35 +16,51 @@ exit 0
else
rm -f *.txt
#################################################
dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest"
#################################################
# Patch Instagram:
# Arm64-v8a
get_patches_key "instagram"
version="271.1.0.21.84"
get_apk "instagram-arm64-v8a" "instagram-instagram" "instagram/instagram-instagram/instagram-instagram" "arm64-v8a"
patch "instagram-arm64-v8a" "instagram/instagram-arm64-v8a-revanced"
patch "instagram-arm64-v8a" "instagram-arm64-v8a-revanced"
# Armeabi-v7a
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" "instagram/instagram-armeabi-v7a-revanced"
patch "instagram-armeabi-v7a" "instagram-armeabi-v7a-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" "messenger/messenger-arm64-v8a-revanced"
patch "messenger-arm64-v8a" "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" "messenger/messenger-armeabi-v7a-revanced"
patch "messenger-armeabi-v7a" "messenger-armeabi-v7a-revanced"
#################################################
# Patch YouTube Music:
# Arm64-v8a
get_patches_key "youtube-music-revanced"
get_ver "hide-get-premium" "com.google.android.apps.youtube.music"
get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-arm64-v8a" "youtube-music/youtube-music-arm64-v8a-revanced"
patch "youtube-music-arm64-v8a" "youtube-music-arm64-v8a-revanced"
# Armeabi-v7a
get_ver "hide-get-premium" "com.google.android.apps.youtube.music"
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" "youtube-music/youtube-music-armeabi-v7a-revanced"
patch "youtube-music-armeabi-v7a" "youtube-music-armeabi-v7a-revanced"
#################################################
# Patch YouTube:
get_patches_key "youtube-revanced"
@@ -52,17 +68,15 @@ get_ver "video-ads" "com.google.android.youtube"
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "youtube-revanced"
#################################################
# Patch Twitter:
get_patches_key "twitter"
version="9.86.0-release.0"
get_apk "twitter" "twitter" "twitter-inc/twitter/twitter"
patch "twitter" "twitter-revanced"
# Patch Reddit:
get_patches_key "reddit"
get_ver "general-reddit-ads" "com.reddit.frontpage"
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
patch "reddit" "reddit-revanced"
#################################################
# Patch Twitch:
get_patches_key "twitch"
@@ -70,11 +84,22 @@ get_ver "block-video-ads" "tv.twitch.android.app"
get_apk "twitch" "twitch" "twitch-interactive-inc/twitch/twitch"
patch "twitch" "twitch-revanced"
#################################################
# Patch Reddit:
get_patches_key "reddit"
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
patch "reddit" "reddit-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" "windy-revanced"
#################################################
# Patch Tiktok:
rm -f patches*.json revanced-patches*.jar revanced-integrations*.apk revanced-cli*.jar
dl_gh "revanced-patches" "revanced" "tags/v2.173.0"
@@ -85,6 +110,8 @@ version="27.8.3"
get_apk "tiktok" "tik-tok-including-musical-ly" "tiktok-pte-ltd/tik-tok-including-musical-ly/tik-tok-including-musical-ly"
patch "tiktok" "tiktok-revanced"
#################################################
# Split architecture:
rm -f revanced-cli*
dl_gh "revanced-cli" "j-hc" "latest"
@@ -92,31 +119,8 @@ dl_gh "revanced-cli" "j-hc" "latest"
for i in {0..3}; do
split_arch "youtube-revanced" "youtube-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
done
# Split architecture Reddit:
#for i in 0 1; do
# split_arch "reddit-revanced" "reddit-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
#done
# Split architecture Twitch:
#for i in 0 1; do
# split_arch "twitch-revanced" "twitch-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
#done
# Split architecture Tiktok:
#for i in 0 1; do
# split_arch "tiktok-revanced" "tiktok-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
#done
# Split architecture Twitter:
#for i in 0 1; do
# split_arch "twitter-revanced" "twitter-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
#done
# Merge architecture:
dl_gh "APKEditor" "REAndroid" "latest"
# Merge architecture Messenger:
merge_arch "messenger" "revanced"
# Merge architecture Instagram:
merge_arch "instagram" "revanced"
# Merge architecture YouTube Music:
merge_arch "youtube-music" "revanced"
#################################################
ls revanced-patches*.jar >> revanced-version.txt
fi

View File

@@ -1,5 +1,7 @@
#!/bin/bash
#################################################
dl_gh() {
for repo in $1 ; do
wget -qO- "https://api.github.com/repos/$2/$repo/releases/$3" \
@@ -12,6 +14,8 @@ dl_gh() {
echo "All assets downloaded"
}
#################################################
get_patches_key() {
EXCLUDE_PATCHES=()
for word in $(cat src/patches/$1/exclude-patches) ; do
@@ -23,12 +27,28 @@ get_patches_key() {
done
}
#################################################
get_ver() {
version=$(jq -r --arg patch_name "$1" --arg pkg_name "$2" '
.[]
| select(.name == $patch_name)
| .compatiblePackages[]
| select(.name == $pkg_name)
| .versions[-1]
' patches.json)
}
#################################################
req() {
wget -nv -O "$2" -U "Mozilla/5.0 (X11; Linux x86_64; rv:111.0) Gecko/20100101 Firefox/111.0" "$1"
}
get_apk_vers() {
req "$1" - | sed -n 's;.*Version:</span><span class="infoSlide-value">\(.*\) </span>.*;\1;p'
}
get_largest_ver() {
local max=0
while read -r v || [ -n "$v" ]; do
@@ -68,15 +88,7 @@ get_apk() {
"$base_apk")
}
get_ver() {
version=$(jq -r --arg patch_name "$1" --arg pkg_name "$2" '
.[]
| select(.name == $patch_name)
| .compatiblePackages[]
| select(.name == $pkg_name)
| .versions[-1]
' patches.json)
}
#################################################
patch() {
if [ -f "$1.apk" ]; then
@@ -88,10 +100,6 @@ patch() {
${INCLUDE_PATCHES[@]} \
--keystore=./src/ks.keystore \
-o ./build/$2.apk
if grep -q "/" <<< "$2"; then
local name=$(basename “$2)
cp ./build/$2.apk ./build/$name.apk
fi
unset version
unset EXCLUDE_PATCHES
unset INCLUDE_PATCHES
@@ -100,11 +108,7 @@ patch() {
fi
}
merge_arch() {
java -jar APKEditor*.jar m \
-i ./build/$1
mv -i ./build/"$1"_merged.apk ./build/"$1"-"$2".apk
}
#################################################
archs=("arm64-v8a" "armeabi-v7a" "x86_64" "x86")
libs=("x86_64 x86 armeabi-v7a" "x86_64 x86 arm64-v8a" "x86 armeabi-v7a arm64-v8a" "x86_64 armeabi-v7a arm64-v8a")
@@ -125,3 +129,5 @@ split_arch() {
exit 1
fi
}
#################################################